self_drug_models.go 58KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838
  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. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  40. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  41. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  42. Code string `gorm:"column:code" json:"code" form:"code"`
  43. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  44. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  45. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  46. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  47. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  48. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  49. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  50. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  51. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  52. Label int64 `gorm:"column:label" json:"label" form:"label"`
  53. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  54. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  55. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  56. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  57. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  58. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  59. Status int64 `gorm:"column:status" json:"status" form:"status"`
  60. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  61. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  62. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  63. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  64. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  65. Total float64 `gorm:"column:total" json:"total" form:"total"`
  66. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  67. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  68. Dose float64 `gorm:"column:dose" json:"dose" form:"dose"`
  69. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  70. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  71. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  72. }
  73. func (XtBaseDrug) TableName() string {
  74. return "xt_base_drug"
  75. }
  76. type DrugName struct {
  77. ID int64 `gorm:"column:id" json:"id" form:"id"`
  78. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  79. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  80. Status int64 `gorm:"column:status" json:"status" form:"status"`
  81. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  82. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  83. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  84. XtStandName []XtStandName `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"XtStandName"`
  85. }
  86. func (DrugName) TableName() string {
  87. return "xt_drug_name"
  88. }
  89. type XtDrugName struct {
  90. ID int64 `gorm:"column:id" json:"id" form:"id"`
  91. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  92. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  93. Status int64 `gorm:"column:status" json:"status" form:"status"`
  94. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  95. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  96. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  97. }
  98. func (XtDrugName) TableName() string {
  99. return "xt_drug_name"
  100. }
  101. type XtStandName struct {
  102. ID int64 `gorm:"column:id" json:"id" form:"id"`
  103. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  104. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  105. Price float64 `gorm:"column:price" json:"price" form:"price"`
  106. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  107. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  108. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  109. Status int64 `gorm:"column:status" json:"status" form:"status"`
  110. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  111. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  112. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  113. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  114. }
  115. func (XtStandName) TableName() string {
  116. return "xt_stand_name"
  117. }
  118. type XtSelfMedicals struct {
  119. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  120. ID int64 `gorm:"column:id" json:"id" form:"id"`
  121. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  122. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  123. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  124. Status int64 `gorm:"column:status" json:"status" form:"status"`
  125. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  126. StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"`
  127. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  128. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  129. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  130. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  131. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  132. Total int64
  133. }
  134. type XtSelfMedical struct {
  135. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  136. ID int64 `gorm:"column:id" json:"id" form:"id"`
  137. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  138. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  139. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  140. Status int64 `gorm:"column:status" json:"status" form:"status"`
  141. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  142. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  143. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  144. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  145. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  146. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  147. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  148. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  149. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  150. }
  151. func (XtSelfMedical) TableName() string {
  152. return "xt_self_medical"
  153. }
  154. type XtSelfStock struct {
  155. ID int64 `gorm:"column:id" json:"id" form:"id"`
  156. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  157. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  158. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  159. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  160. StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"`
  161. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  162. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  163. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  164. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  165. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  166. Status int64 `gorm:"column:status" json:"status" form:"status"`
  167. StockInNumber string `gorm:"column:stock_in_number" json:"stock_in_number" form:"stock_in_number"`
  168. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  169. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  170. StorageMode int64 `gorm:"column:storage_mode" json:"storage_mode" form:"storage_mode"`
  171. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  172. }
  173. func (XtSelfStock) TableName() string {
  174. return "xt_self_stock"
  175. }
  176. type SelfOutStock struct {
  177. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  178. ID int64 `gorm:"column:id" json:"id" form:"id"`
  179. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  180. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  181. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  182. Status int64 `gorm:"column:status" json:"status" form:"status"`
  183. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  184. OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"`
  185. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  186. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  187. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  188. Count int64
  189. }
  190. type XtSelfOutStock struct {
  191. ID int64 `gorm:"column:id" json:"id" form:"id"`
  192. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  193. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  194. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  195. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  196. OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"`
  197. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  198. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  199. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  200. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  201. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  202. Status int64 `gorm:"column:status" json:"status" form:"status"`
  203. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  204. StockOutNumber string `gorm:"column:stock_out_number" json:"stock_out_number" form:"stock_out_number"`
  205. ExitMode int64 `gorm:"column:exit_mode" json:"exit_mode" form:"exit_mode"`
  206. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  207. }
  208. func (XtSelfOutStock) TableName() string {
  209. return "xt_self_out_stock"
  210. }
  211. type XtDrugSet struct {
  212. ID int64 `gorm:"column:id" json:"id" form:"id"`
  213. DrugStart int64 `gorm:"column:drug_start" json:"drug_start" form:"drug_start"`
  214. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  215. Status int64 `gorm:"column:status" json:"status" form:"status"`
  216. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  217. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  218. }
  219. func (XtDrugSet) TableName() string {
  220. return "xt_drug_set"
  221. }
  222. type SelfStocks struct {
  223. ID int64 `gorm:"column:id" json:"id" form:"id"`
  224. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  225. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  226. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  227. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  228. StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"`
  229. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  230. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  231. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  232. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  233. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  234. Status int64 `gorm:"column:status" json:"status" form:"status"`
  235. StockInNumber string `gorm:"column:stock_in_number" json:"stock_in_number" form:"stock_in_number"`
  236. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  237. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  238. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  239. Name string `gorm:"column:name" json:"name" form:"name"`
  240. DialysisNO string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  241. Total int64
  242. }
  243. type XtSelfOutStocks struct {
  244. ID int64 `gorm:"column:id" json:"id" form:"id"`
  245. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  246. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  247. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  248. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  249. OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"`
  250. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  251. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  252. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  253. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  254. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  255. Status int64 `gorm:"column:status" json:"status" form:"status"`
  256. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  257. StockOutNumber string `gorm:"column:stock_out_number" json:"stock_out_number" form:"stock_out_number"`
  258. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  259. Name string `gorm:"column:name" json:"name" form:"name"`
  260. DialysisNO string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  261. Count int64
  262. }
  263. type XtDrugWarehouse struct {
  264. ID int64 `gorm:"column:id" json:"id" form:"id"`
  265. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  266. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  267. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  268. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  269. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  270. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  271. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  272. Status int64 `gorm:"column:status" json:"status" form:"status"`
  273. WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time" form:"warehousing_time"`
  274. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  275. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  276. Type int64 `gorm:"column:type" json:"type" form:"type"`
  277. }
  278. func (XtDrugWarehouse) TableName() string {
  279. return "xt_drug_warehouse"
  280. }
  281. type XtDrugWarehouseOut struct {
  282. ID int64 `gorm:"column:id" json:"id" form:"id"`
  283. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  284. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  285. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  286. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  287. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  288. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  289. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  290. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  291. Status int64 `gorm:"column:status" json:"status" form:"status"`
  292. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time" form:"warehouse_out_time"`
  293. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  294. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  295. Type int64 `gorm:"column:type" json:"type" form:"type"`
  296. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  297. }
  298. func (XtDrugWarehouseOut) TableName() string {
  299. return "xt_drug_warehouse_out"
  300. }
  301. type XtDrugWarehouseOutInfo struct {
  302. ID int64 `gorm:"column:id" json:"id" form:"id"`
  303. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  304. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  305. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  306. Count int64 `gorm:"column:count" json:"count" form:"count"`
  307. Price float64 `gorm:"column:price" json:"price" form:"price"`
  308. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  309. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  310. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  311. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  312. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  313. Status int64 `gorm:"column:status" json:"status" form:"status"`
  314. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  315. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  316. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  317. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  318. Type int64 `gorm:"column:type" json:"type" form:"type"`
  319. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  320. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  321. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  322. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  323. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  324. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  325. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  326. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  327. Number string `gorm:"column:number" json:"number" form:"number"`
  328. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  329. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  330. }
  331. func (XtDrugWarehouseOutInfo) TableName() string {
  332. return "xt_drug_warehouse_out_info"
  333. }
  334. type XtDrugAutomaticReduceDetail struct {
  335. ID int64 `gorm:"column:id" json:"id" form:"id"`
  336. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  337. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  338. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  339. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  340. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  341. Status int64 `gorm:"column:status" json:"status" form:"status"`
  342. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  343. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  344. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  345. Count int64 `gorm:"column:count" json:"count" form:"count"`
  346. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  347. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  348. }
  349. func (XtDrugAutomaticReduceDetail) TableName() string {
  350. return "xt_drug_automatic_reduce_detail"
  351. }
  352. type XtDrugWarehouseInfo struct {
  353. ID int64 `gorm:"column:id" json:"id" form:"id"`
  354. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  355. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  356. Number string `gorm:"column:number" json:"number" form:"number"`
  357. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  358. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  359. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  360. Price float64 `gorm:"column:price" json:"price" form:"price"`
  361. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  362. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  363. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  364. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  365. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  366. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  367. Status int64 `gorm:"column:status" json:"status" form:"status"`
  368. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  369. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  370. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  371. Type int64 `gorm:"column:type" json:"type" form:"type"`
  372. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  373. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  374. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number"`
  375. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number"`
  376. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  377. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  378. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  379. }
  380. func (XtDrugWarehouseInfo) TableName() string {
  381. return "xt_drug_warehouse_info"
  382. }
  383. type DrugWarehousingInfo struct {
  384. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  385. Count int64
  386. }
  387. type XtDrugStockConfig struct {
  388. ID int64 `gorm:"column:id" json:"id" form:"id"`
  389. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  390. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  391. Status int64 `gorm:"column:status" json:"status" form:"status"`
  392. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  393. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  394. }
  395. func (XtDrugStockConfig) TableName() string {
  396. return "xt_drug_stock_config"
  397. }
  398. type XtSelfOutStockOne struct {
  399. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  400. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  401. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  402. Count int64
  403. drug_type int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  404. }
  405. type BloodDrugWarehouseInfo struct {
  406. ID int64 `gorm:"column:id" json:"id" form:"id"`
  407. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  408. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  409. Number string `gorm:"column:number" json:"number" form:"number"`
  410. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  411. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  412. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  413. Price float64 `gorm:"column:price" json:"price" form:"price"`
  414. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  415. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  416. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  417. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  418. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  419. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  420. Status int64 `gorm:"column:status" json:"status" form:"status"`
  421. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  422. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  423. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  424. Type int64 `gorm:"column:type" json:"type" form:"type"`
  425. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  426. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  427. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  428. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  429. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  430. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  431. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  432. MaxUnit string `json:"max_unit"`
  433. MinNumber int64 `json:"min_number"`
  434. Dose float64 `json:"dose"`
  435. DoseUnit string `json:"dose_unit"`
  436. WarehouseingUnit string `gorm:"column:warehouseing_unit" json:"warehouseing_unit" form:"warehouseing_unit"`
  437. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  438. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  439. }
  440. type BloodDrugCancelStockInfo struct {
  441. ID int64 `gorm:"column:id" json:"id" form:"id"`
  442. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  443. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  444. Count int64 `gorm:"column:count" json:"count" form:"count"`
  445. Price float64 `gorm:"column:price" json:"price" form:"price"`
  446. Total float64 `gorm:"column:total" json:"total" form:"total"`
  447. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  448. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  449. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  450. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  451. Status int64 `gorm:"column:status" json:"status" form:"status"`
  452. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  453. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  454. Type int64 `gorm:"column:type" json:"type" form:"type"`
  455. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  456. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  457. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  458. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  459. Number string `gorm:"column:number" json:"number" form:"number"`
  460. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  461. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  462. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  463. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  464. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  465. MaxUnit string `json:"max_unit"`
  466. MinNumber int64 `json:"min_number"`
  467. Dose float64 `json:"dose"`
  468. DoseUnit string `json:"dose_unit"`
  469. }
  470. type BloodDrugSalesReturnInfo struct {
  471. ID int64 `gorm:"column:id" json:"id" form:"id"`
  472. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  473. SalesReturnId int64 `gorm:"column:sales_return_id" json:"sales_return_id" form:"sales_return_id"`
  474. Count int64 `gorm:"column:count" json:"count" form:"count"`
  475. Price float64 `gorm:"column:price" json:"price" form:"price"`
  476. Total float64 `gorm:"column:total" json:"total" form:"total"`
  477. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  478. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  479. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  480. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  481. Status int64 `gorm:"column:status" json:"status" form:"status"`
  482. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  483. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  484. Type int64 `gorm:"column:type" json:"type" form:"type"`
  485. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  486. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  487. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  488. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  489. Number string `gorm:"column:number" json:"number" form:"number"`
  490. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  491. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  492. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  493. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  494. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  495. }
  496. type BloodDrugWarehouseOutInfo struct {
  497. ID int64 `gorm:"column:id" json:"id" form:"id"`
  498. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  499. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  500. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  501. Count int64 `gorm:"column:count" json:"count" form:"count"`
  502. Price float64 `gorm:"column:price" json:"price" form:"price"`
  503. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  504. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  505. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  506. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  507. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  508. Status int64 `gorm:"column:status" json:"status" form:"status"`
  509. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  510. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  511. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  512. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  513. Type int64 `gorm:"column:type" json:"type" form:"type"`
  514. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  515. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  516. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  517. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  518. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  519. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  520. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  521. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  522. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  523. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  524. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  525. MaxUnit string `json:"max_unit"`
  526. MinNumber int64 `json:"min_number"`
  527. Dose float64 `json:"dose"`
  528. DoseUnit string `json:"dose_unit"`
  529. }
  530. type XtMonitorConfig struct {
  531. ID int64 `gorm:"column:id" json:"id" form:"id"`
  532. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  533. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  534. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  535. Status int64 `gorm:"column:status" json:"status" form:"status"`
  536. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  537. }
  538. func (XtMonitorConfig) TableName() string {
  539. return "xt_monitor_config"
  540. }
  541. type XtOrderConfig struct {
  542. ID int64 `gorm:"column:id" json:"id" form:"id"`
  543. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  544. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  545. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  546. Status int64 `gorm:"column:status" json:"status" form:"status"`
  547. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  548. }
  549. func (XtOrderConfig) TableName() string {
  550. return "xt_order_config"
  551. }
  552. type StDrugWarehouseInfo struct {
  553. ID int64 `gorm:"column:id" json:"id" form:"id"`
  554. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  555. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  556. Number string `gorm:"column:number" json:"number" form:"number"`
  557. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  558. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  559. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  560. Price float64 `gorm:"column:price" json:"price" form:"price"`
  561. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  562. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  563. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  564. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  565. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  566. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  567. Status int64 `gorm:"column:status" json:"status" form:"status"`
  568. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  569. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  570. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  571. Type int64 `gorm:"column:type" json:"type" form:"type"`
  572. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  573. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  574. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number"`
  575. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number"`
  576. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  577. DrugName string `json:"drug_name"`
  578. DrugType int64 `json:"drug_type"`
  579. MaxUnit string `json:"max_unit"`
  580. MinUnit string `json:"min_unit"`
  581. MinNumber int64 `json:"min_number"`
  582. Dose float64 `json:"dose"`
  583. DoseUnit string `json:"dose_unit"`
  584. LastPrice string `json:"last_price"`
  585. PackingUnit string `json:"packing_unit"`
  586. Dosage int64 `json:"dosage"`
  587. }
  588. type VmDrugWarehouseOutInfo struct {
  589. ID int64 `gorm:"column:id" json:"id" form:"id"`
  590. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  591. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  592. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  593. Count int64 `gorm:"column:count" json:"count" form:"count"`
  594. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  595. Price float64 `gorm:"column:price" json:"price" form:"price"`
  596. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  597. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  598. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  599. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  600. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  601. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  602. Status int64 `gorm:"column:status" json:"status" form:"status"`
  603. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  604. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  605. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  606. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  607. Type int64 `gorm:"column:type" json:"type" form:"type"`
  608. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  609. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  610. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  611. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  612. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  613. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  614. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  615. DrugType int64 `json:"drug_type"`
  616. MaxUnit string `json:"max_unit"`
  617. MinUnit string `json:"min_unit"`
  618. MinNumber int64 `json:"min_number"`
  619. Dose float64 `json:"dose"`
  620. DoseUnit string `json:"dose_unit"`
  621. LastPrice float64 `json:"last_price"`
  622. MinPrice float64 `json:"min_price"`
  623. DrugName string `json:"drug_name"`
  624. Number string `gorm:"column:number" json:"number" form:"number"`
  625. }
  626. type XtDrugAdjustPrice struct {
  627. ID int64 `gorm:"column:id" json:"id" form:"id"`
  628. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  629. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  630. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  631. Count int64 `gorm:"column:count" json:"count" form:"count"`
  632. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  633. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  634. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  635. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  636. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  637. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  638. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  639. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  640. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  641. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  642. Status int64 `gorm:"column:status" json:"status" form:"status"`
  643. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  644. Number string `gorm:"column:number" json:"number" form:"number"`
  645. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  646. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  647. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  648. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  649. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  650. }
  651. func (XtDrugAdjustPrice) TableName() string {
  652. return "xt_drug_adjust_price"
  653. }
  654. type VmDrugAdjustPrice struct {
  655. ID int64 `gorm:"column:id" json:"id" form:"id"`
  656. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  657. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  658. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  659. Count int64 `gorm:"column:count" json:"count" form:"count"`
  660. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  661. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  662. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  663. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  664. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  665. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  666. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  667. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  668. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  669. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  670. Status int64 `gorm:"column:status" json:"status" form:"status"`
  671. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  672. Number string `gorm:"column:number" json:"number" form:"number"`
  673. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  674. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  675. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  676. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  677. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  678. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  679. }
  680. type XtDrugDamage struct {
  681. ID int64 `gorm:"column:id" json:"id" form:"id"`
  682. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  683. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  684. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  685. Count int64 `gorm:"column:count" json:"count" form:"count"`
  686. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  687. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  688. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  689. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  690. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  691. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  692. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  693. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  694. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  695. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  696. Status int64 `gorm:"column:status" json:"status" form:"status"`
  697. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  698. Number string `gorm:"column:number" json:"number" form:"number"`
  699. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  700. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  701. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  702. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  703. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  704. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  705. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  706. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  707. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  708. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  709. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  710. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  711. Total string `gorm:"column:total" json:"total" form:"total"`
  712. }
  713. func (XtDrugDamage) TableName() string {
  714. return "xt_drug_damage"
  715. }
  716. type XtDrugInventory struct {
  717. ID int64 `gorm:"column:id" json:"id" form:"id"`
  718. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  719. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  720. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  721. Count int64 `gorm:"column:count" json:"count" form:"count"`
  722. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  723. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  724. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  725. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  726. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  727. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  728. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  729. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  730. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  731. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  732. Status int64 `gorm:"column:status" json:"status" form:"status"`
  733. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  734. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  735. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  736. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  737. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  738. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  739. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  740. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  741. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  742. Number string `gorm:"column:number" json:"number" form:"number"`
  743. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  744. Total string `gorm:"column:total" json:"total" form:"total"`
  745. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  746. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  747. ProofCount int64 `gorm:"column:proof_count" json:"proof_count" form:"proof_count"`
  748. }
  749. func (XtDrugInventory) TableName() string {
  750. return "xt_drug_inventory"
  751. }
  752. type VmDrugInventory struct {
  753. ID int64 `gorm:"column:id" json:"id" form:"id"`
  754. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  755. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  756. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  757. Count int64 `gorm:"column:count" json:"count" form:"count"`
  758. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  759. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  760. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  761. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  762. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  763. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  764. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  765. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  766. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  767. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  768. Status int64 `gorm:"column:status" json:"status" form:"status"`
  769. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  770. Number string `gorm:"column:number" json:"number" form:"number"`
  771. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  772. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  773. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  774. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  775. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  776. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  777. Dose float64 `gorm:"column:dose" json:"dose" form:"dose"`
  778. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  779. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  780. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  781. Total string `gorm:"column:total" json:"total" form:"total"`
  782. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  783. }