drug.go 49KB

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