drug_stock.go 60KB

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