drug_stock.go 69KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  1. package models
  2. type DrugWarehouse struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  5. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  6. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  7. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  8. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  9. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  10. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  11. Status int64 `gorm:"column:status" json:"status" form:"status"`
  12. WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time" form:"warehousing_time"`
  13. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  14. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  15. Type int64 `gorm:"column:type" json:"type" form:"type"`
  16. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  17. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  18. SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
  19. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  20. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  21. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  22. }
  23. func (DrugWarehouse) TableName() string {
  24. return "xt_drug_warehouse"
  25. }
  26. type DrugWarehouseInfoSix struct {
  27. ID int64 `gorm:"column:id" json:"id" form:"id"`
  28. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  29. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  30. Number string `gorm:"column:number" json:"number" form:"number"`
  31. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  32. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  33. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  34. Price float64 `gorm:"column:price" json:"price" form:"price"`
  35. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  36. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  37. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  38. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  39. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  40. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  41. Status int64 `gorm:"column:status" json:"status" form:"status"`
  42. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  43. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  44. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  45. Type int64 `gorm:"column:type" json:"type" form:"type"`
  46. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  47. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  48. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  49. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  50. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  51. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  52. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  53. MinNumber int64 `json:"min_number"`
  54. }
  55. type DrugWarehouseInfo struct {
  56. ID int64 `gorm:"column:id" json:"id" form:"id"`
  57. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  58. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  59. Number string `gorm:"column:number" json:"number" form:"number"`
  60. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  61. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  62. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  63. Price float64 `gorm:"column:price" json:"price" form:"price"`
  64. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  65. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  66. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  67. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  68. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  69. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  70. Status int64 `gorm:"column:status" json:"status" form:"status"`
  71. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  72. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  73. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  74. Type int64 `gorm:"column:type" json:"type" form:"type"`
  75. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  76. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  77. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  78. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  79. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  80. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  81. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  82. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  83. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  84. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  85. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  86. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  87. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  88. ManafacturerName string `gorm:"column:manafacturer_name" json:"manafacturer_name" form:"manafacturer_name"`
  89. DealerName string `gorm:"column:dealer_name" json:"dealer_name" form:"dealer_name"`
  90. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  91. }
  92. func (DrugWarehouseInfo) TableName() string {
  93. return "xt_drug_warehouse_info"
  94. }
  95. type DrugWarehouseInfoTen struct {
  96. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  97. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  98. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  99. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  100. Status int64 `gorm:"column:status" json:"status" form:"status"`
  101. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  102. }
  103. func (DrugWarehouseInfoTen) TableName() string {
  104. return "xt_drug_warehouse_info"
  105. }
  106. type DrugWarehouseInfoSeven struct {
  107. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  108. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  109. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  110. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  111. }
  112. func (DrugWarehouseInfoSeven) TableName() string {
  113. return "xt_drug_warehouse_info"
  114. }
  115. type DrugWarehouseOut struct {
  116. ID int64 `gorm:"column:id" json:"id" form:"id"`
  117. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  118. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  119. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  120. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  121. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  122. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  123. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  124. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  125. Status int64 `gorm:"column:status" json:"status" form:"status"`
  126. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time" form:"warehouse_out_time"`
  127. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  128. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  129. Type int64 `gorm:"column:type" json:"type" form:"type"`
  130. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  131. Manufacturers *Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
  132. Dealers *Dealer `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
  133. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  134. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  135. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  136. SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
  137. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  138. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  139. }
  140. func (DrugWarehouseOut) TableName() string {
  141. return "xt_drug_warehouse_out"
  142. }
  143. type DrugWarehouseOutInfo struct {
  144. ID int64 `gorm:"column:id" json:"id" form:"id"`
  145. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  146. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  147. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  148. Count int64 `gorm:"column:count" json:"count" form:"count"`
  149. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  150. Price float64 `gorm:"column:price" json:"price" form:"price"`
  151. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  152. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  153. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  154. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  155. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  156. Status int64 `gorm:"column:status" json:"status" form:"status"`
  157. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  158. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  159. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  160. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  161. Type int64 `gorm:"column:type" json:"type" form:"type"`
  162. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  163. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  164. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  165. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  166. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  167. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  168. Number string `gorm:"column:number" json:"number" form:"number"`
  169. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  170. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  171. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  172. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  173. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  174. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  175. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  176. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  177. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  178. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  179. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  180. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  181. PharmacyId int64 `gorm:"column:pharmacy_id" json:"pharmacy_id" form:"pharmacy_id"`
  182. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  183. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
  184. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  185. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  186. ManafacturerName string `gorm:"column:manafacturer_name" json:"manafacturer_name" form:"manafacturer_name"`
  187. ClassType string `gorm:"column:class_type" json:"class_type" form:"class_type"`
  188. }
  189. func (DrugWarehouseOutInfo) TableName() string {
  190. return "xt_drug_warehouse_out_info"
  191. }
  192. type DrugSalesReturn struct {
  193. ID int64 `gorm:"column:id" json:"id" form:"id"`
  194. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  195. OperaTime int64 `gorm:"column:opera_time" json:"opera_time" form:"opera_time"`
  196. Total int64 `gorm:"column:total" json:"total" form:"total"`
  197. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  198. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  199. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  200. Status int64 `gorm:"column:status" json:"status" form:"status"`
  201. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  202. ReturnTime int64 `gorm:"column:return_time" json:"return_time" form:"return_time"`
  203. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  204. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  205. Type int64 `gorm:"column:type" json:"type" form:"type"`
  206. Manufacturers *Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
  207. Dealers *Dealer `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
  208. }
  209. func (DrugSalesReturn) TableName() string {
  210. return "xt_drug_sales_return"
  211. }
  212. type DrugSalesReturnInfo struct {
  213. ID int64 `gorm:"column:id" json:"id" form:"id"`
  214. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  215. SalesReturnId int64 `gorm:"column:sales_return_id" json:"sales_return_id" form:"sales_return_id"`
  216. Count int64 `gorm:"column:count" json:"count" form:"count"`
  217. Price float64 `gorm:"column:price" json:"price" form:"price"`
  218. Total float64 `gorm:"column:total" json:"total" form:"total"`
  219. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  220. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  221. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  222. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  223. Status int64 `gorm:"column:status" json:"status" form:"status"`
  224. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  225. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  226. Type int64 `gorm:"column:type" json:"type" form:"type"`
  227. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  228. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  229. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  230. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  231. Number string `gorm:"column:number" json:"number" form:"number"`
  232. }
  233. func (DrugSalesReturnInfo) TableName() string {
  234. return "xt_drug_sales_return_info"
  235. }
  236. type DrugCancelStock struct {
  237. ID int64 `gorm:"column:id" json:"id" form:"id"`
  238. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  239. OperaTime int64 `gorm:"column:opera_time" json:"opera_time" form:"opera_time"`
  240. Total int64 `gorm:"column:total" json:"total" form:"total"`
  241. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  242. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  243. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  244. Status int64 `gorm:"column:status" json:"status" form:"status"`
  245. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  246. ReturnTime int64 `gorm:"column:return_time" json:"return_time" form:"return_time"`
  247. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  248. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  249. Type int64 `gorm:"column:type" json:"type" form:"type"`
  250. Manufacturers *Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
  251. Dealers *Dealer `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
  252. DrugCancelStockInfo []*DrugCancelStockInfo `gorm:"ForeignKey:CancelStockId;AssociationForeignKey:ID" json:"drugCancelStockInfo"`
  253. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  254. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  255. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  256. }
  257. func (DrugCancelStock) TableName() string {
  258. return "xt_drug_cancel_stock"
  259. }
  260. type DrugCancelStockInfo struct {
  261. ID int64 `gorm:"column:id" json:"id" form:"id"`
  262. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  263. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  264. Count int64 `gorm:"column:count" json:"count" form:"count"`
  265. Price float64 `gorm:"column:price" json:"price" form:"price"`
  266. Total float64 `gorm:"column:total" json:"total" form:"total"`
  267. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  268. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  269. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  270. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  271. Status int64 `gorm:"column:status" json:"status" form:"status"`
  272. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  273. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  274. Type int64 `gorm:"column:type" json:"type" form:"type"`
  275. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  276. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  277. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  278. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  279. Number string `gorm:"column:number" json:"number" form:"number"`
  280. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  281. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  282. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  283. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  284. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  285. BatchNumberId int64 `gorm:"column:batch_number_id" json:"batch_number_id" form:"batch_number_id"`
  286. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  287. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  288. DrugWarehouseInfo []*DrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId"json:"drug_warehouse_info" `
  289. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  290. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  291. }
  292. func (DrugCancelStockInfo) TableName() string {
  293. return "xt_drug_cancel_stock_info"
  294. }
  295. type DrugAutomaticReduceDetail struct {
  296. ID int64 `gorm:"column:id" json:"id" form:"id"`
  297. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  298. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  299. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  300. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  301. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  302. Status int64 `gorm:"column:status" json:"status" form:"status"`
  303. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  304. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  305. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  306. Count int64 `gorm:"column:count" json:"count" form:"count"`
  307. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  308. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  309. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  310. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  311. }
  312. func (DrugAutomaticReduceDetail) TableName() string {
  313. return "xt_drug_automatic_reduce_detail"
  314. }
  315. type VmDrugAutomaticReduceDetail struct {
  316. ID int64 `gorm:"column:id" json:"id" form:"id"`
  317. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  318. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  319. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  320. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  321. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  322. Total int64
  323. }
  324. type VmDrugWarehouseInfo struct {
  325. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  326. Count int64 `gorm:"column:count" json:"count" form:"count"`
  327. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  328. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  329. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  330. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  331. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  332. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  333. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  334. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  335. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  336. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  337. }
  338. type StDrugWarehouseOutInfo struct {
  339. ID int64 `gorm:"column:id" json:"id" form:"id"`
  340. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  341. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  342. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  343. Count int64 `gorm:"column:count" json:"count" form:"count"`
  344. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  345. Price float64 `gorm:"column:price" json:"price" form:"price"`
  346. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  347. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  348. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  349. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  350. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  351. Status int64 `gorm:"column:status" json:"status" form:"status"`
  352. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  353. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  354. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  355. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  356. Type int64 `gorm:"column:type" json:"type" form:"type"`
  357. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  358. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  359. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  360. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  361. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  362. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  363. Number string `gorm:"column:number" json:"number" form:"number"`
  364. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  365. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  366. DrugName string `json:"drug_name"`
  367. DrugType int64 `json:"drug_type"`
  368. MaxUnit string `json:"max_unit"`
  369. MinUnit string `json:"min_unit"`
  370. MinNumber int64 `json:"min_number"`
  371. MinPrice float64 `json:"min_price"`
  372. Dose string `json:"dose"`
  373. DoseUnit string `json:"dose_unit"`
  374. LastPrice string `json:"last_price"`
  375. PackingUnit string `json:"packing_unit"`
  376. Dosage int64 `json:"dosage"`
  377. ExpireDate int64 `json:"expire_date"`
  378. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  379. }
  380. type DrugFlow 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. DrugWarehouseInfo []*DrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" `
  418. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  419. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  420. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  421. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  422. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  423. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  424. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  425. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  426. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  427. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  428. PharmacyId int64 `gorm:"column:pharmacy_id" json:"pharmacy_id" form:"pharmacy_id"`
  429. DrugWarehouseInfoOne DrugWarehouseInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehousingDetailId"json:"xt_drug_warehouse_info" `
  430. IsRead int64 `gorm:"column:is_read" json:"is_read" form:"is_read"`
  431. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  432. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  433. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  434. XtDrugWarehouseOutInfo XtDrugWarehouseOutInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseOutDetailId"json:"xt_drug_warehouse_out_info" `
  435. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  436. FlushOverCount int64 `gorm:"column:flush_over_count" json:"flush_over_count" form:"flush_over_count"`
  437. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  438. OperateTime int64 `gorm:"column:operate_time" json:"operate_time" form:"operate_time"`
  439. SaleDate string `gorm:"column:sale_date" json:"sale_date" form:"sale_date"`
  440. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  441. }
  442. func (DrugFlow) TableName() string {
  443. return "xt_drug_flow"
  444. }
  445. type DrugWarehouseOutTwenty struct {
  446. ID int64 `gorm:"column:id" json:"id" form:"id"`
  447. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  448. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  449. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  450. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  451. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  452. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  453. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  454. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  455. Status int64 `gorm:"column:status" json:"status" form:"status"`
  456. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time" form:"warehouse_out_time"`
  457. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  458. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  459. Type int64 `gorm:"column:type" json:"type" form:"type"`
  460. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  461. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  462. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  463. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  464. SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
  465. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
  466. DrugWarehouseOutInfoTenty []*DrugWarehouseOutInfoTenty `gorm:"ForeignKey:WarehouseOutId;AssociationForeignKey:ID"json:"xt_drug_warehouse_out_info" `
  467. }
  468. func (DrugWarehouseOutTwenty) TableName() string {
  469. return "xt_drug_warehouse_out"
  470. }
  471. type DrugWarehouseOutInfoTenty struct {
  472. ID int64 `gorm:"column:id" json:"id" form:"id"`
  473. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  474. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  475. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  476. Count int64 `gorm:"column:count" json:"count" form:"count"`
  477. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  478. Price float64 `gorm:"column:price" json:"price" form:"price"`
  479. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  480. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  481. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  482. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  483. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  484. Status int64 `gorm:"column:status" json:"status" form:"status"`
  485. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  486. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  487. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  488. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  489. Type int64 `gorm:"column:type" json:"type" form:"type"`
  490. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  491. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  492. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  493. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  494. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  495. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  496. Number string `gorm:"column:number" json:"number" form:"number"`
  497. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  498. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  499. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  500. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  501. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  502. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  503. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  504. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  505. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  506. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  507. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  508. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  509. PharmacyId int64 `gorm:"column:pharmacy_id" json:"pharmacy_id" form:"pharmacy_id"`
  510. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
  511. DrugWarehouseInfo XtDrugWarehouseInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfoId"json:"drug_warehouse_info" `
  512. }
  513. func (DrugWarehouseOutInfoTenty) TableName() string {
  514. return "xt_drug_warehouse_out_info"
  515. }
  516. type DrugWarehouseInfoTwenty struct {
  517. ID int64 `gorm:"column:id" json:"id" form:"id"`
  518. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  519. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  520. Number string `gorm:"column:number" json:"number" form:"number"`
  521. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  522. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  523. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  524. Price float64 `gorm:"column:price" json:"price" form:"price"`
  525. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  526. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  527. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  528. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  529. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  530. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  531. Status int64 `gorm:"column:status" json:"status" form:"status"`
  532. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  533. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  534. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  535. Type int64 `gorm:"column:type" json:"type" form:"type"`
  536. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  537. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  538. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  539. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  540. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  541. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  542. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  543. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  544. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  545. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  546. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  547. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  548. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  549. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  550. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
  551. DrugWarehouseOutInfoTenty []*DrugWarehouseOutInfoTenty `gorm:"ForeignKey:WarehouseOutId;AssociationForeignKey:ID"json:"xt_drug_warehouse_out_info"
  552. `
  553. }
  554. func (DrugWarehouseInfoTwenty) TableName() string {
  555. return "xt_drug_warehouse_info"
  556. }
  557. type XtDrugWarehouseFlushInfo struct {
  558. ID int64 `gorm:"column:id" json:"id" form:"id"`
  559. DrugMaxNumber int64 `gorm:"column:drug_max_number" json:"drug_max_number" form:"drug_max_number"`
  560. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  561. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  562. Type int64 `gorm:"column:type" json:"type" form:"type"`
  563. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  564. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  565. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  566. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  567. BatchNumberId int64 `gorm:"column:batch_number_id" json:"batch_number_id" form:"batch_number_id"`
  568. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  569. Count int64 `gorm:"column:count" json:"count" form:"count"`
  570. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  571. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  572. DrugMinNumber int64 `gorm:"column:drug_min_number" json:"drug_min_number" form:"drug_min_number"`
  573. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  574. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  575. Status int64 `gorm:"column:status" json:"status" form:"status"`
  576. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  577. }
  578. func (XtDrugWarehouseFlushInfo) TableName() string {
  579. return "xt_drug_warehouse_flush_info"
  580. }
  581. type DrugFlowNight struct {
  582. ID int64 `gorm:"column:id" json:"id" form:"id"`
  583. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  584. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  585. Number string `gorm:"column:number" json:"number" form:"number"`
  586. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  587. Count int64 `gorm:"column:count" json:"count" form:"count"`
  588. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  589. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  590. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  591. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  592. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  593. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  594. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  595. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  596. IsEdit int64 `gorm:"column:is_edit" json:"is_edit" form:"is_edit"`
  597. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  598. CancelOrderNumber string `gorm:"column:cancel_order_number" json:"cancel_order_number" form:"cancel_order_number"`
  599. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  600. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  601. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  602. UpdateCreator int64 `gorm:"column:update_creator" json:"update_creator" form:"update_creator"`
  603. Status int64 `gorm:"column:status" json:"status" form:"status"`
  604. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  605. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  606. Price float64 `gorm:"column:price" json:"price" form:"price"`
  607. WarehousingDetailId int64 `gorm:"column:warehousing_detail_id" json:"warehousing_detail_id" form:"warehousing_detail_id"`
  608. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  609. CancelOutDetailId int64 `gorm:"column:cancel_out_detail_id" json:"cancel_out_detail_id" form:"cancel_out_detail_id"`
  610. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  611. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  612. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  613. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  614. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  615. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  616. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  617. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  618. BaseDrugLibSeven BaseDrugLibSeven `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  619. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  620. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  621. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  622. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  623. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  624. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  625. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  626. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  627. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  628. PharmacyId int64 `gorm:"column:pharmacy_id" json:"pharmacy_id" form:"pharmacy_id"`
  629. DrugWarehouseInfoOne DrugWarehouseInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehousingDetailId"json:"xt_drug_warehouse_info" `
  630. IsRead int64 `gorm:"column:is_read" json:"is_read" form:"is_read"`
  631. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  632. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  633. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  634. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  635. }
  636. func (DrugFlowNight) TableName() string {
  637. return "xt_drug_flow"
  638. }
  639. type DrugWarehouseOutInfoNight struct {
  640. ID int64 `gorm:"column:id" json:"id" form:"id"`
  641. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  642. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  643. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  644. Count int64 `gorm:"column:count" json:"count" form:"count"`
  645. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  646. Price float64 `gorm:"column:price" json:"price" form:"price"`
  647. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  648. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  649. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  650. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  651. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  652. Status int64 `gorm:"column:status" json:"status" form:"status"`
  653. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  654. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  655. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  656. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  657. Type int64 `gorm:"column:type" json:"type" form:"type"`
  658. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  659. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  660. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  661. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  662. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  663. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  664. Number string `gorm:"column:number" json:"number" form:"number"`
  665. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  666. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  667. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  668. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  669. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  670. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  671. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  672. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  673. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  674. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  675. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  676. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  677. PharmacyId int64 `gorm:"column:pharmacy_id" json:"pharmacy_id" form:"pharmacy_id"`
  678. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  679. Drug BaseDrugLibSeven `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
  680. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  681. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  682. ClassType string `gorm:"column:class_type" json:"class_type" form:"class_type"`
  683. }
  684. func (DrugWarehouseOutInfoNight) TableName() string {
  685. return "xt_drug_warehouse_out_info"
  686. }
  687. type XtDrugError struct {
  688. ID int64 `gorm:"column:id" json:"id" form:"id"`
  689. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  690. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  691. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  692. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  693. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  694. Status int64 `gorm:"column:status" json:"status" form:"status"`
  695. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  696. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  697. Prescribingnumber float64 `gorm:"column:prescribingnumber" json:"prescribingnumber" form:"prescribingnumber"`
  698. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  699. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  700. }
  701. func (XtDrugError) TableName() string {
  702. return "xt_drug_error"
  703. }
  704. type XtDrugFlowList struct {
  705. ID int64 `gorm:"column:id" json:"id" form:"id"`
  706. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  707. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  708. Number string `gorm:"column:number" json:"number" form:"number"`
  709. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  710. Count int64 `gorm:"column:count" json:"count" form:"count"`
  711. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  712. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  713. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  714. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  715. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  716. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  717. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  718. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  719. IsEdit int64 `gorm:"column:is_edit" json:"is_edit" form:"is_edit"`
  720. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  721. CancelOrderNumber string `gorm:"column:cancel_order_number" json:"cancel_order_number" form:"cancel_order_number"`
  722. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  723. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  724. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  725. UpdateCreator int64 `gorm:"column:update_creator" json:"update_creator" form:"update_creator"`
  726. Status int64 `gorm:"column:status" json:"status" form:"status"`
  727. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  728. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  729. Price float64 `gorm:"column:price" json:"price" form:"price"`
  730. WarehousingDetailId int64 `gorm:"column:warehousing_detail_id" json:"warehousing_detail_id" form:"warehousing_detail_id"`
  731. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  732. CancelOutDetailId int64 `gorm:"column:cancel_out_detail_id" json:"cancel_out_detail_id" form:"cancel_out_detail_id"`
  733. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  734. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  735. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  736. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  737. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  738. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  739. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  740. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  741. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  742. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  743. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  744. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  745. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  746. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  747. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  748. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  749. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  750. PharmacyId int64 `gorm:"column:pharmacy_id" json:"pharmacy_id" form:"pharmacy_id"`
  751. IsRead int64 `gorm:"column:is_read" json:"is_read" form:"is_read"`
  752. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  753. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  754. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  755. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  756. FlushOverCount int64 `gorm:"column:flush_over_count" json:"flush_over_count" form:"flush_over_count"`
  757. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  758. OperateTime int64 `gorm:"column:operate_time" json:"operate_time" form:"operate_time"`
  759. IsSale int64 `gorm:"column:is_sale" json:"is_sale" form:"is_sale"`
  760. IsChange int64 `gorm:"column:is_change" json:"is_change" form:"is_change"`
  761. SaleDate string `gorm:"column:sale_date" json:"sale_date" form:"sale_date"`
  762. Bchno string `gorm:"column:bchno" json:"bchno" form:"bchno"`
  763. BgBchno string `gorm:"column:bg_bchno" json:"bg_bchno" form:"bg_bchno"`
  764. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  765. }
  766. func (XtDrugFlowList) TableName() string {
  767. return "xt_drug_flow"
  768. }