stock_models.go 75KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042
  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. GoodName string `json:"good_name"`
  90. PackingUnit string `json:"packing_unit"`
  91. TotalCount int64 `json:"total_count"`
  92. SpecificationName string `json:"specification_name"`
  93. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  94. }
  95. func (StWarehousingInfo) TableName() string {
  96. return "xt_warehouse_info"
  97. }
  98. type WarehousingInfo struct {
  99. ID int64 `gorm:"column:id" json:"id"`
  100. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  101. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  102. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  103. Number string `gorm:"column:number" json:"number"`
  104. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  105. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  106. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  107. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  108. Price float64 `gorm:"column:price" json:"price"`
  109. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  110. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  111. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  112. Remark string `gorm:"column:remark" json:"remark"`
  113. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  114. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  115. Status int64 `gorm:"column:status" json:"status"`
  116. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  117. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  118. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  119. Warehousing Warehousing `ForeignKey:WarehousingId json:"warehouse"`
  120. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  121. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  122. Type int64 `gorm:"column:type" json:"type"`
  123. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  124. }
  125. func (WarehousingInfo) TableName() string {
  126. return "xt_warehouse_info"
  127. }
  128. type VmWarehousingInfo struct {
  129. ID int64 `gorm:"column:id" json:"id"`
  130. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  131. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  132. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  133. Number string `gorm:"column:number" json:"number"`
  134. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  135. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  136. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  137. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  138. Price float64 `gorm:"column:price" json:"price"`
  139. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  140. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  141. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  142. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  143. Remark string `gorm:"column:remark" json:"remark"`
  144. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  145. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  146. Status int64 `gorm:"column:status" json:"status"`
  147. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  148. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  149. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  150. Warehousing Warehousing `ForeignKey:WarehousingId json:"warehouse"`
  151. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  152. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  153. Type int64 `gorm:"column:type" json:"type"`
  154. GoodName string `gorm:"column:good_name" json:"good_name"`
  155. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  156. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  157. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  158. Count int64 `gorm:json:"count"`
  159. }
  160. type WarehouseOut struct {
  161. ID int64 `gorm:"column:id" json:"id"`
  162. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  163. OperationTime int64 `gorm:"column:operation_time" json:"operation_time"`
  164. Creater int64 `gorm:"column:creater" json:"creater"`
  165. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  166. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  167. Remark string `gorm:"column:remark" json:"remark"`
  168. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  169. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  170. Status int64 `gorm:"column:status" json:"status"`
  171. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time"`
  172. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  173. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  174. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  175. Dealers Dealer `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  176. Type int64 `gorm:"column:type" json:"type"`
  177. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  178. }
  179. func (WarehouseOut) TableName() string {
  180. return "xt_warehouse_out"
  181. }
  182. type WarehouseOutInfo struct {
  183. ID int64 `gorm:"column:id" json:"id"`
  184. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  185. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  186. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  187. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  188. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  189. Count int64 `gorm:"column:count" json:"count"`
  190. Price float64 `gorm:"column:price" json:"price"`
  191. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  192. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  193. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  194. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  195. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  196. Status int64 `gorm:"column:status" json:"status"`
  197. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  198. Remark string `gorm:"column:remark" json:"remark"`
  199. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  200. WarehouseOut WarehouseOut `ForeignKey:WarehouseOutId json:"WarehouseOut"`
  201. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  202. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  203. Type int64 `gorm:"column:type" json:"type"`
  204. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  205. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  206. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  207. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  208. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  209. Number string `gorm:"column:number" json:"number" form:"number"`
  210. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  211. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  212. }
  213. func (WarehouseOutInfo) TableName() string {
  214. return "xt_warehouse_out_info"
  215. }
  216. type SalesReturn struct {
  217. ID int64 `gorm:"column:id" json:"id"`
  218. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  219. OperaTime int64 `gorm:"column:opera_time" json:"opera_time"`
  220. Total int64 `gorm:"column:total" json:"total"`
  221. Creater int64 `gorm:"column:creater" json:"creater"`
  222. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  223. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  224. Status int64 `gorm:"column:status" json:"status"`
  225. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  226. ReturnTime int64 `gorm:"column:return_time" json:"return_time"`
  227. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  228. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  229. Type int64 `gorm:"column:type" json:"type"`
  230. }
  231. func (SalesReturn) TableName() string {
  232. return "xt_sales_return"
  233. }
  234. type SalesReturnInfo struct {
  235. ID int64 `gorm:"column:id" json:"id"`
  236. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  237. SalesReturnId int64 `gorm:"column:sales_return_id" json:"sales_return_id"`
  238. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  239. Count int64 `gorm:"column:count" json:"count"`
  240. Price float64 `gorm:"column:price" json:"price"`
  241. Total float64 `gorm:"column:total" json:"total"`
  242. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  243. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  244. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  245. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  246. Status int64 `gorm:"column:status" json:"status"`
  247. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  248. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  249. Type int64 `gorm:"column:type" json:"type"`
  250. SalesReturn SalesReturn `ForeignKey:SalesReturnId json:"SalesReturn"`
  251. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  252. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  253. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  254. }
  255. func (SalesReturnInfo) TableName() string {
  256. return "xt_sales_return_info"
  257. }
  258. type VmCancelStockInfo struct {
  259. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  260. Count int64 `gorm:"column:count" json:"count"`
  261. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  262. }
  263. type CancelStock struct {
  264. ID int64 `gorm:"column:id" json:"id"`
  265. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  266. OperaTime int64 `gorm:"column:opera_time" json:"opera_time"`
  267. Total int64 `gorm:"column:total" json:"total"`
  268. Creater int64 `gorm:"column:creater" json:"creater"`
  269. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  270. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  271. Status int64 `gorm:"column:status" json:"status"`
  272. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  273. ReturnTime int64 `gorm:"column:return_time" json:"return_time"`
  274. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  275. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  276. Type int64 `gorm:"column:type" json:"type"`
  277. XtCancelStockInfo []*XtCancelStockInfo `gorm:"ForeignKey:CancelStockId;AssociationForeignKey:ID" json:"XtCancelStockInfo"`
  278. }
  279. func (CancelStock) TableName() string {
  280. return "xt_cancel_stock"
  281. }
  282. type WarehousingGoodInfo struct {
  283. ID int64 `gorm:"column:id" json:"id"`
  284. GoodCode string `gorm:"column:good_code" json:"good_code"`
  285. SpecificationName string `gorm:"column:specification_name" json:"specification_name"`
  286. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  287. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit"`
  288. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  289. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  290. Status int64 `gorm:"column:status" json:"status"`
  291. GoodsType GoodsType `gorm:"ForeignKey:ID;AssociationForeignKey:GoodTypeId" json:"type"`
  292. Manufacturers Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
  293. Dealers Dealer `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
  294. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price"`
  295. Total float64 `gorm:"column:total" json:"total" form:"total"`
  296. }
  297. func (WarehousingGoodInfo) TableName() string {
  298. return "xt_good_information"
  299. }
  300. type WarehousingInfoConfig struct {
  301. ID int64 `gorm:"column:id" json:"id"`
  302. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  303. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  304. WarehousingGoodInfo WarehousingGoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  305. }
  306. func (WarehousingInfoConfig) TableName() string {
  307. return "xt_warehouse_info"
  308. }
  309. type WarehousingOutInfoConfig struct {
  310. ID int64 `gorm:"column:id" json:"id"`
  311. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  312. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  313. WarehousingGoodInfo WarehousingGoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  314. }
  315. func (WarehousingOutInfoConfig) TableName() string {
  316. return "xt_warehouse_out_info"
  317. }
  318. type AutomaticReduceDetail struct {
  319. ID int64 `gorm:"column:id" json:"id"`
  320. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  321. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  322. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  323. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  324. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  325. Status int64 `gorm:"column:status" json:"status"`
  326. RecordTime int64 `gorm:"column:record_time" json:"record_time"`
  327. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  328. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  329. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  330. GoodInfo GoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  331. GoodsType GoodsType `gorm:"ForeignKey:GoodTypeId;AssociationForeignKey:ID" json:"type"`
  332. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"user"`
  333. Count int64 `gorm:"column:count" json:"count"`
  334. Type int64 `gorm:"column:type" json:"type"`
  335. WarehouseOutInfo []*WarehouseOutInfo `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"warehouseOutInfo"`
  336. }
  337. func (AutomaticReduceDetail) TableName() string {
  338. return "xt_automatic_reduce_detail"
  339. }
  340. type SgjAutomaticReduceDetail struct {
  341. ID int64 `gorm:"column:id" json:"id"`
  342. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  343. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  344. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  345. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  346. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  347. Status int64 `gorm:"column:status" json:"status"`
  348. RecordTime int64 `gorm:"column:record_time" json:"record_time"`
  349. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  350. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  351. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  352. Count int64 `gorm:"column:count" json:"count"`
  353. Type int64 `gorm:"column:type" json:"type"`
  354. GoodName string `gorm:"column:good_name" json:"good_name"`
  355. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  356. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  357. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  358. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  359. }
  360. type VmWarehouseOutInfo struct {
  361. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  362. Count int64 `gorm:"column:count" json:"count"`
  363. Remark string `gorm:"column:remark" json:"remark"`
  364. Price float64 `gorm:"column:price" json:"price"`
  365. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  366. }
  367. type VmWarehouseInfo struct {
  368. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  369. Count int64 `gorm:"column:count" json:"count"`
  370. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  371. StockCount int64 `gorm:"column:stock_count" json:"stock_count"`
  372. }
  373. type WarehouseOutInfoOne struct {
  374. ID int64 `gorm:"column:id" json:"id"`
  375. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  376. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  377. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  378. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  379. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  380. Count int64 `gorm:"column:count" json:"count"`
  381. Price float64 `gorm:"column:price" json:"price"`
  382. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  383. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  384. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  385. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  386. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  387. Status int64 `gorm:"column:status" json:"status"`
  388. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  389. Remark string `gorm:"column:remark" json:"remark"`
  390. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  391. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  392. Type int64 `gorm:"column:type" json:"type"`
  393. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  394. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  395. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  396. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  397. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  398. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  399. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  400. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  401. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  402. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  403. Number string `gorm:"column:number" json:"number" form:"number"`
  404. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  405. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  406. }
  407. type WarehouseOutInfoTwo struct {
  408. ID int64 `gorm:"column:id" json:"id"`
  409. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  410. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  411. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  412. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  413. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  414. Count int64 `gorm:"column:count" json:"count"`
  415. Price float64 `gorm:"column:price" json:"price"`
  416. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  417. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  418. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  419. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  420. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  421. Status int64 `gorm:"column:status" json:"status"`
  422. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  423. Remark string `gorm:"column:remark" json:"remark"`
  424. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  425. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  426. Type int64 `gorm:"column:type" json:"type"`
  427. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  428. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  429. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  430. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  431. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  432. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  433. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  434. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  435. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  436. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  437. Number string `gorm:"column:number" json:"number" form:"number"`
  438. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  439. StWarehousingInfo []*StWarehousingInfo `gorm:"ForeignKey:good_id;AssociationForeignKey:GoodId" json:"xt_warehouse_info"`
  440. }
  441. type WarehouseOutInfoSix struct {
  442. ID int64 `gorm:"column:id" json:"id"`
  443. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  444. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  445. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  446. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  447. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  448. Count int64 `gorm:"column:count" json:"count"`
  449. Price float64 `gorm:"column:price" json:"price"`
  450. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  451. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  452. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  453. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  454. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  455. Status int64 `gorm:"column:status" json:"status"`
  456. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  457. Remark string `gorm:"column:remark" json:"remark"`
  458. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  459. WarehouseOut WarehouseOut `ForeignKey:WarehouseOutId json:"WarehouseOut"`
  460. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  461. Type int64 `gorm:"column:type" json:"type"`
  462. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  463. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  464. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  465. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  466. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  467. Number string `gorm:"column:number" json:"number" form:"number"`
  468. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  469. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  470. GoodInfo GoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  471. }
  472. func (WarehouseOutInfoSix) TableName() string {
  473. return "xt_warehouse_out_info"
  474. }
  475. type VmStockFlow struct {
  476. ID int64 `gorm:"column:id" json:"id" form:"id"`
  477. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  478. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  479. Number string `gorm:"column:number" json:"number" form:"number"`
  480. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  481. Count int64 `gorm:"column:count" json:"count" form:"count"`
  482. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  483. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  484. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  485. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  486. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  487. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  488. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  489. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  490. IsEdit int64 `gorm:"column:is_edit" json:"is_edit" form:"is_edit"`
  491. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  492. CancelOrderNumber string `gorm:"column:cancel_order_number" json:"cancel_order_number" form:"cancel_order_number"`
  493. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  494. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  495. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  496. UpdateCreator int64 `gorm:"column:update_creator" json:"update_creator" form:"update_creator"`
  497. Status int64 `gorm:"column:status" json:"status" form:"status"`
  498. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  499. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  500. Price float64 `gorm:"column:price" json:"price" form:"price"`
  501. WarehousingDetailId int64 `gorm:"column:warehousing_detail_id" json:"warehousing_detail_id" form:"warehousing_detail_id"`
  502. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  503. CancelOutDetailId int64 `gorm:"column:cancel_out_detail_id" json:"cancel_out_detail_id" form:"cancel_out_detail_id"`
  504. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  505. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  506. ReturnCount int64 `gorm:"column:return_count" json:"return_count" form:"return_count"`
  507. }
  508. func (VmStockFlow) TableName() string {
  509. return "xt_stock_flow"
  510. }
  511. type CancelStockInfo struct {
  512. ID int64 `gorm:"column:id" json:"id"`
  513. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  514. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id"`
  515. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  516. Count int64 `gorm:"column:count" json:"count"`
  517. Price float64 `gorm:"column:price" json:"price"`
  518. Total float64 `gorm:"column:total" json:"total"`
  519. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  520. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  521. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  522. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  523. Status int64 `gorm:"column:status" json:"status"`
  524. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  525. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  526. Type int64 `gorm:"column:type" json:"type"`
  527. CancelStock CancelStock `ForeignKey:CancelStockId json:"CancelStock"`
  528. Dealer string `gorm:"column:dealer" json:"dealer"`
  529. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer"`
  530. Number string `gorm:"column:number" json:"number" form:"number"`
  531. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  532. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  533. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  534. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  535. }
  536. func (CancelStockInfo) TableName() string {
  537. return "xt_cancel_stock_info"
  538. }
  539. type VmBaseDrug struct {
  540. ID int64 `gorm:"column:id" json:"id" form:"id"`
  541. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  542. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  543. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  544. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  545. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  546. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  547. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  548. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  549. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  550. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  551. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  552. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  553. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  554. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  555. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  556. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  557. Dose float64 `gorm:"column:dose" json:"dose" form:"dose"`
  558. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  559. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  560. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  561. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  562. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  563. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  564. Number string `gorm:"column:number" json:"number" form:"number"`
  565. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  566. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  567. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  568. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  569. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  570. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  571. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  572. Code string `gorm:"column:code" json:"code" form:"code"`
  573. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  574. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  575. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  576. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  577. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  578. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  579. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  580. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  581. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  582. Label int64 `gorm:"column:label" json:"label" form:"label"`
  583. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  584. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  585. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  586. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  587. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  588. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  589. Status int64 `gorm:"column:status" json:"status" form:"status"`
  590. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  591. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  592. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  593. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  594. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  595. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  596. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  597. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  598. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  599. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  600. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  601. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  602. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  603. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  604. Total float64 `gorm:"column:total" json:"total" form:"total"`
  605. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  606. DrugWarehouseInfo []*VsDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
  607. DrugCancelStockInfo []*VsDrugCancelStockInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_cancel_stock_info"`
  608. DrugWarehouseOutInfo []*VsDrugWarehouseOutInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_out"`
  609. }
  610. func (VmBaseDrug) TableName() string {
  611. return "xt_base_drug"
  612. }
  613. type VsDrugWarehouseInfo struct {
  614. ID int64 `gorm:"column:id" json:"id" form:"id"`
  615. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  616. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  617. Number string `gorm:"column:number" json:"number" form:"number"`
  618. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  619. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  620. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  621. WarehouseingUnit string `gorm:"column:warehouseing_unit" json:"warehouseing_unit" form:"warehouseing_unit"`
  622. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  623. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  624. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  625. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  626. Price float64 `gorm:"column:price" json:"price" form:"price"`
  627. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  628. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  629. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  630. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  631. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  632. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  633. Status int64 `gorm:"column:status" json:"status" form:"status"`
  634. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  635. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  636. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  637. Type int64 `gorm:"column:type" json:"type" form:"type"`
  638. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  639. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  640. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  641. }
  642. func (VsDrugWarehouseInfo) TableName() string {
  643. return "xt_drug_warehouse_info"
  644. }
  645. type VsDrugCancelStockInfo struct {
  646. ID int64 `gorm:"column:id" json:"id" form:"id"`
  647. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  648. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  649. Count int64 `gorm:"column:count" json:"count" form:"count"`
  650. Price float64 `gorm:"column:price" json:"price" form:"price"`
  651. Total float64 `gorm:"column:total" json:"total" form:"total"`
  652. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  653. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  654. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  655. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  656. Status int64 `gorm:"column:status" json:"status" form:"status"`
  657. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  658. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  659. Type int64 `gorm:"column:type" json:"type" form:"type"`
  660. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  661. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  662. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  663. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  664. Number string `gorm:"column:number" json:"number" form:"number"`
  665. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  666. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  667. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  668. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  669. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" `
  670. }
  671. func (VsDrugCancelStockInfo) TableName() string {
  672. return "xt_drug_cancel_stock_info"
  673. }
  674. type VsDrugWarehouseOutInfo struct {
  675. ID int64 `gorm:"column:id" json:"id" form:"id"`
  676. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  677. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  678. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  679. Count int64 `gorm:"column:count" json:"count" form:"count"`
  680. Price float64 `gorm:"column:price" json:"price" form:"price"`
  681. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  682. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  683. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  684. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  685. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  686. Status int64 `gorm:"column:status" json:"status" form:"status"`
  687. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  688. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  689. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  690. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  691. Type int64 `gorm:"column:type" json:"type" form:"type"`
  692. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  693. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  694. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  695. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  696. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  697. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  698. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  699. }
  700. func (VsDrugWarehouseOutInfo) TableName() string {
  701. return "xt_drug_warehouse_out_info"
  702. }
  703. type VmStockFlowOne struct {
  704. ID int64 `gorm:"column:id" json:"id" form:"id"`
  705. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  706. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  707. Number string `gorm:"column:number" json:"number" form:"number"`
  708. Count int64 `gorm:"column:count" json:"count" form:"count"`
  709. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  710. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  711. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  712. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  713. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  714. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  715. Price float64 `gorm:"column:price" json:"price" form:"price"`
  716. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  717. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  718. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  719. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  720. Name string `gorm:"column:name" json:"name" form:"name"`
  721. }
  722. type BloodWarehouseInfo struct {
  723. ID int64 `gorm:"column:id" json:"id" form:"id"`
  724. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  725. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  726. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  727. Number string `gorm:"column:number" json:"number" form:"number"`
  728. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  729. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  730. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  731. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  732. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  733. Price float64 `gorm:"column:price" json:"price" form:"price"`
  734. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  735. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  736. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  737. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  738. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  739. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  740. Status int64 `gorm:"column:status" json:"status" form:"status"`
  741. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  742. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  743. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  744. Type int64 `gorm:"column:type" json:"type" form:"type"`
  745. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  746. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  747. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  748. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  749. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  750. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  751. }
  752. type XtStockAdjustPrice struct {
  753. ID int64 `gorm:"column:id" json:"id" form:"id"`
  754. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  755. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  756. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  757. Count int64 `gorm:"column:count" json:"count" form:"count"`
  758. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  759. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  760. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  761. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  762. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  763. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  764. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  765. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  766. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  767. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  768. Status int64 `gorm:"column:status" json:"status" form:"status"`
  769. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  770. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  771. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  772. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  773. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  774. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  775. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  776. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  777. AdminRole VMUserAdminRole `gorm:"ForeignKey:ID;AssociationForeignKey:Creater" `
  778. }
  779. func (XtStockAdjustPrice) TableName() string {
  780. return "xt_stock_adjust_price"
  781. }
  782. type VmUserAdminRole struct {
  783. ID int64 `gorm:"column:id" json:"id" form:"id"`
  784. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  785. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  786. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  787. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  788. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  789. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  790. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  791. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  792. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  793. Status int64 `gorm:"column:status" json:"status" form:"status"`
  794. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  795. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  796. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  797. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  798. Message string `gorm:"column:message" json:"message" form:"message"`
  799. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  800. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  801. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  802. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  803. Department string `gorm:"column:department" json:"department" form:"department"`
  804. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  805. Age int64 `gorm:"column:age" json:"age" form:"age"`
  806. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  807. CardType int64 `gorm:"column:card_type" json:"card_type" form:"card_type"`
  808. IdCard string `gorm:"column:id_card" json:"id_card" form:"id_card"`
  809. Education int64 `gorm:"column:education" json:"education" form:"education"`
  810. StudyMajorName string `gorm:"column:study_major_name" json:"study_major_name" form:"study_major_name"`
  811. WorkMajorName string `gorm:"column:work_major_name" json:"work_major_name" form:"work_major_name"`
  812. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  813. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  814. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code" form:"doctor_code"`
  815. Licensing int64 `gorm:"column:licensing" json:"licensing" form:"licensing"`
  816. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  817. PrescriptionQualificationIdentification int64 `gorm:"column:prescription_qualification_identification" json:"prescription_qualification_identification" form:"prescription_qualification_identification"`
  818. IdentificationOutpatients int64 `gorm:"column:identification_outpatients" json:"identification_outpatients" form:"identification_outpatients"`
  819. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  820. MedicalRangeCode int64 `gorm:"column:medical_range_code" json:"medical_range_code" form:"medical_range_code"`
  821. MedicalLevel int64 `gorm:"column:medical_level" json:"medical_level" form:"medical_level"`
  822. MedicalTypeJob int64 `gorm:"column:medical_type_job" json:"medical_type_job" form:"medical_type_job"`
  823. PharmacistRegistrationNumber string `gorm:"column:pharmacist_registration_number" json:"pharmacist_registration_number" form:"pharmacist_registration_number"`
  824. DoctorRangeCode int64 `gorm:"column:doctor_range_code" json:"doctor_range_code" form:"doctor_range_code"`
  825. DoctorLevel int64 `gorm:"column:doctor_level" json:"doctor_level" form:"doctor_level"`
  826. DoctorTypeJob int64 `gorm:"column:doctor_type_job" json:"doctor_type_job" form:"doctor_type_job"`
  827. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number" form:"doctor_number"`
  828. OutpatientIllnessCategory string `gorm:"column:outpatient_illness_category" json:"outpatient_illness_category" form:"outpatient_illness_category"`
  829. IsActive int64 `gorm:"column:is_active" json:"is_active" form:"is_active"`
  830. ActiveStatus int64 `gorm:"column:active_status" json:"active_status" form:"active_status"`
  831. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  832. }
  833. func (VmUserAdminRole) TableName() string {
  834. return "sgj_user_admin_role"
  835. }
  836. type VmStockAdjustPrice struct {
  837. ID int64 `gorm:"column:id" json:"id" form:"id"`
  838. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  839. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  840. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  841. Count int64 `gorm:"column:count" json:"count" form:"count"`
  842. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  843. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  844. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  845. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  846. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  847. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  848. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  849. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  850. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  851. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  852. Status int64 `gorm:"column:status" json:"status" form:"status"`
  853. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  854. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  855. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  856. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  857. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  858. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  859. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  860. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  861. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  862. Number string `gorm:"column:number" json:"number" form:"number"`
  863. Total int64 `gorm:"column:total" json:"total" form:"total"`
  864. }
  865. type XtStockReportPrice struct {
  866. ID int64 `gorm:"column:id" json:"id" form:"id"`
  867. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  868. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  869. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  870. Count int64 `gorm:"column:count" json:"count" form:"count"`
  871. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  872. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  873. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  874. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  875. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  876. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  877. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  878. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  879. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  880. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  881. Status int64 `gorm:"column:status" json:"status" form:"status"`
  882. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  883. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  884. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  885. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  886. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  887. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  888. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  889. Number string `gorm:"column:number" json:"number" form:"number"`
  890. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  891. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  892. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  893. Total int64 `gorm:"column:total" json:"total" form:"total"`
  894. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  895. }
  896. func (XtStockReportPrice) TableName() string {
  897. return "xt_stock_report_price"
  898. }
  899. type XtStockInventory struct {
  900. ID int64 `gorm:"column:id" json:"id" form:"id"`
  901. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  902. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  903. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  904. Count int64 `gorm:"column:count" json:"count" form:"count"`
  905. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  906. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  907. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  908. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  909. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  910. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  911. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  912. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  913. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  914. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  915. Status int64 `gorm:"column:status" json:"status" form:"status"`
  916. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  917. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  918. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  919. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  920. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  921. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  922. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  923. Total int64 `gorm:"column:total" json:"total" form:"total"`
  924. Number string `gorm:"column:number" json:"number" form:"number"`
  925. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  926. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  927. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  928. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  929. }
  930. func (XtStockInventory) TableName() string {
  931. return "xt_stock_inventory"
  932. }
  933. type VmStockInventory struct {
  934. ID int64 `gorm:"column:id" json:"id" form:"id"`
  935. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  936. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  937. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  938. Count int64 `gorm:"column:count" json:"count" form:"count"`
  939. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  940. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  941. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  942. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  943. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  944. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  945. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  946. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  947. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  948. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  949. Status int64 `gorm:"column:status" json:"status" form:"status"`
  950. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  951. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  952. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  953. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  954. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  955. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  956. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  957. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  958. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  959. Total int64 `gorm:"column:total" json:"total" form:"total"`
  960. Number string `gorm:"column:number" json:"number" form:"number"`
  961. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  962. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  963. }
  964. type XtStockCorrectRecord struct {
  965. ID int64 `gorm:"column:id" json:"id" form:"id"`
  966. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  967. OrdCount int64 `gorm:"column:ord_count" json:"ord_count" form:"ord_count"`
  968. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  969. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  970. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  971. Status int64 `gorm:"column:status" json:"status" form:"status"`
  972. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  973. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  974. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  975. }
  976. func (XtStockCorrectRecord) TableName() string {
  977. return "xt_stock_correct_record"
  978. }