self_drug_models.go 88KB

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