self_drug_models.go 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. package models
  2. type DrugPatients struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  5. Name string `gorm:"column:name" json:"name" form:"name"`
  6. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  7. Status int64 `gorm:"column:status" json:"status" form:"status"`
  8. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  9. }
  10. func (DrugPatients) TableName() string {
  11. return "xt_patients"
  12. }
  13. type XtBaseDrug struct {
  14. ID int64 `gorm:"column:id" json:"id" form:"id"`
  15. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  16. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  17. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  18. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  19. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  20. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  21. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  22. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  23. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  24. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  25. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  26. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  27. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  28. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  29. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  30. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  31. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  32. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  33. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  34. Number string `gorm:"column:number" json:"number" form:"number"`
  35. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  36. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  37. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  38. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  39. //ProvincesCode string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  40. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  41. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  42. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  43. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  44. Code string `gorm:"column:code" json:"code" form:"code"`
  45. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  46. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  47. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  48. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  49. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  50. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  51. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  52. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  53. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  54. Label int64 `gorm:"column:label" json:"label" form:"label"`
  55. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  56. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  57. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  58. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  59. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  60. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  61. Status int64 `gorm:"column:status" json:"status" form:"status"`
  62. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  63. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  64. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  65. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  66. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  67. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  68. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  69. }
  70. func (XtBaseDrug) TableName() string {
  71. return "xt_base_drug"
  72. }
  73. type DrugName struct {
  74. ID int64 `gorm:"column:id" json:"id" form:"id"`
  75. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  76. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  77. Status int64 `gorm:"column:status" json:"status" form:"status"`
  78. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  79. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  80. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  81. XtStandName []XtStandName `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"XtStandName"`
  82. }
  83. func (DrugName) TableName() string {
  84. return "xt_drug_name"
  85. }
  86. type XtDrugName struct {
  87. ID int64 `gorm:"column:id" json:"id" form:"id"`
  88. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  89. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  90. Status int64 `gorm:"column:status" json:"status" form:"status"`
  91. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  92. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  93. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  94. }
  95. func (XtDrugName) TableName() string {
  96. return "xt_drug_name"
  97. }
  98. type XtStandName struct {
  99. ID int64 `gorm:"column:id" json:"id" form:"id"`
  100. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  101. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  102. Price float64 `gorm:"column:price" json:"price" form:"price"`
  103. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  104. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  105. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  106. Status int64 `gorm:"column:status" json:"status" form:"status"`
  107. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  108. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  109. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  110. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  111. }
  112. func (XtStandName) TableName() string {
  113. return "xt_stand_name"
  114. }
  115. type XtSelfMedicals struct {
  116. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  117. ID int64 `gorm:"column:id" json:"id" form:"id"`
  118. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  119. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  120. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  121. Status int64 `gorm:"column:status" json:"status" form:"status"`
  122. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  123. StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"`
  124. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  125. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  126. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  127. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  128. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  129. Total int64
  130. }
  131. type XtSelfMedical struct {
  132. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  133. ID int64 `gorm:"column:id" json:"id" form:"id"`
  134. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  135. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  136. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  137. Status int64 `gorm:"column:status" json:"status" form:"status"`
  138. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  139. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  140. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  141. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  142. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  143. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  144. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  145. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  146. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  147. }
  148. func (XtSelfMedical) TableName() string {
  149. return "xt_self_medical"
  150. }
  151. type XtSelfStock struct {
  152. ID int64 `gorm:"column:id" json:"id" form:"id"`
  153. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  154. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  155. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  156. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  157. StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"`
  158. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  159. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  160. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  161. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  162. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  163. Status int64 `gorm:"column:status" json:"status" form:"status"`
  164. StockInNumber string `gorm:"column:stock_in_number" json:"stock_in_number" form:"stock_in_number"`
  165. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  166. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  167. StorageMode int64 `gorm:"column:storage_mode" json:"storage_mode" form:"storage_mode"`
  168. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  169. }
  170. func (XtSelfStock) TableName() string {
  171. return "xt_self_stock"
  172. }
  173. type SelfOutStock struct {
  174. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  175. ID int64 `gorm:"column:id" json:"id" form:"id"`
  176. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  177. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  178. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  179. Status int64 `gorm:"column:status" json:"status" form:"status"`
  180. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  181. OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"`
  182. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  183. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  184. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  185. Count int64
  186. }
  187. type XtSelfOutStock struct {
  188. ID int64 `gorm:"column:id" json:"id" form:"id"`
  189. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  190. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  191. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  192. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  193. OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"`
  194. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  195. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  196. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  197. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  198. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  199. Status int64 `gorm:"column:status" json:"status" form:"status"`
  200. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  201. StockOutNumber string `gorm:"column:stock_out_number" json:"stock_out_number" form:"stock_out_number"`
  202. ExitMode int64 `gorm:"column:exit_mode" json:"exit_mode" form:"exit_mode"`
  203. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  204. }
  205. func (XtSelfOutStock) TableName() string {
  206. return "xt_self_out_stock"
  207. }
  208. type XtDrugSet struct {
  209. ID int64 `gorm:"column:id" json:"id" form:"id"`
  210. DrugStart int64 `gorm:"column:drug_start" json:"drug_start" form:"drug_start"`
  211. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  212. Status int64 `gorm:"column:status" json:"status" form:"status"`
  213. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  214. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  215. }
  216. func (XtDrugSet) TableName() string {
  217. return "xt_drug_set"
  218. }
  219. type SelfStocks struct {
  220. ID int64 `gorm:"column:id" json:"id" form:"id"`
  221. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  222. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  223. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  224. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  225. StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"`
  226. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  227. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  228. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  229. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  230. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  231. Status int64 `gorm:"column:status" json:"status" form:"status"`
  232. StockInNumber string `gorm:"column:stock_in_number" json:"stock_in_number" form:"stock_in_number"`
  233. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  234. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  235. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  236. Name string `gorm:"column:name" json:"name" form:"name"`
  237. DialysisNO string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  238. Total int64
  239. }
  240. type XtSelfOutStocks struct {
  241. ID int64 `gorm:"column:id" json:"id" form:"id"`
  242. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  243. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  244. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  245. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  246. OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"`
  247. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  248. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  249. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  250. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  251. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  252. Status int64 `gorm:"column:status" json:"status" form:"status"`
  253. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  254. StockOutNumber string `gorm:"column:stock_out_number" json:"stock_out_number" form:"stock_out_number"`
  255. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  256. Name string `gorm:"column:name" json:"name" form:"name"`
  257. DialysisNO string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  258. Count int64
  259. }
  260. type XtDrugWarehouse struct {
  261. ID int64 `gorm:"column:id" json:"id" form:"id"`
  262. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  263. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  264. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  265. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  266. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  267. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  268. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  269. Status int64 `gorm:"column:status" json:"status" form:"status"`
  270. WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time" form:"warehousing_time"`
  271. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  272. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  273. Type int64 `gorm:"column:type" json:"type" form:"type"`
  274. }
  275. func (XtDrugWarehouse) TableName() string {
  276. return "xt_drug_warehouse"
  277. }
  278. type XtDrugWarehouseOut struct {
  279. ID int64 `gorm:"column:id" json:"id" form:"id"`
  280. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  281. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  282. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  283. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  284. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  285. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  286. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  287. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  288. Status int64 `gorm:"column:status" json:"status" form:"status"`
  289. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time" form:"warehouse_out_time"`
  290. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  291. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  292. Type int64 `gorm:"column:type" json:"type" form:"type"`
  293. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  294. }
  295. func (XtDrugWarehouseOut) TableName() string {
  296. return "xt_drug_warehouse_out"
  297. }
  298. type XtDrugWarehouseOutInfo struct {
  299. ID int64 `gorm:"column:id" json:"id" form:"id"`
  300. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  301. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  302. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  303. Count int64 `gorm:"column:count" json:"count" form:"count"`
  304. Price float64 `gorm:"column:price" json:"price" form:"price"`
  305. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  306. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  307. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  308. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  309. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  310. Status int64 `gorm:"column:status" json:"status" form:"status"`
  311. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  312. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  313. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  314. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  315. Type int64 `gorm:"column:type" json:"type" form:"type"`
  316. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  317. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  318. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  319. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  320. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  321. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  322. }
  323. func (XtDrugWarehouseOutInfo) TableName() string {
  324. return "xt_drug_warehouse_out_info"
  325. }
  326. type XtDrugAutomaticReduceDetail struct {
  327. ID int64 `gorm:"column:id" json:"id" form:"id"`
  328. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  329. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  330. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  331. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  332. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  333. Status int64 `gorm:"column:status" json:"status" form:"status"`
  334. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  335. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  336. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  337. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  338. Count int64 `gorm:"column:count" json:"count" form:"count"`
  339. }
  340. func (XtDrugAutomaticReduceDetail) TableName() string {
  341. return "xt_drug_automatic_reduce_detail"
  342. }
  343. type XtDrugWarehouseInfo struct {
  344. ID int64 `gorm:"column:id" json:"id" form:"id"`
  345. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  346. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  347. Number string `gorm:"column:number" json:"number" form:"number"`
  348. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  349. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  350. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  351. Price float64 `gorm:"column:price" json:"price" form:"price"`
  352. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  353. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  354. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  355. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  356. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  357. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  358. Status int64 `gorm:"column:status" json:"status" form:"status"`
  359. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  360. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  361. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  362. Type int64 `gorm:"column:type" json:"type" form:"type"`
  363. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  364. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  365. }
  366. func (XtDrugWarehouseInfo) TableName() string {
  367. return "xt_drug_warehouse_info"
  368. }
  369. type DrugWarehousingInfo struct {
  370. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  371. Count int64
  372. }
  373. type XtDrugStockConfig struct {
  374. ID int64 `gorm:"column:id" json:"id" form:"id"`
  375. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  376. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  377. Status int64 `gorm:"column:status" json:"status" form:"status"`
  378. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  379. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  380. }
  381. func (XtDrugStockConfig) TableName() string {
  382. return "xt_drug_stock_config"
  383. }