drug.go 49KB

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