stock_models.go 85KB

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