stock_models.go 107KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444
  1. package models
  2. type Manufacturer struct {
  3. ID int64 `gorm:"column:id" json:"id"`
  4. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name"`
  5. Contact string `gorm:"column:contact" json:"contact"`
  6. ContactPhone string `gorm:"column:contact_phone" json:"contact_phone"`
  7. PlatformNumber string `gorm:"column:platform_number" json:"platform_number"`
  8. Email string `gorm:"column:email" json:"email"`
  9. ContactAddress string `gorm:"column:contact_address" json:"contact_address"`
  10. Remark string `gorm:"column:remark" json:"remark"`
  11. Creater int64 `gorm:"column:creater" json:"creater"`
  12. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  13. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  14. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  15. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  16. Status int64 `gorm:"column:status" json:"status"`
  17. ManufacturerCode string `gorm:"column:manufacturer_code" json:"manufacturer_code"`
  18. PinYin string `gorm:"column:pinyin" json:"pinyin"`
  19. WuBi string `gorm:"column:wubi" json:"wubi"`
  20. }
  21. func (Manufacturer) TableName() string {
  22. return "xt_manufacturer"
  23. }
  24. type Dealer struct {
  25. ID int64 `gorm:"column:id" json:"id"`
  26. DealerName string `gorm:"column:dealer_name" json:"dealer_name"`
  27. Contact string `gorm:"column:contact" json:"contact"`
  28. ContactPhone string `gorm:"column:contact_phone" json:"contact_phone"`
  29. PlatformNumber string `gorm:"column:platform_number" json:"platform_number"`
  30. Email string `gorm:"column:email" json:"email"`
  31. ContactAddress string `gorm:"column:contact_address" json:"contact_address"`
  32. Remark string `gorm:"column:remark" json:"remark"`
  33. Creater int64 `gorm:"column:creater" json:"creater"`
  34. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  35. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  36. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  37. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  38. Status int64 `gorm:"column:status" json:"status"`
  39. DealerCode string `gorm:"column:dealer_code" json:"dealer_code"`
  40. PinYin string `gorm:"column:pinyin" json:"pinyin"`
  41. WuBi string `gorm:"column:wubi" json:"wubi"`
  42. }
  43. func (Dealer) TableName() string {
  44. return "xt_dealer"
  45. }
  46. type Warehousing struct {
  47. ID int64 `gorm:"column:id" json:"id"`
  48. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  49. OperationTime int64 `gorm:"column:operation_time" json:"operation_time"`
  50. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  51. Creater int64 `gorm:"column:creater" json:"creater"`
  52. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  53. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  54. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  55. Status int64 `gorm:"column:status" json:"status"`
  56. WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time"`
  57. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  58. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  59. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  60. Dealers Dealer `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  61. Type int64 `gorm:"column:type" json:"type"`
  62. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  63. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  64. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  65. SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
  66. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  67. }
  68. func (Warehousing) TableName() string {
  69. return "xt_warehouse"
  70. }
  71. type StWarehousingInfo struct {
  72. ID int64 `gorm:"column:id" json:"id"`
  73. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  74. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  75. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  76. Number string `gorm:"column:number" json:"number"`
  77. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  78. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  79. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  80. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  81. Price float64 `gorm:"column:price" json:"price"`
  82. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  83. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  84. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  85. Remark string `gorm:"column:remark" json:"remark"`
  86. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  87. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  88. Status int64 `gorm:"column:status" json:"status"`
  89. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  90. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  91. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  92. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  93. Type int64 `gorm:"column:type" json:"type"`
  94. GoodName string `json:"good_name"`
  95. PackingUnit string `json:"packing_unit"`
  96. TotalCount int64 `json:"total_count"`
  97. SpecificationName string `json:"specification_name"`
  98. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  99. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  100. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  101. }
  102. func (StWarehousingInfo) TableName() string {
  103. return "xt_warehouse_info"
  104. }
  105. type WarehousingInfo struct {
  106. ID int64 `gorm:"column:id" json:"id"`
  107. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  108. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  109. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  110. Number string `gorm:"column:number" json:"number"`
  111. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  112. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  113. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  114. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  115. Price float64 `gorm:"column:price" json:"price"`
  116. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  117. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  118. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  119. Remark string `gorm:"column:remark" json:"remark"`
  120. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  121. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  122. Status int64 `gorm:"column:status" json:"status"`
  123. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  124. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  125. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  126. Warehousing Warehousing `ForeignKey:WarehousingId json:"warehouse"`
  127. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  128. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  129. Type int64 `gorm:"column:type" json:"type"`
  130. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  131. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  132. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  133. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  134. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  135. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  136. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  137. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  138. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  139. }
  140. func (WarehousingInfo) TableName() string {
  141. return "xt_warehouse_info"
  142. }
  143. type WarehousingInfoSeven struct {
  144. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  145. }
  146. func (WarehousingInfoSeven) TableName() string {
  147. return "xt_warehouse_info"
  148. }
  149. type VmWarehousingInfo struct {
  150. ID int64 `gorm:"column:id" json:"id"`
  151. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  152. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  153. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  154. Number string `gorm:"column:number" json:"number"`
  155. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  156. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  157. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  158. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  159. Price float64 `gorm:"column:price" json:"price"`
  160. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  161. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  162. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  163. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  164. Remark string `gorm:"column:remark" json:"remark"`
  165. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  166. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  167. Status int64 `gorm:"column:status" json:"status"`
  168. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  169. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  170. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  171. Warehousing Warehousing `ForeignKey:WarehousingId json:"warehouse"`
  172. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  173. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  174. Type int64 `gorm:"column:type" json:"type"`
  175. GoodName string `gorm:"column:good_name" json:"good_name"`
  176. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  177. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  178. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  179. Count int64 `gorm:json:"count"`
  180. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  181. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  182. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  183. }
  184. type WarehouseOut struct {
  185. ID int64 `gorm:"column:id" json:"id"`
  186. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  187. OperationTime int64 `gorm:"column:operation_time" json:"operation_time"`
  188. Creater int64 `gorm:"column:creater" json:"creater"`
  189. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  190. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  191. Remark string `gorm:"column:remark" json:"remark"`
  192. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  193. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  194. Status int64 `gorm:"column:status" json:"status"`
  195. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time"`
  196. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  197. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  198. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  199. Dealers Dealer `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  200. Type int64 `gorm:"column:type" json:"type"`
  201. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  202. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  203. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  204. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  205. SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
  206. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  207. }
  208. func (WarehouseOut) TableName() string {
  209. return "xt_warehouse_out"
  210. }
  211. type WarehouseOutInfo struct {
  212. ID int64 `gorm:"column:id" json:"id"`
  213. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  214. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  215. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  216. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  217. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  218. Count int64 `gorm:"column:count" json:"count"`
  219. Price float64 `gorm:"column:price" json:"price"`
  220. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  221. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  222. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  223. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  224. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  225. Status int64 `gorm:"column:status" json:"status"`
  226. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  227. Remark string `gorm:"column:remark" json:"remark"`
  228. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  229. WarehouseOut WarehouseOut `ForeignKey:WarehouseOutId json:"WarehouseOut"`
  230. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  231. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  232. Type int64 `gorm:"column:type" json:"type"`
  233. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  234. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  235. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  236. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  237. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  238. Number string `gorm:"column:number" json:"number" form:"number"`
  239. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  240. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  241. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  242. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  243. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  244. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  245. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  246. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  247. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  248. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  249. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  250. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  251. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  252. }
  253. func (WarehouseOutInfo) TableName() string {
  254. return "xt_warehouse_out_info"
  255. }
  256. type WarehouseOutInfoNight struct {
  257. ID int64 `gorm:"column:id" json:"id"`
  258. Count int64 `gorm:"column:count" json:"count"`
  259. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  260. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  261. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  262. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  263. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  264. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  265. Status int64 `gorm:"column:status" json:"status"`
  266. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  267. }
  268. func (WarehouseOutInfoNight) TableName() string {
  269. return "xt_warehouse_out_info"
  270. }
  271. type WarehouseOutInfoSeven struct {
  272. ID int64 `gorm:"column:id" json:"id"`
  273. Count int64 `gorm:"column:count" json:"count"`
  274. }
  275. func (WarehouseOutInfoSeven) TableName() string {
  276. return "xt_warehouse_out_info"
  277. }
  278. type SalesReturn 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. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  290. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  291. Type int64 `gorm:"column:type" json:"type"`
  292. }
  293. func (SalesReturn) TableName() string {
  294. return "xt_sales_return"
  295. }
  296. type SalesReturnInfo struct {
  297. ID int64 `gorm:"column:id" json:"id"`
  298. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  299. SalesReturnId int64 `gorm:"column:sales_return_id" json:"sales_return_id"`
  300. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  301. Count int64 `gorm:"column:count" json:"count"`
  302. Price float64 `gorm:"column:price" json:"price"`
  303. Total float64 `gorm:"column:total" json:"total"`
  304. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  305. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  306. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  307. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  308. Status int64 `gorm:"column:status" json:"status"`
  309. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  310. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  311. Type int64 `gorm:"column:type" json:"type"`
  312. SalesReturn SalesReturn `ForeignKey:SalesReturnId json:"SalesReturn"`
  313. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  314. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  315. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  316. }
  317. func (SalesReturnInfo) TableName() string {
  318. return "xt_sales_return_info"
  319. }
  320. type VmCancelStockInfo struct {
  321. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  322. Count int64 `gorm:"column:count" json:"count"`
  323. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  324. }
  325. type CancelStock struct {
  326. ID int64 `gorm:"column:id" json:"id"`
  327. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  328. OperaTime int64 `gorm:"column:opera_time" json:"opera_time"`
  329. Total int64 `gorm:"column:total" json:"total"`
  330. Creater int64 `gorm:"column:creater" json:"creater"`
  331. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  332. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  333. Status int64 `gorm:"column:status" json:"status"`
  334. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  335. ReturnTime int64 `gorm:"column:return_time" json:"return_time"`
  336. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  337. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  338. Type int64 `gorm:"column:type" json:"type"`
  339. XtCancelStockInfo []*XtCancelStockInfo `gorm:"ForeignKey:CancelStockId;AssociationForeignKey:ID" json:"XtCancelStockInfo"`
  340. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  341. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  342. }
  343. func (CancelStock) TableName() string {
  344. return "xt_cancel_stock"
  345. }
  346. type WarehousingGoodInfo struct {
  347. ID int64 `gorm:"column:id" json:"id"`
  348. GoodCode string `gorm:"column:good_code" json:"good_code"`
  349. SpecificationName string `gorm:"column:specification_name" json:"specification_name"`
  350. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  351. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit"`
  352. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  353. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  354. Status int64 `gorm:"column:status" json:"status"`
  355. GoodsType GoodsType `gorm:"ForeignKey:ID;AssociationForeignKey:GoodTypeId" json:"type"`
  356. Manufacturers Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
  357. Dealers Dealer `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
  358. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price"`
  359. Total float64 `gorm:"column:total" json:"total" form:"total"`
  360. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  361. }
  362. func (WarehousingGoodInfo) TableName() string {
  363. return "xt_good_information"
  364. }
  365. type WarehousingInfoConfig struct {
  366. ID int64 `gorm:"column:id" json:"id"`
  367. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  368. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  369. WarehousingGoodInfo WarehousingGoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  370. }
  371. func (WarehousingInfoConfig) TableName() string {
  372. return "xt_warehouse_info"
  373. }
  374. type WarehousingOutInfoConfig struct {
  375. ID int64 `gorm:"column:id" json:"id"`
  376. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  377. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  378. WarehousingGoodInfo WarehousingGoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  379. }
  380. func (WarehousingOutInfoConfig) TableName() string {
  381. return "xt_warehouse_out_info"
  382. }
  383. type AutomaticReduceDetail struct {
  384. ID int64 `gorm:"column:id" json:"id"`
  385. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  386. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  387. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  388. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  389. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  390. Status int64 `gorm:"column:status" json:"status"`
  391. RecordTime int64 `gorm:"column:record_time" json:"record_time"`
  392. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  393. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  394. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  395. GoodInfo GoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  396. GoodsType GoodsType `gorm:"ForeignKey:GoodTypeId;AssociationForeignKey:ID" json:"type"`
  397. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"user"`
  398. Count int64 `gorm:"column:count" json:"count"`
  399. Type int64 `gorm:"column:type" json:"type"`
  400. WarehouseOutInfo []*WarehouseOutInfo `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"warehouseOutInfo"`
  401. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  402. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  403. }
  404. func (AutomaticReduceDetail) TableName() string {
  405. return "xt_automatic_reduce_detail"
  406. }
  407. type SgjAutomaticReduceDetail struct {
  408. ID int64 `gorm:"column:id" json:"id"`
  409. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  410. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  411. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  412. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  413. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  414. Status int64 `gorm:"column:status" json:"status"`
  415. RecordTime int64 `gorm:"column:record_time" json:"record_time"`
  416. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  417. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  418. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  419. Count int64 `gorm:"column:count" json:"count"`
  420. Type int64 `gorm:"column:type" json:"type"`
  421. GoodName string `gorm:"column:good_name" json:"good_name"`
  422. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  423. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  424. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  425. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  426. }
  427. type VmWarehouseOutInfo struct {
  428. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  429. Count int64 `gorm:"column:count" json:"count"`
  430. Remark string `gorm:"column:remark" json:"remark"`
  431. Price float64 `gorm:"column:price" json:"price"`
  432. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  433. }
  434. type VmWarehouseInfo struct {
  435. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  436. Count int64 `gorm:"column:count" json:"count"`
  437. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  438. StockCount int64 `gorm:"column:stock_count" json:"stock_count"`
  439. }
  440. type WarehouseOutInfoOne struct {
  441. ID int64 `gorm:"column:id" json:"id"`
  442. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  443. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  444. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  445. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  446. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  447. Count int64 `gorm:"column:count" json:"count"`
  448. Price float64 `gorm:"column:price" json:"price"`
  449. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  450. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  451. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  452. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  453. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  454. Status int64 `gorm:"column:status" json:"status"`
  455. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  456. Remark string `gorm:"column:remark" json:"remark"`
  457. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  458. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  459. Type int64 `gorm:"column:type" json:"type"`
  460. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  461. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  462. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  463. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  464. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  465. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  466. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  467. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  468. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  469. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  470. Number string `gorm:"column:number" json:"number" form:"number"`
  471. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  472. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  473. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  474. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  475. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  476. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  477. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  478. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  479. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  480. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  481. }
  482. type WarehouseOutInfoTwo struct {
  483. ID int64 `gorm:"column:id" json:"id"`
  484. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  485. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  486. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  487. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  488. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  489. Count int64 `gorm:"column:count" json:"count"`
  490. Price float64 `gorm:"column:price" json:"price"`
  491. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  492. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  493. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  494. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  495. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  496. Status int64 `gorm:"column:status" json:"status"`
  497. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  498. Remark string `gorm:"column:remark" json:"remark"`
  499. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  500. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  501. Type int64 `gorm:"column:type" json:"type"`
  502. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  503. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  504. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  505. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  506. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  507. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  508. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  509. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  510. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  511. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  512. Number string `gorm:"column:number" json:"number" form:"number"`
  513. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  514. StWarehousingInfo []*StWarehousingInfo `gorm:"ForeignKey:good_id;AssociationForeignKey:GoodId" json:"xt_warehouse_info"`
  515. }
  516. type WarehouseOutInfoSix struct {
  517. ID int64 `gorm:"column:id" json:"id"`
  518. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  519. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  520. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  521. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  522. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  523. Count int64 `gorm:"column:count" json:"count"`
  524. Price float64 `gorm:"column:price" json:"price"`
  525. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  526. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  527. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  528. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  529. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  530. Status int64 `gorm:"column:status" json:"status"`
  531. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  532. Remark string `gorm:"column:remark" json:"remark"`
  533. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  534. WarehouseOut WarehouseOut `ForeignKey:WarehouseOutId json:"WarehouseOut"`
  535. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  536. Type int64 `gorm:"column:type" json:"type"`
  537. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  538. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  539. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  540. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  541. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  542. Number string `gorm:"column:number" json:"number" form:"number"`
  543. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  544. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  545. GoodInfo GoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  546. }
  547. func (WarehouseOutInfoSix) TableName() string {
  548. return "xt_warehouse_out_info"
  549. }
  550. type VmStockFlow struct {
  551. ID int64 `gorm:"column:id" json:"id" form:"id"`
  552. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  553. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  554. Number string `gorm:"column:number" json:"number" form:"number"`
  555. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  556. Count int64 `gorm:"column:count" json:"count" form:"count"`
  557. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  558. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  559. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  560. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  561. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  562. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  563. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  564. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  565. IsEdit int64 `gorm:"column:is_edit" json:"is_edit" form:"is_edit"`
  566. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  567. CancelOrderNumber string `gorm:"column:cancel_order_number" json:"cancel_order_number" form:"cancel_order_number"`
  568. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  569. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  570. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  571. UpdateCreator int64 `gorm:"column:update_creator" json:"update_creator" form:"update_creator"`
  572. Status int64 `gorm:"column:status" json:"status" form:"status"`
  573. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  574. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  575. Price float64 `gorm:"column:price" json:"price" form:"price"`
  576. WarehousingDetailId int64 `gorm:"column:warehousing_detail_id" json:"warehousing_detail_id" form:"warehousing_detail_id"`
  577. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  578. CancelOutDetailId int64 `gorm:"column:cancel_out_detail_id" json:"cancel_out_detail_id" form:"cancel_out_detail_id"`
  579. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  580. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  581. ReturnCount int64 `gorm:"column:return_count" json:"return_count" form:"return_count"`
  582. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  583. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  584. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  585. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  586. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  587. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  588. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  589. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  590. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  591. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  592. }
  593. func (VmStockFlow) TableName() string {
  594. return "xt_stock_flow"
  595. }
  596. type CancelStockInfo struct {
  597. ID int64 `gorm:"column:id" json:"id"`
  598. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  599. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id"`
  600. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  601. Count int64 `gorm:"column:count" json:"count"`
  602. Price float64 `gorm:"column:price" json:"price"`
  603. Total float64 `gorm:"column:total" json:"total"`
  604. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  605. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  606. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  607. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  608. Status int64 `gorm:"column:status" json:"status"`
  609. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  610. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  611. Type int64 `gorm:"column:type" json:"type"`
  612. CancelStock CancelStock `ForeignKey:CancelStockId json:"CancelStock"`
  613. Dealer string `gorm:"column:dealer" json:"dealer"`
  614. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer"`
  615. Number string `gorm:"column:number" json:"number" form:"number"`
  616. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  617. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  618. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  619. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  620. WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:GoodId" json:"xt_warehouse_info"`
  621. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  622. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  623. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  624. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  625. }
  626. func (CancelStockInfo) TableName() string {
  627. return "xt_cancel_stock_info"
  628. }
  629. type VmBaseDrug struct {
  630. ID int64 `gorm:"column:id" json:"id" form:"id"`
  631. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  632. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  633. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  634. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  635. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  636. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  637. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  638. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  639. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  640. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  641. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  642. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  643. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  644. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  645. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  646. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  647. Dose float64 `gorm:"column:dose" json:"dose" form:"dose"`
  648. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  649. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  650. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  651. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  652. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  653. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  654. Number string `gorm:"column:number" json:"number" form:"number"`
  655. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  656. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  657. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  658. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  659. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  660. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  661. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  662. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  663. Code string `gorm:"column:code" json:"code" form:"code"`
  664. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  665. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  666. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  667. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  668. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  669. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  670. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  671. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  672. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  673. Label int64 `gorm:"column:label" json:"label" form:"label"`
  674. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  675. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  676. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  677. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  678. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  679. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  680. Status int64 `gorm:"column:status" json:"status" form:"status"`
  681. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  682. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  683. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  684. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  685. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  686. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  687. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  688. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  689. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  690. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  691. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  692. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  693. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  694. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  695. Total float64 `gorm:"column:total" json:"total" form:"total"`
  696. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  697. DrugWarehouseInfo []*VsDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
  698. DrugWarehouse []*DrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse"`
  699. DrugCancelStockInfo []*VsDrugCancelStockInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_cancel_stock_info"`
  700. DrugWarehouseOutInfo []*VsDrugWarehouseOutInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_out"`
  701. }
  702. func (VmBaseDrug) TableName() string {
  703. return "xt_base_drug"
  704. }
  705. type VsDrugWarehouseInfo struct {
  706. ID int64 `gorm:"column:id" json:"id" form:"id"`
  707. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  708. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  709. Number string `gorm:"column:number" json:"number" form:"number"`
  710. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  711. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  712. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  713. WarehouseingUnit string `gorm:"column:warehouseing_unit" json:"warehouseing_unit" form:"warehouseing_unit"`
  714. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  715. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  716. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  717. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  718. Price float64 `gorm:"column:price" json:"price" form:"price"`
  719. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  720. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  721. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  722. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  723. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  724. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  725. Status int64 `gorm:"column:status" json:"status" form:"status"`
  726. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  727. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  728. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  729. Type int64 `gorm:"column:type" json:"type" form:"type"`
  730. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  731. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  732. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  733. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  734. }
  735. func (VsDrugWarehouseInfo) TableName() string {
  736. return "xt_drug_warehouse_info"
  737. }
  738. type VsDrugCancelStockInfo struct {
  739. ID int64 `gorm:"column:id" json:"id" form:"id"`
  740. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  741. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  742. Count int64 `gorm:"column:count" json:"count" form:"count"`
  743. Price float64 `gorm:"column:price" json:"price" form:"price"`
  744. Total float64 `gorm:"column:total" json:"total" form:"total"`
  745. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  746. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  747. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  748. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  749. Status int64 `gorm:"column:status" json:"status" form:"status"`
  750. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  751. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  752. Type int64 `gorm:"column:type" json:"type" form:"type"`
  753. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  754. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  755. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  756. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  757. Number string `gorm:"column:number" json:"number" form:"number"`
  758. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  759. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  760. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  761. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  762. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" `
  763. }
  764. func (VsDrugCancelStockInfo) TableName() string {
  765. return "xt_drug_cancel_stock_info"
  766. }
  767. type VsDrugWarehouseOutInfo struct {
  768. ID int64 `gorm:"column:id" json:"id" form:"id"`
  769. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  770. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  771. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  772. Count int64 `gorm:"column:count" json:"count" form:"count"`
  773. Price float64 `gorm:"column:price" json:"price" form:"price"`
  774. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  775. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  776. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  777. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  778. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  779. Status int64 `gorm:"column:status" json:"status" form:"status"`
  780. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  781. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  782. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  783. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  784. Type int64 `gorm:"column:type" json:"type" form:"type"`
  785. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  786. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  787. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  788. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  789. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  790. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  791. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  792. }
  793. func (VsDrugWarehouseOutInfo) TableName() string {
  794. return "xt_drug_warehouse_out_info"
  795. }
  796. type VmStockFlowOne struct {
  797. ID int64 `gorm:"column:id" json:"id" form:"id"`
  798. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  799. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  800. Number string `gorm:"column:number" json:"number" form:"number"`
  801. Count int64 `gorm:"column:count" json:"count" form:"count"`
  802. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  803. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  804. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  805. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  806. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  807. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  808. Price float64 `gorm:"column:price" json:"price" form:"price"`
  809. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  810. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  811. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  812. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  813. Name string `gorm:"column:name" json:"name" form:"name"`
  814. }
  815. type BloodWarehouseInfo struct {
  816. ID int64 `gorm:"column:id" json:"id" form:"id"`
  817. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  818. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  819. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  820. Number string `gorm:"column:number" json:"number" form:"number"`
  821. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  822. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  823. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  824. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  825. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  826. Price float64 `gorm:"column:price" json:"price" form:"price"`
  827. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  828. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  829. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  830. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  831. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  832. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  833. Status int64 `gorm:"column:status" json:"status" form:"status"`
  834. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  835. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  836. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  837. Type int64 `gorm:"column:type" json:"type" form:"type"`
  838. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  839. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  840. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  841. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  842. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  843. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  844. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  845. IsCheck string `gorm:"column:is_check" json:"is_check" form:"is_check"`
  846. }
  847. type XtStockAdjustPrice struct {
  848. ID int64 `gorm:"column:id" json:"id" form:"id"`
  849. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  850. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  851. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  852. Count int64 `gorm:"column:count" json:"count" form:"count"`
  853. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  854. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  855. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  856. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  857. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  858. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  859. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  860. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  861. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  862. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  863. Status int64 `gorm:"column:status" json:"status" form:"status"`
  864. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  865. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  866. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  867. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  868. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  869. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  870. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  871. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  872. AdminRole VMUserAdminRole `gorm:"ForeignKey:ID;AssociationForeignKey:Creater" `
  873. }
  874. func (XtStockAdjustPrice) TableName() string {
  875. return "xt_stock_adjust_price"
  876. }
  877. type VmUserAdminRole struct {
  878. ID int64 `gorm:"column:id" json:"id" form:"id"`
  879. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  880. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  881. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  882. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  883. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  884. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  885. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  886. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  887. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  888. Status int64 `gorm:"column:status" json:"status" form:"status"`
  889. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  890. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  891. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  892. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  893. Message string `gorm:"column:message" json:"message" form:"message"`
  894. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  895. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  896. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  897. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  898. Department string `gorm:"column:department" json:"department" form:"department"`
  899. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  900. Age int64 `gorm:"column:age" json:"age" form:"age"`
  901. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  902. CardType int64 `gorm:"column:card_type" json:"card_type" form:"card_type"`
  903. IdCard string `gorm:"column:id_card" json:"id_card" form:"id_card"`
  904. Education int64 `gorm:"column:education" json:"education" form:"education"`
  905. StudyMajorName string `gorm:"column:study_major_name" json:"study_major_name" form:"study_major_name"`
  906. WorkMajorName string `gorm:"column:work_major_name" json:"work_major_name" form:"work_major_name"`
  907. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  908. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  909. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code" form:"doctor_code"`
  910. Licensing int64 `gorm:"column:licensing" json:"licensing" form:"licensing"`
  911. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  912. PrescriptionQualificationIdentification int64 `gorm:"column:prescription_qualification_identification" json:"prescription_qualification_identification" form:"prescription_qualification_identification"`
  913. IdentificationOutpatients int64 `gorm:"column:identification_outpatients" json:"identification_outpatients" form:"identification_outpatients"`
  914. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  915. MedicalRangeCode int64 `gorm:"column:medical_range_code" json:"medical_range_code" form:"medical_range_code"`
  916. MedicalLevel int64 `gorm:"column:medical_level" json:"medical_level" form:"medical_level"`
  917. MedicalTypeJob int64 `gorm:"column:medical_type_job" json:"medical_type_job" form:"medical_type_job"`
  918. PharmacistRegistrationNumber string `gorm:"column:pharmacist_registration_number" json:"pharmacist_registration_number" form:"pharmacist_registration_number"`
  919. DoctorRangeCode int64 `gorm:"column:doctor_range_code" json:"doctor_range_code" form:"doctor_range_code"`
  920. DoctorLevel int64 `gorm:"column:doctor_level" json:"doctor_level" form:"doctor_level"`
  921. DoctorTypeJob int64 `gorm:"column:doctor_type_job" json:"doctor_type_job" form:"doctor_type_job"`
  922. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number" form:"doctor_number"`
  923. OutpatientIllnessCategory string `gorm:"column:outpatient_illness_category" json:"outpatient_illness_category" form:"outpatient_illness_category"`
  924. IsActive int64 `gorm:"column:is_active" json:"is_active" form:"is_active"`
  925. ActiveStatus int64 `gorm:"column:active_status" json:"active_status" form:"active_status"`
  926. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  927. }
  928. func (VmUserAdminRole) TableName() string {
  929. return "sgj_user_admin_role"
  930. }
  931. type VmStockAdjustPrice struct {
  932. ID int64 `gorm:"column:id" json:"id" form:"id"`
  933. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  934. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  935. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  936. Count int64 `gorm:"column:count" json:"count" form:"count"`
  937. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  938. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  939. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  940. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  941. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  942. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  943. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  944. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  945. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  946. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  947. Status int64 `gorm:"column:status" json:"status" form:"status"`
  948. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  949. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  950. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  951. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  952. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  953. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  954. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  955. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  956. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  957. Number string `gorm:"column:number" json:"number" form:"number"`
  958. Total int64 `gorm:"column:total" json:"total" form:"total"`
  959. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  960. }
  961. type XtStockReportPrice struct {
  962. ID int64 `gorm:"column:id" json:"id" form:"id"`
  963. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  964. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  965. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  966. Count int64 `gorm:"column:count" json:"count" form:"count"`
  967. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  968. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  969. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  970. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  971. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  972. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  973. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  974. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  975. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  976. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  977. Status int64 `gorm:"column:status" json:"status" form:"status"`
  978. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  979. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  980. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  981. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  982. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  983. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  984. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  985. Number string `gorm:"column:number" json:"number" form:"number"`
  986. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  987. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  988. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  989. Total int64 `gorm:"column:total" json:"total" form:"total"`
  990. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  991. }
  992. func (XtStockReportPrice) TableName() string {
  993. return "xt_stock_report_price"
  994. }
  995. type XtStockInventory struct {
  996. ID int64 `gorm:"column:id" json:"id" form:"id"`
  997. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  998. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  999. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1000. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1001. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1002. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1003. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1004. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1005. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1006. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1007. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1008. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1009. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1010. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1011. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1012. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1013. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1014. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1015. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1016. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1017. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1018. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1019. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1020. Number string `gorm:"column:number" json:"number" form:"number"`
  1021. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1022. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  1023. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1024. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  1025. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1026. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  1027. LastStockCount int64 `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
  1028. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1029. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1030. }
  1031. func (XtStockInventory) TableName() string {
  1032. return "xt_stock_inventory"
  1033. }
  1034. type VmStockInventory struct {
  1035. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1036. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1037. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1038. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1039. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1040. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1041. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1042. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1043. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1044. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1045. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1046. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1047. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1048. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1049. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1050. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1051. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1052. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1053. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1054. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1055. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1056. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1057. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1058. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1059. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1060. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1061. Number string `gorm:"column:number" json:"number" form:"number"`
  1062. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  1063. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1064. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1065. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  1066. LastStockCount int64 `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
  1067. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1068. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1069. }
  1070. type XtStockCorrectRecord struct {
  1071. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1072. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1073. OrdCount int64 `gorm:"column:ord_count" json:"ord_count" form:"ord_count"`
  1074. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1075. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1076. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1077. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1078. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1079. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1080. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1081. }
  1082. func (XtStockCorrectRecord) TableName() string {
  1083. return "xt_stock_correct_record"
  1084. }
  1085. type SgjWarehouseOutInfo struct {
  1086. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1087. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  1088. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1089. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1090. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1091. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  1092. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1093. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1094. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  1095. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1096. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1097. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1098. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1099. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1100. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1101. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1102. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  1103. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  1104. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1105. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1106. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1107. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  1108. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  1109. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1110. Number string `gorm:"column:number" json:"number" form:"number"`
  1111. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1112. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  1113. GoodName string `gorm:"column:good_name" json:"good_name"`
  1114. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1115. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1116. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1117. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1118. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1119. }
  1120. type SgjCancelStockInfo struct {
  1121. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1122. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1123. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  1124. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1125. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1126. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1127. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1128. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1129. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1130. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1131. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1132. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1133. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1134. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  1135. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1136. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1137. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1138. Number string `gorm:"column:number" json:"number" form:"number"`
  1139. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  1140. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1141. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1142. GoodName string `gorm:"column:good_name" json:"good_name"`
  1143. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1144. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1145. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1146. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1147. }
  1148. type GoodSotckInfo struct {
  1149. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1150. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1151. GoodName string `gorm:"column:good_name" json:"good_name"`
  1152. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1153. Price float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1154. }
  1155. func (GoodSotckInfo) TableName() string {
  1156. return "xt_warehouse_info"
  1157. }
  1158. type PatientWarehouseInfo struct {
  1159. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1160. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1161. Number string `gorm:"column:number" json:"number" form:"number"`
  1162. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1163. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1164. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1165. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1166. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1167. GoodName string `gorm:"column:good_name" json:"good_name"`
  1168. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1169. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1170. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1171. }
  1172. func (PatientWarehouseInfo) TableName() string {
  1173. return "xt_warehouse_info"
  1174. }
  1175. type BloodHisDoctorAdviceInfo struct {
  1176. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1177. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1178. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1179. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1180. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1181. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1182. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1183. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1184. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1185. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1186. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1187. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1188. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1189. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1190. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1191. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1192. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1193. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1194. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1195. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1196. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1197. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1198. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1199. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1200. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1201. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1202. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1203. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1204. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1205. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1206. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1207. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1208. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1209. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1210. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1211. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1212. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1213. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1214. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  1215. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1216. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1217. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1218. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1219. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1220. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1221. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1222. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1223. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1224. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1225. Day int64 `gorm:"column:day" json:"day" form:"day"`
  1226. ChildDoctorAdvice []*BloodHisDoctorAdviceInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1227. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1228. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1229. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  1230. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1231. }
  1232. func (BloodHisDoctorAdviceInfo) TableName() string {
  1233. return "his_doctor_advice_info"
  1234. }
  1235. type BloodHisPrescriptionProject struct {
  1236. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1237. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1238. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1239. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1240. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1241. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1242. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1243. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1244. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1245. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1246. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1247. Count string `gorm:"column:count" json:"count" form:"count"`
  1248. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1249. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1250. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1251. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1252. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1253. Day string `gorm:"column:day" json:"day" form:"day"`
  1254. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1255. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1256. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1257. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1258. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1259. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1260. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1261. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1262. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1263. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1264. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1265. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  1266. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1267. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1268. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1269. ChildDoctorAdvice []*BloodHisPrescriptionProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ProjectId" json:"child"`
  1270. }
  1271. func (BloodHisPrescriptionProject) TableName() string {
  1272. return "his_prescription_project"
  1273. }
  1274. type XtStockSetting struct {
  1275. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1276. IsType int64 `gorm:"column:is_type" json:"is_type" form:"is_type"`
  1277. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1278. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1279. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1280. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1281. }
  1282. func (XtStockSetting) TableName() string {
  1283. return "xt_stock_setting"
  1284. }
  1285. type XtAdviceSetting struct {
  1286. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1287. IsAdviceOpen int64 `gorm:"column:is_advice_open" json:"is_advice_open" form:"is_advice_open"`
  1288. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1289. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1290. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1291. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1292. }
  1293. func (XtAdviceSetting) TableName() string {
  1294. return "xt_advice_setting"
  1295. }
  1296. type XtPrescriptionConfig struct {
  1297. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1298. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1299. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1300. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1301. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1302. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1303. }
  1304. func (XtPrescriptionConfig) TableName() string {
  1305. return "xt_prescription_config"
  1306. }
  1307. type DrugOutConfig struct {
  1308. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1309. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1310. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1311. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1312. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1313. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1314. }
  1315. func (DrugOutConfig) TableName() string {
  1316. return "xt_drug_out_config"
  1317. }
  1318. type VmWarehousingInfoSix struct {
  1319. ID int64 `gorm:"column:id" json:"id"`
  1320. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  1321. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1322. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  1323. Number string `gorm:"column:number" json:"number"`
  1324. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  1325. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  1326. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  1327. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  1328. Price float64 `gorm:"column:price" json:"price"`
  1329. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  1330. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  1331. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  1332. Remark string `gorm:"column:remark" json:"remark"`
  1333. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  1334. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  1335. Status int64 `gorm:"column:status" json:"status"`
  1336. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1337. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  1338. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1339. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  1340. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  1341. Type int64 `gorm:"column:type" json:"type"`
  1342. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1343. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1344. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1345. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  1346. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  1347. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1348. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  1349. }
  1350. func (VmWarehousingInfoSix) TableName() string {
  1351. return "xt_warehouse_info"
  1352. }