new_stock_models.go 34KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. package models
  2. type NewWarehousing struct {
  3. ID int64 `gorm:"column:id" json:"id"`
  4. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  5. OperationTime int64 `gorm:"column:operation_time" json:"operation_time"`
  6. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  7. Creater int64 `gorm:"column:creater" json:"creater"`
  8. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  9. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  10. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  11. Status int64 `gorm:"column:status" json:"status"`
  12. WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time"`
  13. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  14. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  15. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  16. Dealers Dealers `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  17. Type int64 `gorm:"column:type" json:"type"`
  18. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  19. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  20. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  21. SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
  22. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  23. }
  24. func (NewWarehousing) TableName() string {
  25. return "xt_warehouse"
  26. }
  27. type NewWarehousingInfo struct {
  28. ID int64 `gorm:"column:id" json:"id"`
  29. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  30. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  31. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  32. Number string `gorm:"column:number" json:"number"`
  33. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  34. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  35. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  36. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  37. Price float64 `gorm:"column:price" json:"price"`
  38. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  39. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  40. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  41. Remark string `gorm:"column:remark" json:"remark"`
  42. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  43. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  44. Status int64 `gorm:"column:status" json:"status"`
  45. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  46. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  47. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  48. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  49. Type int64 `gorm:"column:type" json:"type"`
  50. GoodName string `json:"good_name"`
  51. PackingUnit string `json:"packing_unit"`
  52. TotalCount int64 `json:"total_count"`
  53. SpecificationName string `json:"specification_name"`
  54. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  55. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  56. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  57. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" json:"infos"`
  58. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  59. Dealers Dealers `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  60. }
  61. func (NewWarehousingInfo) TableName() string {
  62. return "xt_warehouse_info"
  63. }
  64. type NewWarehouseOut struct {
  65. ID int64 `gorm:"column:id" json:"id"`
  66. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  67. OperationTime int64 `gorm:"column:operation_time" json:"operation_time"`
  68. Creater int64 `gorm:"column:creater" json:"creater"`
  69. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  70. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  71. Remark string `gorm:"column:remark" json:"remark"`
  72. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  73. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  74. Status int64 `gorm:"column:status" json:"status"`
  75. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time"`
  76. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  77. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  78. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  79. Dealers Dealers `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  80. Type int64 `gorm:"column:type" json:"type"`
  81. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  82. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  83. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  84. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  85. SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
  86. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  87. }
  88. func (NewWarehouseOut) TableName() string {
  89. return "xt_warehouse_out"
  90. }
  91. type NewWarehouseOutInfo struct {
  92. ID int64 `gorm:"column:id" json:"id"`
  93. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  94. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  95. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  96. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  97. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  98. Count int64 `gorm:"column:count" json:"count"`
  99. Price float64 `gorm:"column:price" json:"price"`
  100. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  101. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  102. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  103. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  104. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  105. Status int64 `gorm:"column:status" json:"status"`
  106. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  107. Remark string `gorm:"column:remark" json:"remark"`
  108. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  109. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  110. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" json:"info"`
  111. Type int64 `gorm:"column:type" json:"type"`
  112. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  113. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  114. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  115. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  116. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  117. Number string `gorm:"column:number" json:"number" form:"number"`
  118. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  119. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  120. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  121. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  122. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  123. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  124. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  125. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  126. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  127. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  128. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  129. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  130. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  131. WarehousingInfo WarehousingInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfotId" `
  132. VmStockFlow VmStockFlow `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseOutDetailId" json:"stock_flow"`
  133. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  134. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  135. Dealers Dealers `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  136. }
  137. func (NewWarehouseOutInfo) TableName() string {
  138. return "xt_warehouse_out_info"
  139. }
  140. type NewCancelStock struct {
  141. ID int64 `gorm:"column:id" json:"id"`
  142. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  143. OperaTime int64 `gorm:"column:opera_time" json:"opera_time"`
  144. Total int64 `gorm:"column:total" json:"total"`
  145. Creater int64 `gorm:"column:creater" json:"creater"`
  146. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  147. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  148. Status int64 `gorm:"column:status" json:"status"`
  149. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  150. ReturnTime int64 `gorm:"column:return_time" json:"return_time"`
  151. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  152. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  153. Type int64 `gorm:"column:type" json:"type"`
  154. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  155. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  156. }
  157. func (NewCancelStock) TableName() string {
  158. return "xt_cancel_stock"
  159. }
  160. type NewCancelStockInfo struct {
  161. ID int64 `gorm:"column:id" json:"id"`
  162. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  163. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id"`
  164. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  165. Count int64 `gorm:"column:count" json:"count"`
  166. Price float64 `gorm:"column:price" json:"price"`
  167. Total float64 `gorm:"column:total" json:"total"`
  168. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  169. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  170. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  171. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  172. Status int64 `gorm:"column:status" json:"status"`
  173. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  174. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  175. Type int64 `gorm:"column:type" json:"type"`
  176. Dealer string `gorm:"column:dealer" json:"dealer"`
  177. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer"`
  178. Number string `gorm:"column:number" json:"number" form:"number"`
  179. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  180. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  181. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  182. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  183. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  184. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  185. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  186. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" json:"info"`
  187. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  188. Dealers Dealers `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  189. }
  190. func (NewCancelStockInfo) TableName() string {
  191. return "xt_cancel_stock_info"
  192. }
  193. type NewDrugWarehouse struct {
  194. ID int64 `gorm:"column:id" json:"id" form:"id"`
  195. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  196. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  197. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  198. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  199. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  200. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  201. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  202. Status int64 `gorm:"column:status" json:"status" form:"status"`
  203. WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time" form:"warehousing_time"`
  204. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  205. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  206. Type int64 `gorm:"column:type" json:"type" form:"type"`
  207. }
  208. func (NewDrugWarehouse) TableName() string {
  209. return "xt_drug_warehouse"
  210. }
  211. type NewDrugWarehouseInfo struct {
  212. ID int64 `gorm:"column:id" json:"id" form:"id"`
  213. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  214. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  215. Number string `gorm:"column:number" json:"number" form:"number"`
  216. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  217. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  218. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  219. Price float64 `gorm:"column:price" json:"price" form:"price"`
  220. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  221. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  222. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  223. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  224. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  225. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  226. Status int64 `gorm:"column:status" json:"status" form:"status"`
  227. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  228. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  229. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  230. Type int64 `gorm:"column:type" json:"type" form:"type"`
  231. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  232. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  233. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  234. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  235. Dealers Dealers `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  236. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  237. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  238. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  239. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  240. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  241. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  242. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  243. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  244. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  245. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  246. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  247. IsPc int64 `gorm:"column:is_pc" json:"is_pc" form:"is_pc"`
  248. IsBg int64 `gorm:"column:is_bg" json:"is_bg" form:"is_bg"`
  249. Bchno string `gorm:"column:bchno" json:"bchno" form:"bchno"`
  250. }
  251. func (NewDrugWarehouseInfo) TableName() string {
  252. return "xt_drug_warehouse_info"
  253. }
  254. type NewDrugWarehouseOut struct {
  255. ID int64 `gorm:"column:id" json:"id" form:"id"`
  256. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  257. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  258. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  259. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  260. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  261. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  262. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  263. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  264. Status int64 `gorm:"column:status" json:"status" form:"status"`
  265. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time" form:"warehouse_out_time"`
  266. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  267. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  268. Type int64 `gorm:"column:type" json:"type" form:"type"`
  269. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  270. Manufacturers *Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
  271. Dealers *Dealers `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
  272. }
  273. func (NewDrugWarehouseOut) TableName() string {
  274. return "xt_drug_warehouse_out"
  275. }
  276. type NewDrugWarehouseOutInfo struct {
  277. ID int64 `gorm:"column:id" json:"id" form:"id"`
  278. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  279. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  280. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  281. Count int64 `gorm:"column:count" json:"count" form:"count"`
  282. Price float64 `gorm:"column:price" json:"price" form:"price"`
  283. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  284. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  285. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  286. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  287. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  288. Status int64 `gorm:"column:status" json:"status" form:"status"`
  289. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  290. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  291. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  292. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  293. Type int64 `gorm:"column:type" json:"type" form:"type"`
  294. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  295. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  296. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  297. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  298. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  299. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  300. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  301. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  302. Dealers Dealers `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  303. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  304. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  305. NewDrugWarehouseInfo NewDrugWarehouseInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfoId" json:"in_info"`
  306. }
  307. func (NewDrugWarehouseOutInfo) TableName() string {
  308. return "xt_drug_warehouse_out_info"
  309. }
  310. type NewDrugCancelStock struct {
  311. ID int64 `gorm:"column:id" json:"id" form:"id"`
  312. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  313. OperaTime int64 `gorm:"column:opera_time" json:"opera_time" form:"opera_time"`
  314. Total int64 `gorm:"column:total" json:"total" form:"total"`
  315. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  316. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  317. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  318. Status int64 `gorm:"column:status" json:"status" form:"status"`
  319. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  320. ReturnTime int64 `gorm:"column:return_time" json:"return_time" form:"return_time"`
  321. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  322. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  323. Type int64 `gorm:"column:type" json:"type" form:"type"`
  324. Manufacturers *Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
  325. Dealers *Dealers `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
  326. }
  327. func (NewDrugCancelStock) TableName() string {
  328. return "xt_drug_cancel_stock"
  329. }
  330. type NewDrugCancelStockInfo struct {
  331. ID int64 `gorm:"column:id" json:"id" form:"id"`
  332. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  333. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  334. Count int64 `gorm:"column:count" json:"count" form:"count"`
  335. Price float64 `gorm:"column:price" json:"price" form:"price"`
  336. Total float64 `gorm:"column:total" json:"total" form:"total"`
  337. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  338. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  339. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  340. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  341. Status int64 `gorm:"column:status" json:"status" form:"status"`
  342. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  343. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  344. Type int64 `gorm:"column:type" json:"type" form:"type"`
  345. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  346. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  347. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  348. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  349. Number string `gorm:"column:number" json:"number" form:"number"`
  350. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  351. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  352. Dealers Dealers `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  353. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  354. }
  355. func (NewDrugCancelStockInfo) TableName() string {
  356. return "xt_drug_cancel_stock_info"
  357. }
  358. type DrugFlow struct {
  359. ID int64 `gorm:"column:id" json:"id" form:"id"`
  360. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  361. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  362. Number string `gorm:"column:number" json:"number" form:"number"`
  363. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  364. Count int64 `gorm:"column:count" json:"count" form:"count"`
  365. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  366. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  367. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  368. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  369. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  370. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  371. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  372. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  373. IsEdit int64 `gorm:"column:is_edit" json:"is_edit" form:"is_edit"`
  374. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  375. CancelOrderNumber string `gorm:"column:cancel_order_number" json:"cancel_order_number" form:"cancel_order_number"`
  376. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  377. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  378. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  379. UpdateCreator int64 `gorm:"column:update_creator" json:"update_creator" form:"update_creator"`
  380. Status int64 `gorm:"column:status" json:"status" form:"status"`
  381. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  382. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  383. Price float64 `gorm:"column:price" json:"price" form:"price"`
  384. WarehousingDetailId int64 `gorm:"column:warehousing_detail_id" json:"warehousing_detail_id" form:"warehousing_detail_id"`
  385. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  386. CancelOutDetailId int64 `gorm:"column:cancel_out_detail_id" json:"cancel_out_detail_id" form:"cancel_out_detail_id"`
  387. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  388. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  389. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  390. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  391. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  392. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  393. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  394. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  395. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  396. HisDoctorAdviceInfo HisDoctorAdviceInfo `gorm:"ForeignKey:ID;AssociationForeignKey:AdviceId" json:"advice"`
  397. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  398. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  399. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  400. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  401. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  402. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  403. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  404. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  405. PharmacyId int64 `gorm:"column:pharmacy_id" json:"pharmacy_id" form:"pharmacy_id"`
  406. IsRead int64 `gorm:"column:is_read" json:"is_read" form:"is_read"`
  407. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  408. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  409. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  410. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  411. IsSale int64 `gorm:"column:is_sale" json:"is_sale" form:"is_sale"`
  412. IsChange int64 `gorm:"column:is_change" json:"is_change" form:"is_change"`
  413. }
  414. func (DrugFlow) TableName() string {
  415. return "xt_drug_flow"
  416. }