stock_models.go 84KB

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