stock_models.go 85KB

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