self_drug_models.go 71KB

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