self_drug_models.go 87KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134
  1. package models
  2. type DrugPatients struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  5. Name string `gorm:"column:name" json:"name" form:"name"`
  6. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  7. Status int64 `gorm:"column:status" json:"status" form:"status"`
  8. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  9. }
  10. func (DrugPatients) TableName() string {
  11. return "xt_patients"
  12. }
  13. type XtBaseDrug struct {
  14. ID int64 `gorm:"column:id" json:"id" form:"id"`
  15. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  16. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  17. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  18. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  19. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  20. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  21. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  22. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  23. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  24. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  25. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  26. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  27. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  28. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  29. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  30. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  31. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  32. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  33. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  34. Number string `gorm:"column:number" json:"number" form:"number"`
  35. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  36. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  37. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  38. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  39. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  40. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  41. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  42. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  43. Code string `gorm:"column:code" json:"code" form:"code"`
  44. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  45. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  46. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  47. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  48. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  49. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  50. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  51. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  52. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  53. Label int64 `gorm:"column:label" json:"label" form:"label"`
  54. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  55. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  56. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  57. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  58. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  59. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  60. Status int64 `gorm:"column:status" json:"status" form:"status"`
  61. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  62. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  63. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  64. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  65. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  66. Total float64 `gorm:"column:total" json:"total" form:"total"`
  67. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  68. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  69. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  70. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  71. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  72. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  73. IsUse int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  74. IsPharmacy int64 `gorm:"column:is_pharmacy" json:"is_pharmacy" form:"is_pharmacy"`
  75. }
  76. func (XtBaseDrug) TableName() string {
  77. return "xt_base_drug"
  78. }
  79. type DrugName struct {
  80. ID int64 `gorm:"column:id" json:"id" form:"id"`
  81. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  82. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  83. Status int64 `gorm:"column:status" json:"status" form:"status"`
  84. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  85. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  86. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  87. XtStandName []XtStandName `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"XtStandName"`
  88. }
  89. func (DrugName) TableName() string {
  90. return "xt_drug_name"
  91. }
  92. type XtDrugName struct {
  93. ID int64 `gorm:"column:id" json:"id" form:"id"`
  94. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  95. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  96. Status int64 `gorm:"column:status" json:"status" form:"status"`
  97. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  98. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  99. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  100. }
  101. func (XtDrugName) TableName() string {
  102. return "xt_drug_name"
  103. }
  104. type XtStandName struct {
  105. ID int64 `gorm:"column:id" json:"id" form:"id"`
  106. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  107. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  108. Price float64 `gorm:"column:price" json:"price" form:"price"`
  109. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  110. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  111. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  112. Status int64 `gorm:"column:status" json:"status" form:"status"`
  113. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  114. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  115. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  116. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  117. }
  118. func (XtStandName) TableName() string {
  119. return "xt_stand_name"
  120. }
  121. type XtSelfMedicals struct {
  122. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  123. ID int64 `gorm:"column:id" json:"id" form:"id"`
  124. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  125. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  126. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  127. Status int64 `gorm:"column:status" json:"status" form:"status"`
  128. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  129. StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"`
  130. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  131. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  132. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  133. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  134. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  135. Total int64
  136. }
  137. type XtSelfMedical struct {
  138. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  139. ID int64 `gorm:"column:id" json:"id" form:"id"`
  140. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  141. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  142. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  143. Status int64 `gorm:"column:status" json:"status" form:"status"`
  144. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  145. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  146. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  147. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  148. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  149. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  150. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  151. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  152. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  153. }
  154. func (XtSelfMedical) TableName() string {
  155. return "xt_self_medical"
  156. }
  157. type XtSelfStock struct {
  158. ID int64 `gorm:"column:id" json:"id" form:"id"`
  159. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  160. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  161. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  162. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  163. StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"`
  164. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  165. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  166. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  167. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  168. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  169. Status int64 `gorm:"column:status" json:"status" form:"status"`
  170. StockInNumber string `gorm:"column:stock_in_number" json:"stock_in_number" form:"stock_in_number"`
  171. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  172. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  173. StorageMode int64 `gorm:"column:storage_mode" json:"storage_mode" form:"storage_mode"`
  174. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  175. }
  176. func (XtSelfStock) TableName() string {
  177. return "xt_self_stock"
  178. }
  179. type SelfOutStock struct {
  180. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  181. ID int64 `gorm:"column:id" json:"id" form:"id"`
  182. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  183. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  184. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  185. Status int64 `gorm:"column:status" json:"status" form:"status"`
  186. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  187. OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"`
  188. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  189. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  190. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  191. Count int64
  192. }
  193. type XtSelfOutStock struct {
  194. ID int64 `gorm:"column:id" json:"id" form:"id"`
  195. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  196. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  197. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  198. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  199. OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"`
  200. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  201. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  202. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  203. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  204. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  205. Status int64 `gorm:"column:status" json:"status" form:"status"`
  206. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  207. StockOutNumber string `gorm:"column:stock_out_number" json:"stock_out_number" form:"stock_out_number"`
  208. ExitMode int64 `gorm:"column:exit_mode" json:"exit_mode" form:"exit_mode"`
  209. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  210. }
  211. func (XtSelfOutStock) TableName() string {
  212. return "xt_self_out_stock"
  213. }
  214. type XtDrugSet struct {
  215. ID int64 `gorm:"column:id" json:"id" form:"id"`
  216. DrugStart int64 `gorm:"column:drug_start" json:"drug_start" form:"drug_start"`
  217. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  218. Status int64 `gorm:"column:status" json:"status" form:"status"`
  219. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  220. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  221. }
  222. func (XtDrugSet) TableName() string {
  223. return "xt_drug_set"
  224. }
  225. type SelfStocks struct {
  226. ID int64 `gorm:"column:id" json:"id" form:"id"`
  227. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  228. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  229. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  230. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  231. StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"`
  232. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  233. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  234. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  235. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  236. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  237. Status int64 `gorm:"column:status" json:"status" form:"status"`
  238. StockInNumber string `gorm:"column:stock_in_number" json:"stock_in_number" form:"stock_in_number"`
  239. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  240. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  241. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  242. Name string `gorm:"column:name" json:"name" form:"name"`
  243. DialysisNO string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  244. Total int64
  245. }
  246. type XtSelfOutStocks struct {
  247. ID int64 `gorm:"column:id" json:"id" form:"id"`
  248. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  249. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  250. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  251. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  252. OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"`
  253. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  254. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  255. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  256. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  257. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  258. Status int64 `gorm:"column:status" json:"status" form:"status"`
  259. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  260. StockOutNumber string `gorm:"column:stock_out_number" json:"stock_out_number" form:"stock_out_number"`
  261. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  262. Name string `gorm:"column:name" json:"name" form:"name"`
  263. DialysisNO string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  264. Count int64
  265. }
  266. type XtDrugWarehouse struct {
  267. ID int64 `gorm:"column:id" json:"id" form:"id"`
  268. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  269. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  270. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  271. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  272. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  273. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  274. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  275. Status int64 `gorm:"column:status" json:"status" form:"status"`
  276. WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time" form:"warehousing_time"`
  277. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  278. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  279. Type int64 `gorm:"column:type" json:"type" form:"type"`
  280. }
  281. func (XtDrugWarehouse) TableName() string {
  282. return "xt_drug_warehouse"
  283. }
  284. type XtDrugWarehouseOut struct {
  285. ID int64 `gorm:"column:id" json:"id" form:"id"`
  286. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  287. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  288. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  289. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  290. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  291. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  292. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  293. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  294. Status int64 `gorm:"column:status" json:"status" form:"status"`
  295. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time" form:"warehouse_out_time"`
  296. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  297. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  298. Type int64 `gorm:"column:type" json:"type" form:"type"`
  299. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  300. }
  301. func (XtDrugWarehouseOut) TableName() string {
  302. return "xt_drug_warehouse_out"
  303. }
  304. type XtDrugWarehouseOutInfo struct {
  305. ID int64 `gorm:"column:id" json:"id" form:"id"`
  306. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  307. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  308. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  309. Count int64 `gorm:"column:count" json:"count" form:"count"`
  310. Price float64 `gorm:"column:price" json:"price" form:"price"`
  311. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  312. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  313. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  314. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  315. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  316. Status int64 `gorm:"column:status" json:"status" form:"status"`
  317. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  318. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  319. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  320. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  321. Type int64 `gorm:"column:type" json:"type" form:"type"`
  322. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  323. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  324. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  325. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  326. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  327. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  328. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  329. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  330. Number string `gorm:"column:number" json:"number" form:"number"`
  331. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  332. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  333. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  334. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  335. }
  336. func (XtDrugWarehouseOutInfo) TableName() string {
  337. return "xt_drug_warehouse_out_info"
  338. }
  339. type XtDrugAutomaticReduceDetail struct {
  340. ID int64 `gorm:"column:id" json:"id" form:"id"`
  341. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  342. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  343. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  344. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  345. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  346. Status int64 `gorm:"column:status" json:"status" form:"status"`
  347. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  348. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  349. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  350. Count int64 `gorm:"column:count" json:"count" form:"count"`
  351. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  352. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  353. }
  354. func (XtDrugAutomaticReduceDetail) TableName() string {
  355. return "xt_drug_automatic_reduce_detail"
  356. }
  357. type XtDrugWarehouseInfo struct {
  358. ID int64 `gorm:"column:id" json:"id" form:"id"`
  359. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  360. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  361. Number string `gorm:"column:number" json:"number" form:"number"`
  362. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  363. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  364. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  365. Price float64 `gorm:"column:price" json:"price" form:"price"`
  366. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  367. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  368. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  369. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  370. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  371. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  372. Status int64 `gorm:"column:status" json:"status" form:"status"`
  373. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  374. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  375. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  376. Type int64 `gorm:"column:type" json:"type" form:"type"`
  377. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  378. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  379. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number"`
  380. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number"`
  381. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  382. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  383. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  384. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  385. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  386. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  387. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  388. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  389. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  390. }
  391. func (XtDrugWarehouseInfo) TableName() string {
  392. return "xt_drug_warehouse_info"
  393. }
  394. type DrugWarehousingInfo struct {
  395. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  396. Count int64
  397. }
  398. type XtDrugStockConfig struct {
  399. ID int64 `gorm:"column:id" json:"id" form:"id"`
  400. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  401. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  402. Status int64 `gorm:"column:status" json:"status" form:"status"`
  403. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  404. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  405. }
  406. func (XtDrugStockConfig) TableName() string {
  407. return "xt_drug_stock_config"
  408. }
  409. type XtSelfOutStockOne struct {
  410. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  411. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  412. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  413. Count int64
  414. drug_type int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  415. }
  416. type BloodDrugWarehouseInfo struct {
  417. ID int64 `gorm:"column:id" json:"id" form:"id"`
  418. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  419. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  420. Number string `gorm:"column:number" json:"number" form:"number"`
  421. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  422. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  423. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  424. Price float64 `gorm:"column:price" json:"price" form:"price"`
  425. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  426. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  427. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  428. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  429. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  430. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  431. Status int64 `gorm:"column:status" json:"status" form:"status"`
  432. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  433. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  434. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  435. Type int64 `gorm:"column:type" json:"type" form:"type"`
  436. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  437. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  438. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  439. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  440. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  441. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  442. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  443. MaxUnit string `json:"max_unit"`
  444. MinNumber int64 `json:"min_number"`
  445. Dose string `json:"dose"`
  446. DoseUnit string `json:"dose_unit"`
  447. WarehouseingUnit string `gorm:"column:warehouseing_unit" json:"warehouseing_unit" form:"warehouseing_unit"`
  448. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  449. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  450. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  451. CountUnit string `json:"count_unit"`
  452. IsCheck string `gorm:"column:is_check" json:"is_check" form:"is_check"`
  453. }
  454. type BloodDrugCancelStockInfo struct {
  455. ID int64 `gorm:"column:id" json:"id" form:"id"`
  456. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  457. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  458. Count int64 `gorm:"column:count" json:"count" form:"count"`
  459. Price float64 `gorm:"column:price" json:"price" form:"price"`
  460. Total float64 `gorm:"column:total" json:"total" form:"total"`
  461. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  462. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  463. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  464. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  465. Status int64 `gorm:"column:status" json:"status" form:"status"`
  466. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  467. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  468. Type int64 `gorm:"column:type" json:"type" form:"type"`
  469. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  470. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  471. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  472. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  473. Number string `gorm:"column:number" json:"number" form:"number"`
  474. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  475. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  476. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  477. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  478. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  479. MaxUnit string `json:"max_unit"`
  480. MinNumber int64 `json:"min_number"`
  481. Dose string `json:"dose"`
  482. DoseUnit string `json:"dose_unit"`
  483. Unit string `json:"unit"`
  484. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  485. }
  486. type BloodDrugSalesReturnInfo struct {
  487. ID int64 `gorm:"column:id" json:"id" form:"id"`
  488. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  489. SalesReturnId int64 `gorm:"column:sales_return_id" json:"sales_return_id" form:"sales_return_id"`
  490. Count int64 `gorm:"column:count" json:"count" form:"count"`
  491. Price float64 `gorm:"column:price" json:"price" form:"price"`
  492. Total float64 `gorm:"column:total" json:"total" form:"total"`
  493. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  494. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  495. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  496. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  497. Status int64 `gorm:"column:status" json:"status" form:"status"`
  498. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  499. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  500. Type int64 `gorm:"column:type" json:"type" form:"type"`
  501. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  502. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  503. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  504. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  505. Number string `gorm:"column:number" json:"number" form:"number"`
  506. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  507. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  508. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  509. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  510. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  511. }
  512. type BloodDrugWarehouseOutInfo struct {
  513. ID int64 `gorm:"column:id" json:"id" form:"id"`
  514. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  515. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  516. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  517. Count int64 `gorm:"column:count" json:"count" form:"count"`
  518. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  519. Price float64 `gorm:"column:price" json:"price" form:"price"`
  520. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  521. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  522. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  523. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  524. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  525. Status int64 `gorm:"column:status" json:"status" form:"status"`
  526. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  527. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  528. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  529. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  530. Type int64 `gorm:"column:type" json:"type" form:"type"`
  531. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  532. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  533. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  534. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  535. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  536. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  537. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  538. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  539. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  540. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  541. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  542. MaxUnit string `json:"max_unit"`
  543. MinNumber int64 `json:"min_number"`
  544. Dose string `json:"dose"`
  545. DoseUnit string `json:"dose_unit"`
  546. LastPrice float64 `json:"last_price"`
  547. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  548. }
  549. type XtMonitorConfig struct {
  550. ID int64 `gorm:"column:id" json:"id" form:"id"`
  551. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  552. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  553. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  554. Status int64 `gorm:"column:status" json:"status" form:"status"`
  555. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  556. }
  557. func (XtMonitorConfig) TableName() string {
  558. return "xt_monitor_config"
  559. }
  560. type XtOrderConfig struct {
  561. ID int64 `gorm:"column:id" json:"id" form:"id"`
  562. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  563. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  564. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  565. Status int64 `gorm:"column:status" json:"status" form:"status"`
  566. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  567. }
  568. func (XtOrderConfig) TableName() string {
  569. return "xt_order_config"
  570. }
  571. type StDrugWarehouseInfo struct {
  572. ID int64 `gorm:"column:id" json:"id" form:"id"`
  573. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  574. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  575. Number string `gorm:"column:number" json:"number" form:"number"`
  576. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  577. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  578. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  579. Price float64 `gorm:"column:price" json:"price" form:"price"`
  580. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  581. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  582. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  583. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  584. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  585. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  586. Status int64 `gorm:"column:status" json:"status" form:"status"`
  587. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  588. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  589. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  590. Type int64 `gorm:"column:type" json:"type" form:"type"`
  591. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  592. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  593. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number"`
  594. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number"`
  595. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  596. DrugName string `json:"drug_name"`
  597. DrugType int64 `json:"drug_type"`
  598. MaxUnit string `json:"max_unit"`
  599. MinUnit string `json:"min_unit"`
  600. MinNumber int64 `json:"min_number"`
  601. Dose string `json:"dose"`
  602. DoseUnit string `json:"dose_unit"`
  603. LastPrice string `json:"last_price"`
  604. PackingUnit string `json:"packing_unit"`
  605. Dosage int64 `json:"dosage"`
  606. LimaxUnit string `json:"limax_unit"`
  607. }
  608. type VmDrugWarehouseOutInfo struct {
  609. ID int64 `gorm:"column:id" json:"id" form:"id"`
  610. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  611. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  612. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  613. Count int64 `gorm:"column:count" json:"count" form:"count"`
  614. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  615. Price float64 `gorm:"column:price" json:"price" form:"price"`
  616. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  617. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  618. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  619. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  620. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  621. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  622. Status int64 `gorm:"column:status" json:"status" form:"status"`
  623. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  624. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  625. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  626. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  627. Type int64 `gorm:"column:type" json:"type" form:"type"`
  628. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  629. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  630. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  631. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  632. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  633. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  634. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  635. DrugType int64 `json:"drug_type"`
  636. MaxUnit string `json:"max_unit"`
  637. MinUnit string `json:"min_unit"`
  638. MinNumber int64 `json:"min_number"`
  639. Dose string `json:"dose"`
  640. DoseUnit string `json:"dose_unit"`
  641. LastPrice float64 `json:"last_price"`
  642. MinPrice float64 `json:"min_price"`
  643. DrugName string `json:"drug_name"`
  644. Number string `gorm:"column:number" json:"number" form:"number"`
  645. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  646. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  647. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  648. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  649. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  650. }
  651. type XtDrugAdjustPrice struct {
  652. ID int64 `gorm:"column:id" json:"id" form:"id"`
  653. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  654. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  655. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  656. Count int64 `gorm:"column:count" json:"count" form:"count"`
  657. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  658. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  659. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  660. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  661. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  662. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  663. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  664. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  665. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  666. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  667. Status int64 `gorm:"column:status" json:"status" form:"status"`
  668. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  669. Number string `gorm:"column:number" json:"number" form:"number"`
  670. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  671. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  672. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  673. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  674. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  675. }
  676. func (XtDrugAdjustPrice) TableName() string {
  677. return "xt_drug_adjust_price"
  678. }
  679. type VmDrugAdjustPrice struct {
  680. ID int64 `gorm:"column:id" json:"id" form:"id"`
  681. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  682. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  683. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  684. Count int64 `gorm:"column:count" json:"count" form:"count"`
  685. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  686. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  687. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  688. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  689. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  690. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  691. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  692. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  693. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  694. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  695. Status int64 `gorm:"column:status" json:"status" form:"status"`
  696. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  697. Number string `gorm:"column:number" json:"number" form:"number"`
  698. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  699. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  700. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  701. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  702. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  703. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  704. }
  705. type XtDrugDamage struct {
  706. ID int64 `gorm:"column:id" json:"id" form:"id"`
  707. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  708. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  709. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  710. Count int64 `gorm:"column:count" json:"count" form:"count"`
  711. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  712. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  713. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  714. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  715. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  716. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  717. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  718. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  719. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  720. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  721. Status int64 `gorm:"column:status" json:"status" form:"status"`
  722. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  723. Number string `gorm:"column:number" json:"number" form:"number"`
  724. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  725. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  726. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  727. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  728. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  729. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  730. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  731. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  732. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  733. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  734. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  735. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  736. Total string `gorm:"column:total" json:"total" form:"total"`
  737. }
  738. func (XtDrugDamage) TableName() string {
  739. return "xt_drug_damage"
  740. }
  741. type VmXtDrugInventory struct {
  742. ID int64 `gorm:"column:id" json:"id" form:"id"`
  743. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  744. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  745. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  746. Count int64 `gorm:"column:count" json:"count" form:"count"`
  747. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  748. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  749. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  750. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  751. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  752. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  753. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  754. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  755. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  756. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  757. Status int64 `gorm:"column:status" json:"status" form:"status"`
  758. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  759. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  760. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  761. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  762. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  763. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  764. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  765. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  766. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  767. Number string `gorm:"column:number" json:"number" form:"number"`
  768. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  769. Total string `gorm:"column:total" json:"total" form:"total"`
  770. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  771. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  772. ProofCount int64 `gorm:"column:proof_count" json:"proof_count" form:"proof_count"`
  773. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  774. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  775. MinCount int64 `gorm:"column:min_count" json:"min_count" form:"min_count"`
  776. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  777. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  778. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  779. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  780. Type int64 `gorm:"column:type" json:"type" form:"type"`
  781. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  782. }
  783. type XtDrugInventory struct {
  784. ID int64 `gorm:"column:id" json:"id" form:"id"`
  785. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  786. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  787. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  788. Count int64 `gorm:"column:count" json:"count" form:"count"`
  789. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  790. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  791. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  792. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  793. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  794. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  795. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  796. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  797. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  798. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  799. Status int64 `gorm:"column:status" json:"status" form:"status"`
  800. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  801. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  802. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  803. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  804. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  805. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  806. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  807. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  808. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  809. Number string `gorm:"column:number" json:"number" form:"number"`
  810. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  811. Total string `gorm:"column:total" json:"total" form:"total"`
  812. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  813. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  814. ProofCount int64 `gorm:"column:proof_count" json:"proof_count" form:"proof_count"`
  815. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  816. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  817. MinCount int64 `gorm:"column:min_count" json:"min_count" form:"min_count"`
  818. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  819. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  820. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  821. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  822. Type int64 `gorm:"column:type" json:"type" form:"type"`
  823. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  824. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
  825. DrugWarehouseInfo DrugWarehouseInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfoId"json:"drug_warehouse_info" `
  826. }
  827. func (XtDrugInventory) TableName() string {
  828. return "xt_drug_inventory"
  829. }
  830. type VmDrugInventory struct {
  831. ID int64 `gorm:"column:id" json:"id" form:"id"`
  832. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  833. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  834. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  835. Count int64 `gorm:"column:count" json:"count" form:"count"`
  836. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  837. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  838. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  839. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  840. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  841. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  842. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  843. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  844. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  845. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  846. Status int64 `gorm:"column:status" json:"status" form:"status"`
  847. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  848. Number string `gorm:"column:number" json:"number" form:"number"`
  849. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  850. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  851. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  852. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  853. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  854. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  855. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  856. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  857. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  858. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  859. MinCount int64 `gorm:"column:min_count" json:"min_count" form:"min_count"`
  860. Total string `gorm:"column:total" json:"total" form:"total"`
  861. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  862. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  863. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  864. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  865. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  866. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  867. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  868. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  869. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  870. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  871. Children []*XtDrugInventory `gorm:"column:children" json:"children" form:"children"`
  872. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  873. }
  874. type SgjDrugWarehouseOutInfo struct {
  875. ID int64 `gorm:"column:id" json:"id" form:"id"`
  876. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  877. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  878. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  879. Count int64 `gorm:"column:count" json:"count" form:"count"`
  880. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  881. Price float64 `gorm:"column:price" json:"price" form:"price"`
  882. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  883. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  884. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  885. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  886. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  887. Status int64 `gorm:"column:status" json:"status" form:"status"`
  888. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  889. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  890. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  891. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  892. Type int64 `gorm:"column:type" json:"type" form:"type"`
  893. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  894. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  895. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  896. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  897. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  898. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  899. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  900. Number string `gorm:"column:number" json:"number" form:"number"`
  901. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  902. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  903. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  904. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  905. }
  906. func (SgjDrugWarehouseOutInfo) TableName() string {
  907. return "xt_drug_warehouse_out_info"
  908. }
  909. type PatientDrugWarehouseInfo struct {
  910. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  911. Number string `gorm:"column:number" json:"number" form:"number"`
  912. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  913. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  914. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  915. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  916. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  917. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  918. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  919. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  920. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  921. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  922. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  923. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  924. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  925. }
  926. type NewGoodInformation struct {
  927. ID int64 `gorm:"column:id" json:"id" form:"id"`
  928. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  929. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  930. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  931. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  932. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  933. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  934. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  935. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  936. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  937. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  938. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  939. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  940. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  941. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  942. Status int64 `gorm:"column:status" json:"status" form:"status"`
  943. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  944. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  945. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  946. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  947. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  948. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  949. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  950. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  951. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  952. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  953. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  954. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  955. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  956. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  957. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  958. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  959. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  960. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  961. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  962. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  963. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  964. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  965. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  966. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  967. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  968. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  969. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  970. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  971. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  972. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  973. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  974. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  975. Total float64 `gorm:"column:total" json:"total" form:"total"`
  976. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  977. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  978. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  979. DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
  980. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  981. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  982. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  983. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  984. Number string `gorm:"column:number" json:"number" form:"number"`
  985. IsWarehouse string `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  986. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  987. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  988. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  989. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"`
  990. StWarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_warehouse_info"`
  991. CancelStockInfo []*CancelStockInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"cancel_stock_info"`
  992. WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"warehouse_info"`
  993. WarehouseOutInfo []*WarehouseOutInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"warehouse_out_info"`
  994. FlowOutInfo []*VmStockFlow `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"stock_flow_out_info"`
  995. FlowCancelInfo []*VmStockFlow `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"stock_flow_cancel_info"`
  996. }
  997. func (NewGoodInformation) TableName() string {
  998. return "xt_good_information"
  999. }
  1000. type GoodInformation struct {
  1001. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1002. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  1003. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1004. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1005. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  1006. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1007. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  1008. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1009. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1010. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1011. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1012. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1013. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  1014. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  1015. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  1016. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1017. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  1018. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  1019. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  1020. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1021. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1022. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1023. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1024. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1025. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1026. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  1027. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  1028. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1029. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  1030. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  1031. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1032. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  1033. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  1034. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  1035. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1036. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  1037. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  1038. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  1039. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  1040. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1041. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  1042. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  1043. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  1044. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1045. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1046. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  1047. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  1048. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1049. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1050. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  1051. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1052. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1053. DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
  1054. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1055. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1056. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  1057. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  1058. Number string `gorm:"column:number" json:"number" form:"number"`
  1059. IsWarehouse string `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  1060. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  1061. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  1062. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  1063. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"`
  1064. XtGoodStockCount []*XtGoodStockCount `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_good_stock"`
  1065. GoodStockCount []*XtGoodStockCount `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_good_stock_info"`
  1066. WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_warehouse_info"`
  1067. }
  1068. func (GoodInformation) TableName() string {
  1069. return "xt_good_information"
  1070. }