new_stock_models.go 38KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. package models
  2. type XtGoodStockCount struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  5. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  6. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  7. Status int64 `gorm:"column:status" json:"status" form:"status"`
  8. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  9. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  10. StockInCount int64 `gorm:"column:stock_in_count" json:"stock_in_count" form:"stock_in_count"`
  11. StockOutCount int64 `gorm:"column:stock_out_count" json:"stock_out_count" form:"stock_out_count"`
  12. StockCancelCount int64 `gorm:"column:stock_cancel_count" json:"stock_cancel_count" form:"stock_cancel_count"`
  13. FlushCount int64 `gorm:"column:flush_count" json:"flush_count" form:"flush_count"`
  14. StockActOutCount int64 `gorm:"column:stock_act_out_count" json:"stock_act_out_count" form:"stock_act_out_count"`
  15. }
  16. func (XtGoodStockCount) TableName() string {
  17. return "xt_good_stock_count"
  18. }
  19. type XtGoodErrcode struct {
  20. ID int64 `gorm:"column:id" json:"id" form:"id"`
  21. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  22. Errcode string `gorm:"column:errcode" json:"errcode" form:"errcode"`
  23. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  24. Status int64 `gorm:"column:status" json:"status" form:"status"`
  25. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  26. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  27. Count int64 `gorm:"column:count" json:"count" form:"count"`
  28. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  29. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  30. BatchNumberId int64 `gorm:"column:batch_number_id" json:"batch_number_id" form:"batch_number_id"`
  31. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  32. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  33. Code string `gorm:"column:code" json:"code" form:"code"`
  34. }
  35. func (XtGoodErrcode) TableName() string {
  36. return "xt_good_errcode"
  37. }
  38. type XtDrugStockCount struct {
  39. ID int64 `gorm:"column:id" json:"id" form:"id"`
  40. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  41. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  42. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  43. SumOutCount int64 `gorm:"column:sum_out_count" json:"sum_out_count" form:"sum_out_count"`
  44. SumCancelCount int64 `gorm:"column:sum_cancel_count" json:"sum_cancel_count" form:"sum_cancel_count"`
  45. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  46. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  47. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  48. Status int64 `gorm:"column:status" json:"status" form:"status"`
  49. FlushCount int64 `gorm:"column:flush_count" json:"flush_count" form:"flush_count"`
  50. SumActOutCount int64 `gorm:"column:sum_act_out_count" json:"sum_act_out_count" form:"sum_act_out_count"`
  51. }
  52. func (XtDrugStockCount) TableName() string {
  53. return "xt_drug_stock_count"
  54. }
  55. type NewBaseDrug struct {
  56. ID int64 `gorm:"column:id" json:"id" form:"id"`
  57. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  58. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  59. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  60. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  61. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  62. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  63. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  64. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  65. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  66. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  67. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  68. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  69. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  70. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  71. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  72. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  73. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  74. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  75. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  76. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  77. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  78. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  79. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  80. Number string `gorm:"column:number" json:"number" form:"number"`
  81. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  82. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  83. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  84. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  85. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  86. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  87. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  88. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  89. Code string `gorm:"column:code" json:"code" form:"code"`
  90. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  91. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  92. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  93. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  94. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  95. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  96. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  97. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  98. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  99. Label int64 `gorm:"column:label" json:"label" form:"label"`
  100. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  101. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  102. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  103. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  104. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  105. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  106. Status int64 `gorm:"column:status" json:"status" form:"status"`
  107. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  108. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  109. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  110. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  111. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  112. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  113. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  114. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  115. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  116. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  117. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  118. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  119. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  120. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  121. Total float64 `gorm:"column:total" json:"total" form:"total"`
  122. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  123. DrugWarehouseInfo []*VsDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
  124. XtDrugStockCount []*XtDrugStockCount `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_stock_count"`
  125. DrugStockCount []*XtDrugStockCount `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_stock_info"`
  126. TotalCount int64 `gorm:"column:total_count" json:"total_count" form:"total_count"`
  127. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  128. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  129. DrugStockLimitCount int64 `gorm:"column:drug_stock_limit_count" json:"drug_stock_limit_count" form:"drug_stock_limit_count"`
  130. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  131. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  132. IsPharmacy int64 `gorm:"column:is_pharmacy" json:"is_pharmacy" form:"is_pharmacy"`
  133. IsZeroFlag int64 `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"`
  134. }
  135. func (NewBaseDrug) TableName() string {
  136. return "xt_base_drug"
  137. }
  138. type NewBaseDrugOne 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. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  142. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  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. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  149. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  150. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  151. Number string `gorm:"column:number" json:"number" form:"number"`
  152. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  153. DrugWarehouseInfo []*VsDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
  154. XtDrugStockCount []*XtDrugStockCount `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_stock_count"`
  155. DrugStockCount []*XtDrugStockCount `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_stock_info"`
  156. TotalCount int64 `gorm:"column:total_count" json:"total_count" form:"total_count"`
  157. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  158. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  159. DrugStockLimitCount int64 `gorm:"column:drug_stock_limit_count" json:"drug_stock_limit_count" form:"drug_stock_limit_count"`
  160. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  161. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  162. IsPharmacy int64 `gorm:"column:is_pharmacy" json:"is_pharmacy" form:"is_pharmacy"`
  163. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  164. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  165. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  166. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  167. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  168. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  169. IsZeroFlag int64 `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"`
  170. }
  171. func (NewBaseDrugOne) TableName() string {
  172. return "xt_base_drug"
  173. }
  174. type XtDialysisSetting struct {
  175. ID int64 `gorm:"column:id" json:"id" form:"id"`
  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. DeviceNumber int64 `gorm:"column:device_number" json:"device_number" form:"device_number"`
  179. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  180. Name int64 `gorm:"column:name" json:"name" form:"name"`
  181. AdmissionNumber int64 `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  182. DialysisNo int64 `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  183. WeightBefor int64 `gorm:"column:weight_befor" json:"weight_befor" form:"weight_befor"`
  184. DryWeight int64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
  185. BloodPressure int64 `gorm:"column:blood_pressure" json:"blood_pressure" form:"blood_pressure"`
  186. UltrafiltrationVolume int64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume" form:"ultrafiltration_volume"`
  187. InternalFistula int64 `gorm:"column:internal_fistula" json:"internal_fistula" form:"internal_fistula"`
  188. BloodFlowVolume int64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  189. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  190. SealingFluidDispose int64 `gorm:"column:sealing_fluid_dispose" json:"sealing_fluid_dispose" form:"sealing_fluid_dispose"`
  191. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  192. DialysisTime int64 `gorm:"column:dialysis_time" json:"dialysis_time" form:"dialysis_time"`
  193. DialysisDialyszers int64 `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  194. DialysisIrrigation int64 `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  195. Gaijiliang int64 `gorm:"column:gaijiliang" json:"gaijiliang" form:"gaijiliang"`
  196. Kalium int64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  197. DisplaceLiquiValue int64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value" form:"displace_liqui_value"`
  198. Bicarbonate int64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  199. Glucose int64 `gorm:"column:glucose" json:"glucose" form:"glucose"`
  200. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  201. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  202. Sodium int64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  203. Calcium int64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  204. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access" form:"blood_access"`
  205. DialyzerPerfusionApparatus int64 `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  206. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part" form:"displace_liqui_part"`
  207. CuhongSet int64 `gorm:"column:cuhong_set" json:"cuhong_set" form:"cuhong_set"`
  208. ZuokaSet int64 `gorm:"column:zuoka_set" json:"zuoka_set" form:"zuoka_set"`
  209. DifenziSet int64 `gorm:"column:difenzi_set" json:"difenzi_set" form:"difenzi_set"`
  210. GansunaSet int64 `gorm:"column:gansuna_set" json:"gansuna_set" form:"gansuna_set"`
  211. ZhetangtieSet int64 `gorm:"column:zhetangtie_set" json:"zhetangtie_set" form:"zhetangtie_set"`
  212. NiaojimeiSet int64 `gorm:"column:niaojimei_set" json:"niaojimei_set" form:"niaojimei_set"`
  213. DialysisStrainerSet int64 `gorm:"column:dialysis_strainer_set" json:"dialysis_strainer_set" form:"dialysis_strainer_set"`
  214. }
  215. func (XtDialysisSetting) TableName() string {
  216. return "xt_dialysis_setting"
  217. }
  218. type VmStockFlowTwenty struct {
  219. ID int64 `gorm:"column:id" json:"id" form:"id"`
  220. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  221. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  222. Count int64 `gorm:"column:count" json:"count" form:"count"`
  223. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  224. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  225. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  226. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  227. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  228. Price float64 `gorm:"column:price" json:"price" form:"price"`
  229. WarehousingDetailId int64 `gorm:"column:warehousing_detail_id" json:"warehousing_detail_id" form:"warehousing_detail_id"`
  230. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  231. IsRead int64 `gorm:"column:is_read" json:"is_read" form:"is_read"`
  232. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  233. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  234. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  235. WarehousingInfo NewWarehousingInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehousingId" json:"xt_warehouse_info"`
  236. }
  237. func (VmStockFlowTwenty) TableName() string {
  238. return "xt_stock_flow"
  239. }
  240. type VmNewStockFlowTwenty struct {
  241. ID int64 `gorm:"column:id" json:"id" form:"id"`
  242. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  243. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  244. Count int64 `gorm:"column:count" json:"count" form:"count"`
  245. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  246. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  247. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  248. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  249. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  250. Price float64 `gorm:"column:price" json:"price" form:"price"`
  251. WarehousingDetailId int64 `gorm:"column:warehousing_detail_id" json:"warehousing_detail_id" form:"warehousing_detail_id"`
  252. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  253. IsRead int64 `gorm:"column:is_read" json:"is_read" form:"is_read"`
  254. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  255. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  256. }
  257. func (VmNewStockFlowTwenty) TableName() string {
  258. return "xt_stock_flow"
  259. }
  260. type GoodInfoTwenty struct {
  261. ID int64 `gorm:"column:id" json:"id" form:"id"`
  262. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  263. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  264. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  265. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  266. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  267. Status int64 `gorm:"column:status" json:"status" form:"status"`
  268. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  269. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  270. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  271. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  272. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  273. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  274. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  275. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  276. StWarehousingInfo []*StWarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_warehouse_info"`
  277. WarehousingInfoOne []*StartWarehousingInfo `gorm:"json:"warehouse_info"` //期间增加
  278. WarehousingInfoStart []*StartWarehousingInfo `gorm:"json:"warehouse_info_start"`
  279. WarehousingInfoEnd []*StartWarehousingInfo `gorm:"json:"warehouse_info_end"`
  280. WarehouseOutInfoEnd []*VmStockFlowTwenty
  281. WarehouseOutInfoStart []*VmStockFlowTwenty
  282. WarehouseInfoEnd []*VmStockFlowTwenty //期末入库量
  283. StartFlowWarehouseInfo []*VmStockFlowTwenty //本期增加
  284. StWarehousingInfoTwo []*StWarehousingInfoOne `gorm:"json:"new_warehouse_info_start"` //期间增加
  285. WarehouseOutInfoTenty []*WarehouseOutInfoTenty `gorm:"json:"new_warehouse_out_info"` //减少
  286. WareStartInStockFlow []*VmStockFlowTwenty `gorm:"json:"new_stock_in_flow"` //盘盈
  287. WareStartOutStockFlow []*VmStockFlowTwenty `gorm:"json:"new_stock_out_flow"` //盘亏
  288. //期初结余
  289. StartFlowInfo []*VmStockFlowTwenty
  290. StartOutFlowInfo []*VmStockFlowTwenty
  291. //期末结余
  292. EndFlowInfo []*VmStockFlowTwenty
  293. EndFlowOutInfo []*VmStockFlowTwenty
  294. //期初退库
  295. StartCancelFlowInfo []*VmStockFlowTwenty
  296. //期末退库
  297. EndCancelFLowInfo []*VmStockFlowTwenty
  298. StartEndCancelFLowInfo []*VmStockFlowTwenty
  299. WareStartStockInventoryProfit []*VmStockFlowTwenty //期初盘盈
  300. WareStartStockInventoryLosses []*VmStockFlowTwenty //期初盘亏
  301. WareEndStockInventoryProfit []*VmStockFlowTwenty //期末盘盈
  302. WareEndStockInventoryLosses []*VmStockFlowTwenty //期末盘亏
  303. WareStartEndStockInventoryProfit []*VmStockFlowTwenty //期间盘盈
  304. WareStartEndStockInventoryLosses []*VmStockFlowTwenty //期间盘亏
  305. //期初结余
  306. GoodStartFlowInfo VmStockFlowTwenty
  307. //期末结余
  308. GoodEndFlowInfo VmStockFlowTwenty
  309. }
  310. func (GoodInfoTwenty) TableName() string {
  311. return "xt_good_information"
  312. }
  313. type CancelStockInfoTwenty struct {
  314. ID int64 `gorm:"column:id" json:"id"`
  315. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  316. Count int64 `gorm:"column:count" json:"count"`
  317. Price float64 `gorm:"column:price" json:"price"`
  318. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  319. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  320. Status int64 `gorm:"column:status" json:"status"`
  321. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  322. Number string `gorm:"column:number" json:"number" form:"number"`
  323. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  324. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  325. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  326. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  327. }
  328. func (CancelStockInfoTwenty) TableName() string {
  329. return "xt_cancel_stock_info"
  330. }
  331. type WarehouseOutInfoTwenty struct {
  332. ID int64 `gorm:"column:id" json:"id"`
  333. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  334. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  335. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  336. Count int64 `gorm:"column:count" json:"count"`
  337. Price float64 `gorm:"column:price" json:"price"`
  338. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  339. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  340. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  341. Status int64 `gorm:"column:status" json:"status"`
  342. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  343. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  344. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  345. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  346. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  347. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  348. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  349. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  350. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  351. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  352. WarehousingInfo WarehousingInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfotId" `
  353. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  354. }
  355. func (WarehouseOutInfoTwenty) TableName() string {
  356. return "xt_warehouse_out_info"
  357. }
  358. type WarehousingInfoTwenty struct {
  359. ID int64 `gorm:"column:id" json:"id"`
  360. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  361. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  362. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  363. Price float64 `gorm:"column:price" json:"price"`
  364. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  365. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  366. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  367. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  368. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  369. Status int64 `gorm:"column:status" json:"status"`
  370. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  371. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  372. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  373. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  374. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  375. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  376. }
  377. func (WarehousingInfoTwenty) TableName() string {
  378. return "xt_warehouse_info"
  379. }
  380. type VmBaseDrugTwenty struct {
  381. ID int64 `gorm:"column:id" json:"id" form:"id"`
  382. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  383. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  384. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  385. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  386. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  387. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  388. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  389. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  390. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  391. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  392. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  393. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  394. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  395. Status int64 `gorm:"column:status" json:"status" form:"status"`
  396. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  397. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  398. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  399. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  400. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  401. DrugFlowWarehouseInfo []*DrugFlowTwenty `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_flow_info"`
  402. DrugActFlowWarehouseInfo []*DrugFlowTwenty `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_act_flow_info"`
  403. DrugWarehouseInfoStart []*DrugFlowTwenty //期初入库结余
  404. DrugWarehouseOutInfoStart []*DrugFlowTwenty //期初出库结余
  405. DrugWarehouseOutInfoEnd []*DrugFlowTwenty //期末出库结余
  406. DrugWarehouseInfoEnd []*DrugFlowTwenty //期末入库结余
  407. DrugWarehouseInfoStartEnd []*DrugFlowTwenty //期中增加
  408. DrugWarehouseOutInfoStartEnd []*DrugFlowTwenty // 期中减少
  409. WareStartStockInventoryProfit []*DrugFlowTwenty //期初盘盈
  410. WareStartStockInventoryLosses []*DrugFlowTwenty //期初盘亏
  411. WareEndStockInventoryProfit []*DrugFlowTwenty //期末盘盈
  412. WareEndStockInventoryLosses []*DrugFlowTwenty //期末盘亏
  413. WareStartEndStockInventoryProfit []*DrugFlowTwenty //期间盘盈
  414. WareStartEndStockInventoryLosses []*DrugFlowTwenty //期间盘亏
  415. WareStartStockCancelInfo []*DrugFlowTwenty //期初结余退库
  416. WareEndStockCancelInfo []*DrugFlowTwenty //期末结余退库
  417. WareStartEndStockCancelInfo []*DrugFlowTwenty //期中减少退库
  418. DrugStatFlow DrugFlowTwenty
  419. DrugEndFlow DrugFlowTwenty
  420. NewDrugFlowInWarehouseInfo []*DrugFlowTwenty `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"new_drug_in_flow_info"`
  421. NewDrugFlowOutWarehouseInfo []*DrugFlowTwenty `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"new_drug_out_flow_info"`
  422. NewDrugFlowPofitWarehouseInfo []*DrugFlowTwenty `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"new_drug_profit_flow_info"`
  423. NewDrugFlowNoPofitWarehouseInfo []*DrugFlowTwenty `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"new_drug_no_profit_flow_info"`
  424. NewDrugFlowNoCancelWarehouseInfo []*DrugFlowTwenty `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"new_drug_cancel_flow_info"`
  425. IsZeroFlag int64 `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"`
  426. }
  427. func (VmBaseDrugTwenty) TableName() string {
  428. return "xt_base_drug"
  429. }
  430. type DrugFlowTwenty struct {
  431. ID int64 `gorm:"column:id" json:"id" form:"id"`
  432. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  433. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  434. Count int64 `gorm:"column:count" json:"count" form:"count"`
  435. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  436. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  437. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  438. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  439. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  440. Status int64 `gorm:"column:status" json:"status" form:"status"`
  441. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  442. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  443. Price float64 `gorm:"column:price" json:"price" form:"price"`
  444. WarehousingDetailId int64 `gorm:"column:warehousing_detail_id" json:"warehousing_detail_id" form:"warehousing_detail_id"`
  445. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  446. CancelOutDetailId int64 `gorm:"column:cancel_out_detail_id" json:"cancel_out_detail_id" form:"cancel_out_detail_id"`
  447. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  448. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  449. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  450. DrugWarehouseInfoOne DrugWarehouseInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehousingDetailId"json:"xt_drug_warehouse_info" `
  451. IsRead int64 `gorm:"column:is_read" json:"is_read" form:"is_read"`
  452. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  453. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  454. XtDrugWarehouseOutInfo XtDrugWarehouseOutInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseOutDetailId"json:"xt_drug_warehouse_out_info" `
  455. }
  456. func (DrugFlowTwenty) TableName() string {
  457. return "xt_drug_flow"
  458. }