stock_models.go 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. package models
  2. type Manufacturer struct {
  3. ID int64 `gorm:"column:id" json:"id"`
  4. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name"`
  5. Contact string `gorm:"column:contact" json:"contact"`
  6. ContactPhone string `gorm:"column:contact_phone" json:"contact_phone"`
  7. PlatformNumber string `gorm:"column:platform_number" json:"platform_number"`
  8. Email string `gorm:"column:email" json:"email"`
  9. ContactAddress string `gorm:"column:contact_address" json:"contact_address"`
  10. Remark string `gorm:"column:remark" json:"remark"`
  11. Creater int64 `gorm:"column:creater" json:"creater"`
  12. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  13. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  14. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  15. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  16. Status int64 `gorm:"column:status" json:"status"`
  17. ManufacturerCode string `gorm:"column:manufacturer_code" json:"manufacturer_code"`
  18. PinYin string `gorm:"column:pinyin" json:"pinyin"`
  19. WuBi string `gorm:"column:wubi" json:"wubi"`
  20. }
  21. func (Manufacturer) TableName() string {
  22. return "xt_manufacturer"
  23. }
  24. type Dealer struct {
  25. ID int64 `gorm:"column:id" json:"id"`
  26. DealerName string `gorm:"column:dealer_name" json:"dealer_name"`
  27. Contact string `gorm:"column:contact" json:"contact"`
  28. ContactPhone string `gorm:"column:contact_phone" json:"contact_phone"`
  29. PlatformNumber string `gorm:"column:platform_number" json:"platform_number"`
  30. Email string `gorm:"column:email" json:"email"`
  31. ContactAddress string `gorm:"column:contact_address" json:"contact_address"`
  32. Remark string `gorm:"column:remark" json:"remark"`
  33. Creater int64 `gorm:"column:creater" json:"creater"`
  34. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  35. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  36. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  37. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  38. Status int64 `gorm:"column:status" json:"status"`
  39. DealerCode string `gorm:"column:dealer_code" json:"dealer_code"`
  40. PinYin string `gorm:"column:pinyin" json:"pinyin"`
  41. WuBi string `gorm:"column:wubi" json:"wubi"`
  42. }
  43. func (Dealer) TableName() string {
  44. return "xt_dealer"
  45. }
  46. type Warehousing struct {
  47. ID int64 `gorm:"column:id" json:"id"`
  48. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  49. OperationTime int64 `gorm:"column:operation_time" json:"operation_time"`
  50. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  51. Creater int64 `gorm:"column:creater" json:"creater"`
  52. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  53. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  54. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  55. Status int64 `gorm:"column:status" json:"status"`
  56. WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time"`
  57. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  58. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  59. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  60. Dealers Dealer `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  61. Type int64 `gorm:"column:type" json:"type"`
  62. }
  63. func (Warehousing) TableName() string {
  64. return "xt_warehouse"
  65. }
  66. type StWarehousingInfo struct {
  67. ID int64 `gorm:"column:id" json:"id"`
  68. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  69. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  70. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  71. Number string `gorm:"column:number" json:"number"`
  72. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  73. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  74. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  75. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  76. Price float64 `gorm:"column:price" json:"price"`
  77. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  78. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  79. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  80. Remark string `gorm:"column:remark" json:"remark"`
  81. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  82. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  83. Status int64 `gorm:"column:status" json:"status"`
  84. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  85. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  86. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  87. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  88. Type int64 `gorm:"column:type" json:"type"`
  89. }
  90. func (StWarehousingInfo) TableName() string {
  91. return "xt_warehouse_info"
  92. }
  93. type WarehousingInfo struct {
  94. ID int64 `gorm:"column:id" json:"id"`
  95. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  96. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  97. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  98. Number string `gorm:"column:number" json:"number"`
  99. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  100. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  101. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  102. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  103. Price float64 `gorm:"column:price" json:"price"`
  104. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  105. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  106. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  107. Remark string `gorm:"column:remark" json:"remark"`
  108. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  109. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  110. Status int64 `gorm:"column:status" json:"status"`
  111. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  112. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  113. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  114. Warehousing Warehousing `ForeignKey:WarehousingId json:"warehouse"`
  115. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  116. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  117. Type int64 `gorm:"column:type" json:"type"`
  118. }
  119. func (WarehousingInfo) TableName() string {
  120. return "xt_warehouse_info"
  121. }
  122. type VmWarehousingInfo struct {
  123. ID int64 `gorm:"column:id" json:"id"`
  124. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  125. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  126. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  127. Number string `gorm:"column:number" json:"number"`
  128. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  129. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  130. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  131. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  132. Price float64 `gorm:"column:price" json:"price"`
  133. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  134. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  135. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  136. Remark string `gorm:"column:remark" json:"remark"`
  137. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  138. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  139. Status int64 `gorm:"column:status" json:"status"`
  140. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  141. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  142. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  143. Warehousing Warehousing `ForeignKey:WarehousingId json:"warehouse"`
  144. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  145. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  146. Type int64 `gorm:"column:type" json:"type"`
  147. GoodName string `gorm:"column:good_name" json:"good_name"`
  148. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  149. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  150. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  151. }
  152. type WarehouseOut struct {
  153. ID int64 `gorm:"column:id" json:"id"`
  154. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  155. OperationTime int64 `gorm:"column:operation_time" json:"operation_time"`
  156. Creater int64 `gorm:"column:creater" json:"creater"`
  157. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  158. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  159. Remark string `gorm:"column:remark" json:"remark"`
  160. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  161. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  162. Status int64 `gorm:"column:status" json:"status"`
  163. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time"`
  164. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  165. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  166. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  167. Dealers Dealer `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  168. Type int64 `gorm:"column:type" json:"type"`
  169. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  170. }
  171. func (WarehouseOut) TableName() string {
  172. return "xt_warehouse_out"
  173. }
  174. type WarehouseOutInfo struct {
  175. ID int64 `gorm:"column:id" json:"id"`
  176. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  177. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  178. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  179. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  180. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  181. Count int64 `gorm:"column:count" json:"count"`
  182. Price float64 `gorm:"column:price" json:"price"`
  183. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  184. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  185. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  186. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  187. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  188. Status int64 `gorm:"column:status" json:"status"`
  189. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  190. Remark string `gorm:"column:remark" json:"remark"`
  191. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  192. WarehouseOut WarehouseOut `ForeignKey:WarehouseOutId json:"WarehouseOut"`
  193. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  194. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  195. Type int64 `gorm:"column:type" json:"type"`
  196. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  197. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  198. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  199. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  200. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  201. Number string `gorm:"column:number" json:"number" form:"number"`
  202. }
  203. func (WarehouseOutInfo) TableName() string {
  204. return "xt_warehouse_out_info"
  205. }
  206. type SalesReturn struct {
  207. ID int64 `gorm:"column:id" json:"id"`
  208. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  209. OperaTime int64 `gorm:"column:opera_time" json:"opera_time"`
  210. Total int64 `gorm:"column:total" json:"total"`
  211. Creater int64 `gorm:"column:creater" json:"creater"`
  212. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  213. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  214. Status int64 `gorm:"column:status" json:"status"`
  215. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  216. ReturnTime int64 `gorm:"column:return_time" json:"return_time"`
  217. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  218. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  219. Type int64 `gorm:"column:type" json:"type"`
  220. }
  221. func (SalesReturn) TableName() string {
  222. return "xt_sales_return"
  223. }
  224. type SalesReturnInfo struct {
  225. ID int64 `gorm:"column:id" json:"id"`
  226. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  227. SalesReturnId int64 `gorm:"column:sales_return_id" json:"sales_return_id"`
  228. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  229. Count int64 `gorm:"column:count" json:"count"`
  230. Price float64 `gorm:"column:price" json:"price"`
  231. Total float64 `gorm:"column:total" json:"total"`
  232. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  233. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  234. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  235. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  236. Status int64 `gorm:"column:status" json:"status"`
  237. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  238. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  239. Type int64 `gorm:"column:type" json:"type"`
  240. SalesReturn SalesReturn `ForeignKey:SalesReturnId json:"SalesReturn"`
  241. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  242. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  243. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  244. }
  245. func (SalesReturnInfo) TableName() string {
  246. return "xt_sales_return_info"
  247. }
  248. type CancelStockInfo struct {
  249. ID int64 `gorm:"column:id" json:"id"`
  250. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  251. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id"`
  252. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  253. Count int64 `gorm:"column:count" json:"count"`
  254. Price float64 `gorm:"column:price" json:"price"`
  255. Total float64 `gorm:"column:total" json:"total"`
  256. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  257. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  258. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  259. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  260. Status int64 `gorm:"column:status" json:"status"`
  261. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  262. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  263. Type int64 `gorm:"column:type" json:"type"`
  264. CancelStock CancelStock `ForeignKey:CancelStockId json:"CancelStock"`
  265. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  266. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  267. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  268. }
  269. func (CancelStockInfo) TableName() string {
  270. return "xt_cancel_stock_info"
  271. }
  272. type CancelStock struct {
  273. ID int64 `gorm:"column:id" json:"id"`
  274. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  275. OperaTime int64 `gorm:"column:opera_time" json:"opera_time"`
  276. Total int64 `gorm:"column:total" json:"total"`
  277. Creater int64 `gorm:"column:creater" json:"creater"`
  278. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  279. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  280. Status int64 `gorm:"column:status" json:"status"`
  281. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  282. ReturnTime int64 `gorm:"column:return_time" json:"return_time"`
  283. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  284. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  285. Type int64 `gorm:"column:type" json:"type"`
  286. }
  287. func (CancelStock) TableName() string {
  288. return "xt_cancel_stock"
  289. }
  290. type WarehousingGoodInfo struct {
  291. ID int64 `gorm:"column:id" json:"id"`
  292. GoodCode string `gorm:"column:good_code" json:"good_code"`
  293. SpecificationName string `gorm:"column:specification_name" json:"specification_name"`
  294. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  295. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit"`
  296. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  297. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  298. Status int64 `gorm:"column:status" json:"status"`
  299. GoodsType GoodsType `gorm:"ForeignKey:ID;AssociationForeignKey:GoodTypeId" json:"type"`
  300. Manufacturers Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
  301. Dealers Dealer `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
  302. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price"`
  303. Total float64 `gorm:"column:total" json:"total" form:"total"`
  304. }
  305. func (WarehousingGoodInfo) TableName() string {
  306. return "xt_good_information"
  307. }
  308. type WarehousingInfoConfig struct {
  309. ID int64 `gorm:"column:id" json:"id"`
  310. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  311. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  312. WarehousingGoodInfo WarehousingGoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  313. }
  314. func (WarehousingInfoConfig) TableName() string {
  315. return "xt_warehouse_info"
  316. }
  317. type WarehousingOutInfoConfig struct {
  318. ID int64 `gorm:"column:id" json:"id"`
  319. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  320. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  321. WarehousingGoodInfo WarehousingGoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  322. }
  323. func (WarehousingOutInfoConfig) TableName() string {
  324. return "xt_warehouse_out_info"
  325. }
  326. type AutomaticReduceDetail struct {
  327. ID int64 `gorm:"column:id" json:"id"`
  328. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  329. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  330. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  331. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  332. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  333. Status int64 `gorm:"column:status" json:"status"`
  334. RecordTime int64 `gorm:"column:record_time" json:"record_time"`
  335. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  336. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  337. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  338. GoodInfo GoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  339. GoodsType GoodsType `gorm:"ForeignKey:GoodTypeId;AssociationForeignKey:ID" json:"type"`
  340. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"user"`
  341. Count int64 `gorm:"column:count" json:"count"`
  342. Type int64 `gorm:"column:type" json:"type"`
  343. }
  344. func (AutomaticReduceDetail) TableName() string {
  345. return "xt_automatic_reduce_detail"
  346. }
  347. type VmWarehouseOutInfo struct {
  348. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  349. Count int64 `gorm:"column:count" json:"count"`
  350. Remark string `gorm:"column:remark" json:"remark"`
  351. Price float64 `gorm:"column:price" json:"price"`
  352. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  353. }
  354. type VmWarehouseInfo struct {
  355. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  356. Count int64 `gorm:"column:count" json:"count"`
  357. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  358. }
  359. type WarehouseOutInfoOne struct {
  360. ID int64 `gorm:"column:id" json:"id"`
  361. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  362. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  363. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  364. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  365. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  366. Count int64 `gorm:"column:count" json:"count"`
  367. Price float64 `gorm:"column:price" json:"price"`
  368. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  369. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  370. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  371. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  372. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  373. Status int64 `gorm:"column:status" json:"status"`
  374. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  375. Remark string `gorm:"column:remark" json:"remark"`
  376. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  377. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  378. Type int64 `gorm:"column:type" json:"type"`
  379. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  380. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  381. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  382. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  383. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  384. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  385. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  386. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  387. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  388. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  389. Number string `gorm:"column:number" json:"number" form:"number"`
  390. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  391. }
  392. type WarehouseOutInfoTwo struct {
  393. ID int64 `gorm:"column:id" json:"id"`
  394. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  395. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  396. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  397. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  398. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  399. Count int64 `gorm:"column:count" json:"count"`
  400. Price float64 `gorm:"column:price" json:"price"`
  401. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  402. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  403. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  404. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  405. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  406. Status int64 `gorm:"column:status" json:"status"`
  407. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  408. Remark string `gorm:"column:remark" json:"remark"`
  409. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  410. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  411. Type int64 `gorm:"column:type" json:"type"`
  412. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  413. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  414. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  415. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  416. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  417. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  418. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  419. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  420. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  421. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  422. Number string `gorm:"column:number" json:"number" form:"number"`
  423. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  424. StWarehousingInfo []*StWarehousingInfo `gorm:"ForeignKey:good_id;AssociationForeignKey:GoodId" json:"xt_warehouse_info"`
  425. }