drug.go 49KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. package models
  2. type BaseDrugLib struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  5. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  6. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  7. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  8. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  9. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  10. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  11. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  12. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  13. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  14. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  15. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  16. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  17. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  18. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  19. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  20. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  21. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  22. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  23. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  24. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  25. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  26. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  27. Number string `gorm:"column:number" json:"number" form:"number"`
  28. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  29. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  30. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  31. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  32. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  33. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  34. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  35. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  36. Code string `gorm:"column:code" json:"code" form:"code"`
  37. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  38. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  39. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  40. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  41. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  42. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  43. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  44. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  45. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  46. Label int64 `gorm:"column:label" json:"label" form:"label"`
  47. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  48. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  49. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  50. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  51. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  52. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  53. Status int64 `gorm:"column:status" json:"status" form:"status"`
  54. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  55. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  56. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  57. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  58. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  59. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  60. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  61. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  62. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  63. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  64. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  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. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  68. Total float64 `gorm:"column:total" json:"total" form:"total"`
  69. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  70. DrugWarehouseInfo []*XtDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
  71. LastDrugWarehouseInfo XtDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"first_drug_warehouse_info"`
  72. IsUse int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  73. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  74. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  75. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  76. IsPharmacy int64 `gorm:"column:is_pharmacy" json:"is_pharmacy" form:"is_pharmacy"`
  77. TotalCount int64 `gorm:"column:total_count" json:"total_count" form:"total_count"`
  78. DrugStockLimitCount int64 `gorm:"column:drug_stock_limit_count" json:"drug_stock_limit_count" form:"drug_stock_limit_count"`
  79. SumOutCount int64 `gorm:"column:sum_out_count" json:"sum_out_count" form:"sum_out_count"`
  80. SumCancelCount int64 `gorm:"column:sum_cancel_count" json:"sum_cancel_count" form:"sum_cancel_count"`
  81. ZuobiaoId string `gorm:"column:zuobiao_id" json:"zuobiao_id" form:"zuobiao_id"`
  82. Bck01b string `gorm:"column:bck01b" json:"bck01b" form:"bck01b"`
  83. Bby01 string `gorm:"column:bby01" json:"bby01" form:"bby01"`
  84. Bbx01 string `gorm:"column:bbx01" json:"bbx01" form:"bbx01"`
  85. FirstLetter string `gorm:"column:first_letter" json:"first_letter" form:"first_letter"`
  86. IsProject int64 `gorm:"column:is_project" json:"is_project" form:"is_project"`
  87. DrugDosageFormName string `gorm:"column:drug_dosage_form_name" json:"drug_dosage_form_name" form:"drug_dosage_form_name"`
  88. IsShow int64 `gorm:"column:is_show" json:"is_show" form:"is_show"`
  89. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  90. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  91. IsZeroFlag int64 `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"`
  92. }
  93. func (BaseDrugLib) TableName() string {
  94. return "xt_base_drug"
  95. }
  96. type BaseDrugLibSeven struct {
  97. ID int64 `gorm:"column:id" json:"id" form:"id"`
  98. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  99. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  100. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  101. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  102. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  103. IsUse int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  104. IsPharmacy int64 `gorm:"column:is_pharmacy" json:"is_pharmacy" form:"is_pharmacy"`
  105. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  106. IsProject int64 `gorm:"column:is_project" json:"is_project" form:"is_project"`
  107. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  108. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  109. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  110. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  111. IsZeroFlag int64 `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"`
  112. }
  113. func (BaseDrugLibSeven) TableName() string {
  114. return "xt_base_drug"
  115. }
  116. type BaseDrugLibTwentyOne struct {
  117. ID int64 `gorm:"column:id" json:"id" form:"id"`
  118. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  119. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  120. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  121. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  122. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  123. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  124. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  125. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  126. Status int64 `gorm:"column:status" json:"status" form:"status"`
  127. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  128. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  129. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  130. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  131. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  132. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  133. IsZeroFlag int64 `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"`
  134. }
  135. func (BaseDrugLibTwentyOne) TableName() string {
  136. return "xt_base_drug"
  137. }
  138. type BaseDrugLibEleven struct {
  139. ID int64 `gorm:"column:id" json:"id" form:"id"`
  140. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  141. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  142. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name"`
  143. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  144. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  145. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  146. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  147. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  148. IsZeroFlag int64 `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"`
  149. }
  150. func (BaseDrugLibEleven) TableName() string {
  151. return "xt_base_drug"
  152. }
  153. type BaseDrugLibTen struct {
  154. ID int64 `gorm:"column:id" json:"id" form:"id"`
  155. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  156. TotalCount int64 `gorm:"column:total_count" json:"total_count" form:"total_count"`
  157. DrugStockLimitCount int64 `gorm:"column:drug_stock_limit_count" json:"drug_stock_limit_count" form:"drug_stock_limit_count"`
  158. Status int64 `gorm:"column:status" json:"status" form:"status"`
  159. IsZeroFlag int64 `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"`
  160. }
  161. func (BaseDrugLibTen) TableName() string {
  162. return "xt_base_drug"
  163. }
  164. type DrugUnitSafeguard struct {
  165. ID int64 `gorm:"column:id" json:"id" form:"id"`
  166. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  167. ConversionFactor string `gorm:"column:conversion_factor" json:"conversion_factor" form:"conversion_factor"`
  168. IsStockUse int64 `gorm:"column:is_stock_use" json:"is_stock_use" form:"is_stock_use"`
  169. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  170. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  171. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  172. Status int64 `gorm:"column:status" json:"status" form:"status"`
  173. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  174. }
  175. func (DrugUnitSafeguard) TableName() string {
  176. return "xt_drug_unit_safeguard"
  177. }
  178. type MedicineInsurancePercentage struct {
  179. ID int64 `gorm:"column:id" json:"id" form:"id"`
  180. MedicineInsuranceType int64 `gorm:"column:medicine_insurance_type" json:"medicine_insurance_type" form:"medicine_insurance_type"`
  181. Percent float64 `gorm:"column:percent" json:"percent" form:"percent"`
  182. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  183. Status int64 `gorm:"column:status" json:"status" form:"status"`
  184. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  185. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  186. TypeId int64 `gorm:"column:type_id" json:"drug_id" form:"type_id"`
  187. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  188. Module int64 `gorm:"column:module" json:"module" form:"module"`
  189. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  190. }
  191. func (MedicineInsurancePercentage) TableName() string {
  192. return "xt_medicine_insurance_percentage"
  193. }
  194. type BaseDrugLibNight 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. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  198. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  199. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  200. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  201. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  202. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  203. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  204. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  205. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  206. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  207. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  208. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  209. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  210. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  211. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  212. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  213. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  214. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  215. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  216. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  217. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  218. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  219. Number string `gorm:"column:number" json:"number" form:"number"`
  220. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  221. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  222. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  223. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  224. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  225. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  226. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  227. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  228. Code string `gorm:"column:code" json:"code" form:"code"`
  229. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  230. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  231. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  232. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  233. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  234. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  235. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  236. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  237. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  238. Label int64 `gorm:"column:label" json:"label" form:"label"`
  239. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  240. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  241. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  242. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  243. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  244. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  245. Status int64 `gorm:"column:status" json:"status" form:"status"`
  246. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  247. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  248. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  249. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  250. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  251. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  252. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  253. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  254. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  255. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  256. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  257. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  258. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  259. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  260. Total float64 `gorm:"column:total" json:"total" form:"total"`
  261. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  262. DrugWarehouseInfo []*XtDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
  263. XtDrugWarehouseInfo []*XtDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
  264. DrugWarehouseOutInfo []*DrugWarehouseOutInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_out"`
  265. DrugCancelStockInfo []*DrugCancelStockInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_cancel_info"`
  266. IsUse int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  267. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  268. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  269. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  270. IsPharmacy int64 `gorm:"column:is_pharmacy" json:"is_pharmacy" form:"is_pharmacy"`
  271. IsZeroFlag int64 `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"`
  272. }
  273. func (BaseDrugLibNight) TableName() string {
  274. return "xt_base_drug"
  275. }
  276. type BaseDrugLibTwenty struct {
  277. ID int64 `gorm:"column:id" json:"id" form:"id"`
  278. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  279. Status int64 `gorm:"column:status" json:"status" form:"status"`
  280. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  281. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  282. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  283. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  284. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  285. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  286. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  287. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit_count" form:"drug_stock_limit"`
  288. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  289. IsZeroFlag int64 `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"`
  290. }
  291. func (BaseDrugLibTwenty) TableName() string {
  292. return "xt_base_drug"
  293. }
  294. type BaseDrugLibThrity struct {
  295. ID int64 `gorm:"column:id" json:"id" form:"id"`
  296. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  297. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  298. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name"`
  299. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  300. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  301. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  302. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  303. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  304. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  305. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  306. Status int64 `gorm:"column:status" json:"status" form:"status"`
  307. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  308. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  309. LastDrugWarehouseInfo XtSelfDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"first_drug_warehouse_info"`
  310. DrugWarehouseInfo []*XtSelfDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
  311. IsZeroFlag int64 `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"`
  312. }
  313. func (BaseDrugLibThrity) TableName() string {
  314. return "xt_base_drug"
  315. }
  316. type XtSelfDrugWarehouseInfo struct {
  317. ID int64 `gorm:"column:id" json:"id" form:"id"`
  318. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  319. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  320. Number string `gorm:"column:number" json:"number" form:"number"`
  321. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  322. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  323. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  324. WarehouseingUnit string `gorm:"column:warehouseing_unit" json:"warehouseing_unit" form:"warehouseing_unit"`
  325. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  326. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  327. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  328. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  329. Price float64 `gorm:"column:price" json:"price" form:"price"`
  330. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  331. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  332. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  333. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  334. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  335. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  336. Status int64 `gorm:"column:status" json:"status" form:"status"`
  337. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  338. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  339. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  340. Type int64 `gorm:"column:type" json:"type" form:"type"`
  341. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  342. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  343. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  344. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  345. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  346. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  347. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  348. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  349. PharmacyId int64 `gorm:"column:pharmacy_id" json:"pharmacy_id" form:"pharmacy_id"`
  350. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  351. ManafacturerName string `gorm:"column:manafacturer_name" json:"manafacturer_name" form:"manafacturer_name"`
  352. DealerName string `gorm:"column:dealer_name" json:"dealer_name" form:"dealer_name"`
  353. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  354. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  355. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  356. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  357. BaseDrugLib BaseDrugLibSeven `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
  358. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  359. }
  360. func (XtSelfDrugWarehouseInfo) TableName() string {
  361. return "xt_self_drug_warehouse_info"
  362. }
  363. type XtSelfDrugWarehouse struct {
  364. ID int64 `gorm:"column:id" json:"id" form:"id"`
  365. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  366. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  367. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  368. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  369. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  370. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  371. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  372. Status int64 `gorm:"column:status" json:"status" form:"status"`
  373. WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time" form:"warehousing_time"`
  374. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  375. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  376. Type int64 `gorm:"column:type" json:"type" form:"type"`
  377. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  378. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  379. SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
  380. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  381. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  382. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  383. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  384. }
  385. func (XtSelfDrugWarehouse) TableName() string {
  386. return "xt_self_drug_warehouse"
  387. }
  388. type XtSelfDrugFlow struct {
  389. ID int64 `gorm:"column:id" json:"id" form:"id"`
  390. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  391. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  392. Number string `gorm:"column:number" json:"number" form:"number"`
  393. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  394. Count int64 `gorm:"column:count" json:"count" form:"count"`
  395. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  396. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  397. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  398. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  399. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  400. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  401. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  402. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  403. IsEdit int64 `gorm:"column:is_edit" json:"is_edit" form:"is_edit"`
  404. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  405. CancelOrderNumber string `gorm:"column:cancel_order_number" json:"cancel_order_number" form:"cancel_order_number"`
  406. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  407. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  408. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  409. UpdateCreator int64 `gorm:"column:update_creator" json:"update_creator" form:"update_creator"`
  410. Status int64 `gorm:"column:status" json:"status" form:"status"`
  411. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  412. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  413. Price float64 `gorm:"column:price" json:"price" form:"price"`
  414. WarehousingDetailId int64 `gorm:"column:warehousing_detail_id" json:"warehousing_detail_id" form:"warehousing_detail_id"`
  415. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  416. CancelOutDetailId int64 `gorm:"column:cancel_out_detail_id" json:"cancel_out_detail_id" form:"cancel_out_detail_id"`
  417. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  418. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  419. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  420. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  421. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  422. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  423. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  424. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  425. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  426. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  427. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  428. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  429. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  430. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  431. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  432. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  433. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  434. PharmacyId int64 `gorm:"column:pharmacy_id" json:"pharmacy_id" form:"pharmacy_id"`
  435. IsRead int64 `gorm:"column:is_read" json:"is_read" form:"is_read"`
  436. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  437. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  438. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  439. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  440. FlushOverCount int64 `gorm:"column:flush_over_count" json:"flush_over_count" form:"flush_over_count"`
  441. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  442. OperateTime int64 `gorm:"column:operate_time" json:"operate_time" form:"operate_time"`
  443. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
  444. }
  445. func (XtSelfDrugFlow) TableName() string {
  446. return "xt_self_drug_flow"
  447. }
  448. type XtSelfDrugStockCount struct {
  449. ID int64 `gorm:"column:id" json:"id" form:"id"`
  450. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  451. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  452. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  453. SumOutCount int64 `gorm:"column:sum_out_count" json:"sum_out_count" form:"sum_out_count"`
  454. SumCancelCount int64 `gorm:"column:sum_cancel_count" json:"sum_cancel_count" form:"sum_cancel_count"`
  455. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  456. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  457. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  458. Status int64 `gorm:"column:status" json:"status" form:"status"`
  459. FlushCount int64 `gorm:"column:flush_count" json:"flush_count" form:"flush_count"`
  460. SumActOutCount int64 `gorm:"column:sum_act_out_count" json:"sum_act_out_count" form:"sum_act_out_count"`
  461. SumOldCount int64 `gorm:"column:sum_old_count" json:"sum_old_count" form:"sum_old_count"`
  462. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
  463. }
  464. func (XtSelfDrugStockCount) TableName() string {
  465. return "xt_self_drug_stock_count"
  466. }
  467. type XtSelfDrugWarehouseOut struct {
  468. ID int64 `gorm:"column:id" json:"id" form:"id"`
  469. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  470. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  471. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  472. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  473. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  474. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  475. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  476. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  477. Status int64 `gorm:"column:status" json:"status" form:"status"`
  478. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time" form:"warehouse_out_time"`
  479. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  480. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  481. Type int64 `gorm:"column:type" json:"type" form:"type"`
  482. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  483. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  484. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  485. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  486. SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
  487. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  488. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  489. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  490. }
  491. func (XtSelfDrugWarehouseOut) TableName() string {
  492. return "xt_self_drug_warehouse_out"
  493. }
  494. type XtSelfDrugWarehouseOutInfo struct {
  495. ID int64 `gorm:"column:id" json:"id" form:"id"`
  496. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  497. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  498. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  499. Count int64 `gorm:"column:count" json:"count" form:"count"`
  500. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  501. Price float64 `gorm:"column:price" json:"price" form:"price"`
  502. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  503. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  504. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  505. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  506. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  507. Status int64 `gorm:"column:status" json:"status" form:"status"`
  508. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  509. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  510. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  511. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  512. Type int64 `gorm:"column:type" json:"type" form:"type"`
  513. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  514. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  515. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  516. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  517. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  518. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  519. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  520. Number string `gorm:"column:number" json:"number" form:"number"`
  521. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  522. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  523. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  524. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  525. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  526. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  527. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  528. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  529. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  530. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  531. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  532. PharmacyId int64 `gorm:"column:pharmacy_id" json:"pharmacy_id" form:"pharmacy_id"`
  533. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  534. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  535. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  536. ManafacturerName string `gorm:"column:manafacturer_name" json:"manafacturer_name" form:"manafacturer_name"`
  537. DepartmentName string `gorm:"column:department_name" json:"department_name" form:"department_name"`
  538. ClassType string `gorm:"column:class_type" json:"class_type" form:"class_type"`
  539. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
  540. }
  541. func (XtSelfDrugWarehouseOutInfo) TableName() string {
  542. return "xt_self_drug_warehouse_out_info"
  543. }