stock_models.go 137KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849
  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. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  68. }
  69. func (Warehousing) TableName() string {
  70. return "xt_warehouse"
  71. }
  72. type StWarehousingInfo struct {
  73. ID int64 `gorm:"column:id" json:"id"`
  74. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  75. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  76. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  77. Number string `gorm:"column:number" json:"number"`
  78. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  79. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  80. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  81. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  82. Price float64 `gorm:"column:price" json:"price"`
  83. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  84. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  85. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  86. Remark string `gorm:"column:remark" json:"remark"`
  87. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  88. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  89. Status int64 `gorm:"column:status" json:"status"`
  90. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  91. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  92. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  93. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  94. Type int64 `gorm:"column:type" json:"type"`
  95. GoodName string `json:"good_name"`
  96. PackingUnit string `json:"packing_unit"`
  97. TotalCount int64 `json:"total_count"`
  98. SpecificationName string `json:"specification_name"`
  99. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  100. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  101. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  102. WarehousingTime string `json:"warehousing_time"`
  103. }
  104. func (StWarehousingInfo) TableName() string {
  105. return "xt_warehouse_info"
  106. }
  107. type StWarehousingInfoOne struct {
  108. ID int64 `gorm:"column:id" json:"id"`
  109. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  110. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  111. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  112. PackingUnit string `json:"packing_unit"`
  113. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  114. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  115. }
  116. func (StWarehousingInfoOne) TableName() string {
  117. return "xt_warehouse_info"
  118. }
  119. type XtWarehouse struct {
  120. ID int64 `gorm:"column:id" json:"id" form:"id"`
  121. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  122. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  123. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  124. Status int64 `gorm:"column:status" json:"status" form:"status"`
  125. WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time" form:"warehousing_time"`
  126. }
  127. func (XtWarehouse) TableName() string {
  128. return "xt_warehouse"
  129. }
  130. type WarehousingInfo struct {
  131. ID int64 `gorm:"column:id" json:"id"`
  132. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  133. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  134. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  135. Number string `gorm:"column:number" json:"number"`
  136. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  137. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  138. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  139. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  140. Price float64 `gorm:"column:price" json:"price"`
  141. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  142. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  143. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  144. Remark string `gorm:"column:remark" json:"remark"`
  145. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  146. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  147. Status int64 `gorm:"column:status" json:"status"`
  148. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  149. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  150. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  151. Warehousing Warehousing `ForeignKey:WarehousingId json:"warehouse"`
  152. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  153. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  154. Type int64 `gorm:"column:type" json:"type"`
  155. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  156. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  157. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  158. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  159. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  160. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  161. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  162. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  163. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  164. ManafacturerName string `gorm:"column:manafacturer_name" json:"manafacturer_name" form:"manafacturer_name"`
  165. DealerName string `gorm:"column:dealer_name" json:"dealer_name" form:"dealer_name"`
  166. }
  167. func (WarehousingInfo) TableName() string {
  168. return "xt_warehouse_info"
  169. }
  170. type WarehousingInfoSeven struct {
  171. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  172. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  173. }
  174. func (WarehousingInfoSeven) TableName() string {
  175. return "xt_warehouse_info"
  176. }
  177. type VmWarehousingInfo struct {
  178. ID int64 `gorm:"column:id" json:"id"`
  179. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  180. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  181. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  182. Number string `gorm:"column:number" json:"number"`
  183. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  184. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  185. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  186. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  187. Price float64 `gorm:"column:price" json:"price"`
  188. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  189. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  190. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  191. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  192. Remark string `gorm:"column:remark" json:"remark"`
  193. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  194. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  195. Status int64 `gorm:"column:status" json:"status"`
  196. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  197. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  198. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  199. Warehousing Warehousing `ForeignKey:WarehousingId json:"warehouse"`
  200. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  201. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  202. Type int64 `gorm:"column:type" json:"type"`
  203. GoodName string `gorm:"column:good_name" json:"good_name"`
  204. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  205. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  206. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  207. Count int64 `gorm:json:"count"`
  208. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  209. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  210. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  211. BatchNumberCount int64 `gorm:"column:batch_number_count" json:"batch_number_count" form:"batch_number_count"`
  212. }
  213. type WarehouseOut struct {
  214. ID int64 `gorm:"column:id" json:"id"`
  215. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  216. OperationTime int64 `gorm:"column:operation_time" json:"operation_time"`
  217. Creater int64 `gorm:"column:creater" json:"creater"`
  218. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  219. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  220. Remark string `gorm:"column:remark" json:"remark"`
  221. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  222. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  223. Status int64 `gorm:"column:status" json:"status"`
  224. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time"`
  225. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  226. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  227. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  228. Dealers Dealer `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  229. Type int64 `gorm:"column:type" json:"type"`
  230. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  231. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  232. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  233. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  234. SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
  235. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  236. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  237. }
  238. func (WarehouseOut) TableName() string {
  239. return "xt_warehouse_out"
  240. }
  241. type WarehouseOutInfo struct {
  242. ID int64 `gorm:"column:id" json:"id"`
  243. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  244. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  245. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  246. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  247. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  248. Count int64 `gorm:"column:count" json:"count"`
  249. Price float64 `gorm:"column:price" json:"price"`
  250. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  251. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  252. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  253. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  254. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  255. Status int64 `gorm:"column:status" json:"status"`
  256. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  257. Remark string `gorm:"column:remark" json:"remark"`
  258. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  259. WarehouseOut WarehouseOut `ForeignKey:WarehouseOutId json:"WarehouseOut"`
  260. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  261. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  262. Type int64 `gorm:"column:type" json:"type"`
  263. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  264. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  265. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  266. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  267. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  268. Number string `gorm:"column:number" json:"number" form:"number"`
  269. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  270. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  271. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  272. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  273. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  274. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  275. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  276. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  277. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  278. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  279. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  280. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  281. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  282. WarehousingInfo WarehousingInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfotId" `
  283. VmStockFlow VmStockFlow `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseOutDetailId" json:"stock_flow"`
  284. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  285. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  286. WarehousingInfoNight WarehousingInfoNight `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfotId"`
  287. DealerName string `gorm:"column:dealer_name" json:"dealer_name" form:"dealer_name"`
  288. ClassType string `gorm:"column:class_type" json:"class_type" form:"class_type"`
  289. }
  290. func (WarehouseOutInfo) TableName() string {
  291. return "xt_warehouse_out_info"
  292. }
  293. type WarehouseOutInfoNight struct {
  294. ID int64 `gorm:"column:id" json:"id"`
  295. Count int64 `gorm:"column:count" json:"count"`
  296. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  297. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  298. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  299. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  300. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  301. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  302. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  303. Status int64 `gorm:"column:status" json:"status"`
  304. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  305. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  306. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  307. Price float64 `gorm:"column:price" json:"price" form:"price"`
  308. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  309. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  310. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  311. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  312. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  313. Number string `gorm:"column:number" json:"number" form:"number"`
  314. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  315. GoodInfo GoodInformationThirty `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  316. }
  317. func (WarehouseOutInfoNight) TableName() string {
  318. return "xt_warehouse_out_info"
  319. }
  320. type WarehouseOutInfoSeven struct {
  321. ID int64 `gorm:"column:id" json:"id"`
  322. Count int64 `gorm:"column:count" json:"count"`
  323. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  324. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  325. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  326. }
  327. func (WarehouseOutInfoSeven) TableName() string {
  328. return "xt_warehouse_out_info"
  329. }
  330. type SalesReturn struct {
  331. ID int64 `gorm:"column:id" json:"id"`
  332. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  333. OperaTime int64 `gorm:"column:opera_time" json:"opera_time"`
  334. Total int64 `gorm:"column:total" json:"total"`
  335. Creater int64 `gorm:"column:creater" json:"creater"`
  336. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  337. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  338. Status int64 `gorm:"column:status" json:"status"`
  339. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  340. ReturnTime int64 `gorm:"column:return_time" json:"return_time"`
  341. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  342. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  343. Type int64 `gorm:"column:type" json:"type"`
  344. }
  345. func (SalesReturn) TableName() string {
  346. return "xt_sales_return"
  347. }
  348. type SalesReturnInfo struct {
  349. ID int64 `gorm:"column:id" json:"id"`
  350. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  351. SalesReturnId int64 `gorm:"column:sales_return_id" json:"sales_return_id"`
  352. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  353. Count int64 `gorm:"column:count" json:"count"`
  354. Price float64 `gorm:"column:price" json:"price"`
  355. Total float64 `gorm:"column:total" json:"total"`
  356. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  357. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  358. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  359. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  360. Status int64 `gorm:"column:status" json:"status"`
  361. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  362. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  363. Type int64 `gorm:"column:type" json:"type"`
  364. SalesReturn SalesReturn `ForeignKey:SalesReturnId json:"SalesReturn"`
  365. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  366. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  367. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  368. }
  369. func (SalesReturnInfo) TableName() string {
  370. return "xt_sales_return_info"
  371. }
  372. type VmCancelStockInfo struct {
  373. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  374. Count int64 `gorm:"column:count" json:"count"`
  375. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  376. }
  377. type CancelStock struct {
  378. ID int64 `gorm:"column:id" json:"id"`
  379. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  380. OperaTime int64 `gorm:"column:opera_time" json:"opera_time"`
  381. Total int64 `gorm:"column:total" json:"total"`
  382. Creater int64 `gorm:"column:creater" json:"creater"`
  383. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  384. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  385. Status int64 `gorm:"column:status" json:"status"`
  386. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  387. ReturnTime int64 `gorm:"column:return_time" json:"return_time"`
  388. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  389. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  390. Type int64 `gorm:"column:type" json:"type"`
  391. XtCancelStockInfo []*XtCancelStockInfo `gorm:"ForeignKey:CancelStockId;AssociationForeignKey:ID" json:"XtCancelStockInfo"`
  392. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  393. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  394. }
  395. func (CancelStock) TableName() string {
  396. return "xt_cancel_stock"
  397. }
  398. type WarehousingGoodInfo struct {
  399. ID int64 `gorm:"column:id" json:"id"`
  400. GoodCode string `gorm:"column:good_code" json:"good_code"`
  401. SpecificationName string `gorm:"column:specification_name" json:"specification_name"`
  402. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  403. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit"`
  404. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  405. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  406. Status int64 `gorm:"column:status" json:"status"`
  407. GoodsType GoodsType `gorm:"ForeignKey:ID;AssociationForeignKey:GoodTypeId" json:"type"`
  408. Manufacturers Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
  409. Dealers Dealer `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
  410. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price"`
  411. Total float64 `gorm:"column:total" json:"total" form:"total"`
  412. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  413. }
  414. func (WarehousingGoodInfo) TableName() string {
  415. return "xt_good_information"
  416. }
  417. type WarehousingInfoConfig struct {
  418. ID int64 `gorm:"column:id" json:"id"`
  419. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  420. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  421. WarehousingGoodInfo WarehousingGoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  422. }
  423. func (WarehousingInfoConfig) TableName() string {
  424. return "xt_warehouse_info"
  425. }
  426. type WarehousingOutInfoConfig struct {
  427. ID int64 `gorm:"column:id" json:"id"`
  428. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  429. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  430. WarehousingGoodInfo WarehousingGoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  431. }
  432. func (WarehousingOutInfoConfig) TableName() string {
  433. return "xt_warehouse_out_info"
  434. }
  435. type AutomaticReduceDetail struct {
  436. ID int64 `gorm:"column:id" json:"id"`
  437. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  438. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  439. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  440. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  441. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  442. Status int64 `gorm:"column:status" json:"status"`
  443. RecordTime int64 `gorm:"column:record_time" json:"record_time"`
  444. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  445. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  446. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  447. GoodInfo GoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  448. GoodsType GoodsType `gorm:"ForeignKey:GoodTypeId;AssociationForeignKey:ID" json:"type"`
  449. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"user"`
  450. Count int64 `gorm:"column:count" json:"count"`
  451. Type int64 `gorm:"column:type" json:"type"`
  452. WarehouseOutInfo []*WarehouseOutInfo `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"warehouseOutInfo"`
  453. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  454. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  455. }
  456. func (AutomaticReduceDetail) TableName() string {
  457. return "xt_automatic_reduce_detail"
  458. }
  459. type SgjAutomaticReduceDetail struct {
  460. ID int64 `gorm:"column:id" json:"id"`
  461. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  462. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  463. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  464. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  465. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  466. Status int64 `gorm:"column:status" json:"status"`
  467. RecordTime int64 `gorm:"column:record_time" json:"record_time"`
  468. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  469. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  470. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  471. Count int64 `gorm:"column:count" json:"count"`
  472. Type int64 `gorm:"column:type" json:"type"`
  473. GoodName string `gorm:"column:good_name" json:"good_name"`
  474. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  475. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  476. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  477. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  478. }
  479. type VmWarehouseOutInfo struct {
  480. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  481. Count int64 `gorm:"column:count" json:"count"`
  482. Remark string `gorm:"column:remark" json:"remark"`
  483. Price float64 `gorm:"column:price" json:"price"`
  484. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  485. }
  486. type VmWarehouseInfo struct {
  487. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  488. Count int64 `gorm:"column:count" json:"count"`
  489. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  490. StockCount int64 `gorm:"column:stock_count" json:"stock_count"`
  491. }
  492. type WarehouseOutInfoOne struct {
  493. ID int64 `gorm:"column:id" json:"id"`
  494. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  495. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  496. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  497. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  498. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  499. Count int64 `gorm:"column:count" json:"count"`
  500. Price float64 `gorm:"column:price" json:"price"`
  501. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  502. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  503. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  504. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  505. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  506. Status int64 `gorm:"column:status" json:"status"`
  507. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  508. Remark string `gorm:"column:remark" json:"remark"`
  509. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  510. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  511. Type int64 `gorm:"column:type" json:"type"`
  512. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  513. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  514. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  515. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  516. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  517. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  518. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  519. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  520. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  521. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  522. Number string `gorm:"column:number" json:"number" form:"number"`
  523. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  524. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  525. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  526. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  527. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  528. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  529. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  530. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  531. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  532. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  533. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time" form:"warehouse_out_time"`
  534. ClassType string `gorm:"column:class_type" json:"class_type" form:"class_type"`
  535. }
  536. type WarehouseOutInfoTwo struct {
  537. ID int64 `gorm:"column:id" json:"id"`
  538. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  539. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  540. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  541. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  542. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  543. Count int64 `gorm:"column:count" json:"count"`
  544. Price float64 `gorm:"column:price" json:"price"`
  545. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  546. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  547. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  548. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  549. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  550. Status int64 `gorm:"column:status" json:"status"`
  551. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  552. Remark string `gorm:"column:remark" json:"remark"`
  553. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  554. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  555. Type int64 `gorm:"column:type" json:"type"`
  556. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  557. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  558. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  559. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  560. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  561. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  562. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  563. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  564. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  565. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  566. Number string `gorm:"column:number" json:"number" form:"number"`
  567. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  568. StWarehousingInfo []*StWarehousingInfo `gorm:"ForeignKey:good_id;AssociationForeignKey:GoodId" json:"xt_warehouse_info"`
  569. }
  570. type WarehouseOutInfoSix struct {
  571. ID int64 `gorm:"column:id" json:"id"`
  572. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  573. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  574. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  575. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  576. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  577. Count int64 `gorm:"column:count" json:"count"`
  578. Price float64 `gorm:"column:price" json:"price"`
  579. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  580. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  581. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  582. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  583. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  584. Status int64 `gorm:"column:status" json:"status"`
  585. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  586. Remark string `gorm:"column:remark" json:"remark"`
  587. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  588. WarehouseOut WarehouseOut `ForeignKey:WarehouseOutId json:"WarehouseOut"`
  589. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  590. Type int64 `gorm:"column:type" json:"type"`
  591. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  592. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  593. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  594. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  595. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  596. Number string `gorm:"column:number" json:"number" form:"number"`
  597. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  598. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  599. GoodInfo GoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  600. }
  601. func (WarehouseOutInfoSix) TableName() string {
  602. return "xt_warehouse_out_info"
  603. }
  604. type VmStockFlow struct {
  605. ID int64 `gorm:"column:id" json:"id" form:"id"`
  606. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  607. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  608. Number string `gorm:"column:number" json:"number" form:"number"`
  609. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  610. Count int64 `gorm:"column:count" json:"count" form:"count"`
  611. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  612. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  613. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  614. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  615. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  616. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  617. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  618. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  619. IsEdit int64 `gorm:"column:is_edit" json:"is_edit" form:"is_edit"`
  620. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  621. CancelOrderNumber string `gorm:"column:cancel_order_number" json:"cancel_order_number" form:"cancel_order_number"`
  622. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  623. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  624. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  625. UpdateCreator int64 `gorm:"column:update_creator" json:"update_creator" form:"update_creator"`
  626. Status int64 `gorm:"column:status" json:"status" form:"status"`
  627. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  628. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  629. Price float64 `gorm:"column:price" json:"price" form:"price"`
  630. WarehousingDetailId int64 `gorm:"column:warehousing_detail_id" json:"warehousing_detail_id" form:"warehousing_detail_id"`
  631. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  632. CancelOutDetailId int64 `gorm:"column:cancel_out_detail_id" json:"cancel_out_detail_id" form:"cancel_out_detail_id"`
  633. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  634. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  635. ReturnCount int64 `gorm:"column:return_count" json:"return_count" form:"return_count"`
  636. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  637. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  638. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  639. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  640. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  641. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  642. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  643. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  644. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  645. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  646. BatchNumberCount int64 `gorm:"column:batch_number_count" json:"batch_number_count" form:"batch_number_count"`
  647. WarehousingInfo WarehousingInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehousingId" json:"xt_warehouse_info"`
  648. IsRead int64 `gorm:"column:is_read" json:"is_read" form:"is_read"`
  649. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  650. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  651. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  652. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  653. FlushOverCount int64 `gorm:"column:flush_over_count" json:"flush_over_count" form:"flush_over_count"`
  654. OperateTime int64 `gorm:"column:operate_time" json:"operate_time" form:"operate_time"`
  655. }
  656. func (VmStockFlow) TableName() string {
  657. return "xt_stock_flow"
  658. }
  659. type CancelStockInfo struct {
  660. ID int64 `gorm:"column:id" json:"id"`
  661. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  662. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id"`
  663. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  664. Count int64 `gorm:"column:count" json:"count"`
  665. Price float64 `gorm:"column:price" json:"price"`
  666. Total float64 `gorm:"column:total" json:"total"`
  667. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  668. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  669. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  670. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  671. Status int64 `gorm:"column:status" json:"status"`
  672. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  673. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  674. Type int64 `gorm:"column:type" json:"type"`
  675. CancelStock CancelStock `ForeignKey:CancelStockId json:"CancelStock"`
  676. Dealer string `gorm:"column:dealer" json:"dealer"`
  677. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer"`
  678. Number string `gorm:"column:number" json:"number" form:"number"`
  679. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  680. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  681. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  682. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  683. WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:GoodId" json:"xt_warehouse_info"`
  684. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  685. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  686. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  687. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  688. }
  689. func (CancelStockInfo) TableName() string {
  690. return "xt_cancel_stock_info"
  691. }
  692. type VmBaseDrug struct {
  693. ID int64 `gorm:"column:id" json:"id" form:"id"`
  694. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  695. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  696. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  697. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  698. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  699. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  700. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  701. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  702. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  703. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  704. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  705. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  706. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  707. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  708. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  709. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  710. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  711. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  712. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  713. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  714. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  715. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  716. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  717. Number string `gorm:"column:number" json:"number" form:"number"`
  718. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  719. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  720. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  721. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  722. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  723. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  724. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  725. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  726. Code string `gorm:"column:code" json:"code" form:"code"`
  727. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  728. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  729. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  730. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  731. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  732. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  733. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  734. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  735. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  736. Label int64 `gorm:"column:label" json:"label" form:"label"`
  737. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  738. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  739. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  740. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  741. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  742. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  743. Status int64 `gorm:"column:status" json:"status" form:"status"`
  744. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  745. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  746. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  747. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  748. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  749. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  750. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  751. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  752. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  753. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  754. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  755. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  756. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  757. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  758. Total float64 `gorm:"column:total" json:"total" form:"total"`
  759. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  760. DrugWarehouseInfo []*VsDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
  761. DrugWarehouse []*DrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse"`
  762. DrugCancelStockInfo []*VsDrugCancelStockInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_cancel_stock_info"`
  763. DrugWarehouseOutInfo []*VsDrugWarehouseOutInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_out"`
  764. TotalCount int64 `gorm:"column:total_count" json:"total_count" form:"total_count"`
  765. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  766. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  767. DrugStockLimitCount int64 `gorm:"column:drug_stock_limit_count" json:"drug_stock_limit_count" form:"drug_stock_limit_count"`
  768. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  769. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  770. IsPharmacy int64 `gorm:"column:is_pharmacy" json:"is_pharmacy" form:"is_pharmacy"`
  771. DrugFlowWarehouseInfo []*DrugFlow `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_flow_info"`
  772. DrugActFlowWarehouseInfo []*DrugFlow `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_act_flow_info"`
  773. DrugWarehouseInfoStart []*DrugFlow //期初入库结余
  774. DrugWarehouseOutInfoStart []*DrugFlow //期初出库结余
  775. DrugWarehouseOutInfoEnd []*DrugFlow //期末出库结余
  776. DrugWarehouseInfoEnd []*DrugFlow //期末入库结余
  777. DrugWarehouseInfoStartEnd []*DrugFlow //期中增加
  778. DrugWarehouseOutInfoStartEnd []*DrugFlow // 期中减少
  779. WareStartStockInventoryProfit []*DrugFlow //期初盘盈
  780. WareStartStockInventoryLosses []*DrugFlow //期初盘亏
  781. WareEndStockInventoryProfit []*DrugFlow //期末盘盈
  782. WareEndStockInventoryLosses []*DrugFlow //期末盘亏
  783. WareStartEndStockInventoryProfit []*DrugFlow //期间盘盈
  784. WareStartEndStockInventoryLosses []*DrugFlow //期间盘亏
  785. WareStartStockCancelInfo []*DrugFlow //期初结余退库
  786. WareEndStockCancelInfo []*DrugFlow //期末结余退库
  787. WareStartEndStockCancelInfo []*DrugFlow //期中减少退库
  788. }
  789. func (VmBaseDrug) TableName() string {
  790. return "xt_base_drug"
  791. }
  792. type VsDrugWarehouseInfo struct {
  793. ID int64 `gorm:"column:id" json:"id" form:"id"`
  794. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  795. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  796. Number string `gorm:"column:number" json:"number" form:"number"`
  797. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  798. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  799. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  800. WarehouseingUnit string `gorm:"column:warehouseing_unit" json:"warehouseing_unit" form:"warehouseing_unit"`
  801. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  802. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  803. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  804. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  805. Price float64 `gorm:"column:price" json:"price" form:"price"`
  806. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  807. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  808. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  809. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  810. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  811. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  812. Status int64 `gorm:"column:status" json:"status" form:"status"`
  813. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  814. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  815. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  816. Type int64 `gorm:"column:type" json:"type" form:"type"`
  817. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  818. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  819. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  820. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  821. }
  822. func (VsDrugWarehouseInfo) TableName() string {
  823. return "xt_drug_warehouse_info"
  824. }
  825. type VsDrugCancelStockInfo struct {
  826. ID int64 `gorm:"column:id" json:"id" form:"id"`
  827. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  828. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  829. Count int64 `gorm:"column:count" json:"count" form:"count"`
  830. Price float64 `gorm:"column:price" json:"price" form:"price"`
  831. Total float64 `gorm:"column:total" json:"total" form:"total"`
  832. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  833. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  834. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  835. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  836. Status int64 `gorm:"column:status" json:"status" form:"status"`
  837. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  838. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  839. Type int64 `gorm:"column:type" json:"type" form:"type"`
  840. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  841. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  842. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  843. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  844. Number string `gorm:"column:number" json:"number" form:"number"`
  845. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  846. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  847. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  848. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  849. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  850. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" `
  851. }
  852. func (VsDrugCancelStockInfo) TableName() string {
  853. return "xt_drug_cancel_stock_info"
  854. }
  855. type VsDrugWarehouseOutInfo struct {
  856. ID int64 `gorm:"column:id" json:"id" form:"id"`
  857. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  858. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  859. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  860. Count int64 `gorm:"column:count" json:"count" form:"count"`
  861. Price float64 `gorm:"column:price" json:"price" form:"price"`
  862. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  863. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  864. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  865. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  866. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  867. Status int64 `gorm:"column:status" json:"status" form:"status"`
  868. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  869. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  870. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  871. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  872. Type int64 `gorm:"column:type" json:"type" form:"type"`
  873. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  874. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  875. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  876. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  877. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  878. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  879. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  880. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  881. }
  882. func (VsDrugWarehouseOutInfo) TableName() string {
  883. return "xt_drug_warehouse_out_info"
  884. }
  885. type VmStockFlowOne struct {
  886. ID int64 `gorm:"column:id" json:"id" form:"id"`
  887. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  888. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  889. Number string `gorm:"column:number" json:"number" form:"number"`
  890. Count int64 `gorm:"column:count" json:"count" form:"count"`
  891. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  892. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  893. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  894. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  895. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  896. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  897. Price float64 `gorm:"column:price" json:"price" form:"price"`
  898. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  899. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  900. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  901. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  902. Name string `gorm:"column:name" json:"name" form:"name"`
  903. IsRead int64 `gorm:"column:is_read" json:"is_read" form:"is_read"`
  904. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  905. }
  906. type BloodWarehouseInfo struct {
  907. ID int64 `gorm:"column:id" json:"id" form:"id"`
  908. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  909. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  910. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  911. Number string `gorm:"column:number" json:"number" form:"number"`
  912. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  913. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  914. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  915. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  916. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  917. Price float64 `gorm:"column:price" json:"price" form:"price"`
  918. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  919. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  920. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  921. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  922. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  923. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  924. Status int64 `gorm:"column:status" json:"status" form:"status"`
  925. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  926. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  927. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  928. Type int64 `gorm:"column:type" json:"type" form:"type"`
  929. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  930. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  931. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  932. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  933. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  934. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  935. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  936. IsCheck string `gorm:"column:is_check" json:"is_check" form:"is_check"`
  937. }
  938. type XtStockAdjustPrice struct {
  939. ID int64 `gorm:"column:id" json:"id" form:"id"`
  940. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  941. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  942. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  943. Count int64 `gorm:"column:count" json:"count" form:"count"`
  944. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  945. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  946. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  947. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  948. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  949. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  950. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  951. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  952. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  953. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  954. Status int64 `gorm:"column:status" json:"status" form:"status"`
  955. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  956. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  957. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  958. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  959. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  960. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  961. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  962. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  963. AdminRole VMUserAdminRole `gorm:"ForeignKey:ID;AssociationForeignKey:Creater" `
  964. }
  965. func (XtStockAdjustPrice) TableName() string {
  966. return "xt_stock_adjust_price"
  967. }
  968. type VmUserAdminRole struct {
  969. ID int64 `gorm:"column:id" json:"id" form:"id"`
  970. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  971. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  972. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  973. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  974. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  975. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  976. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  977. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  978. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  979. Status int64 `gorm:"column:status" json:"status" form:"status"`
  980. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  981. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  982. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  983. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  984. Message string `gorm:"column:message" json:"message" form:"message"`
  985. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  986. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  987. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  988. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  989. Department string `gorm:"column:department" json:"department" form:"department"`
  990. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  991. Age int64 `gorm:"column:age" json:"age" form:"age"`
  992. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  993. CardType int64 `gorm:"column:card_type" json:"card_type" form:"card_type"`
  994. IdCard string `gorm:"column:id_card" json:"id_card" form:"id_card"`
  995. Education int64 `gorm:"column:education" json:"education" form:"education"`
  996. StudyMajorName string `gorm:"column:study_major_name" json:"study_major_name" form:"study_major_name"`
  997. WorkMajorName string `gorm:"column:work_major_name" json:"work_major_name" form:"work_major_name"`
  998. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  999. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  1000. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code" form:"doctor_code"`
  1001. Licensing int64 `gorm:"column:licensing" json:"licensing" form:"licensing"`
  1002. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  1003. PrescriptionQualificationIdentification int64 `gorm:"column:prescription_qualification_identification" json:"prescription_qualification_identification" form:"prescription_qualification_identification"`
  1004. IdentificationOutpatients int64 `gorm:"column:identification_outpatients" json:"identification_outpatients" form:"identification_outpatients"`
  1005. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1006. MedicalRangeCode int64 `gorm:"column:medical_range_code" json:"medical_range_code" form:"medical_range_code"`
  1007. MedicalLevel int64 `gorm:"column:medical_level" json:"medical_level" form:"medical_level"`
  1008. MedicalTypeJob int64 `gorm:"column:medical_type_job" json:"medical_type_job" form:"medical_type_job"`
  1009. PharmacistRegistrationNumber string `gorm:"column:pharmacist_registration_number" json:"pharmacist_registration_number" form:"pharmacist_registration_number"`
  1010. DoctorRangeCode int64 `gorm:"column:doctor_range_code" json:"doctor_range_code" form:"doctor_range_code"`
  1011. DoctorLevel int64 `gorm:"column:doctor_level" json:"doctor_level" form:"doctor_level"`
  1012. DoctorTypeJob int64 `gorm:"column:doctor_type_job" json:"doctor_type_job" form:"doctor_type_job"`
  1013. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number" form:"doctor_number"`
  1014. OutpatientIllnessCategory string `gorm:"column:outpatient_illness_category" json:"outpatient_illness_category" form:"outpatient_illness_category"`
  1015. IsActive int64 `gorm:"column:is_active" json:"is_active" form:"is_active"`
  1016. ActiveStatus int64 `gorm:"column:active_status" json:"active_status" form:"active_status"`
  1017. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1018. }
  1019. func (VmUserAdminRole) TableName() string {
  1020. return "sgj_users.sgj_user_admin_role"
  1021. }
  1022. type VmStockAdjustPrice struct {
  1023. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1024. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1025. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1026. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1027. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1028. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1029. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1030. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1031. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1032. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1033. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1034. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1035. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1036. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1037. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1038. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1039. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1040. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1041. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1042. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1043. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1044. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1045. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1046. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1047. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1048. Number string `gorm:"column:number" json:"number" form:"number"`
  1049. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1050. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1051. }
  1052. type XtStockReportPrice struct {
  1053. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1054. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1055. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1056. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1057. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1058. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1059. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1060. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1061. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1062. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1063. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1064. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1065. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1066. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1067. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1068. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1069. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1070. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1071. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1072. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1073. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1074. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1075. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1076. Number string `gorm:"column:number" json:"number" form:"number"`
  1077. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1078. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1079. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1080. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1081. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  1082. }
  1083. func (XtStockReportPrice) TableName() string {
  1084. return "xt_stock_report_price"
  1085. }
  1086. type XtStockInventory struct {
  1087. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1088. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1089. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1090. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1091. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1092. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1093. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1094. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1095. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1096. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1097. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1098. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1099. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1100. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1101. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1102. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1103. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1104. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1105. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1106. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1107. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1108. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1109. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1110. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1111. Number string `gorm:"column:number" json:"number" form:"number"`
  1112. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1113. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  1114. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1115. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  1116. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1117. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  1118. LastStockCount int64 `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
  1119. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1120. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1121. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  1122. WarehousingInfo WarehousingInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehousingInfoId" json:"xt_warehouse_info"`
  1123. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1124. }
  1125. func (XtStockInventory) TableName() string {
  1126. return "xt_stock_inventory"
  1127. }
  1128. type VmStockInventory struct {
  1129. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1130. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1131. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1132. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1133. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1134. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1135. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1136. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1137. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1138. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1139. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1140. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1141. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1142. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1143. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1144. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1145. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1146. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1147. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1148. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1149. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1150. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1151. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1152. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1153. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1154. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1155. Number string `gorm:"column:number" json:"number" form:"number"`
  1156. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  1157. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1158. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1159. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  1160. LastStockCount int64 `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
  1161. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1162. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1163. }
  1164. type XtStockCorrectRecord struct {
  1165. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1166. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1167. OrdCount int64 `gorm:"column:ord_count" json:"ord_count" form:"ord_count"`
  1168. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1169. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1170. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1171. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1172. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1173. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1174. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1175. }
  1176. func (XtStockCorrectRecord) TableName() string {
  1177. return "xt_stock_correct_record"
  1178. }
  1179. type SgjWarehouseOutInfo struct {
  1180. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1181. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  1182. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1183. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1184. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1185. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  1186. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1187. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1188. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  1189. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1190. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1191. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1192. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1193. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1194. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1195. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1196. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  1197. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  1198. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1199. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1200. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1201. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  1202. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  1203. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1204. Number string `gorm:"column:number" json:"number" form:"number"`
  1205. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1206. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  1207. GoodName string `gorm:"column:good_name" json:"good_name"`
  1208. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1209. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1210. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1211. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1212. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1213. }
  1214. type SgjCancelStockInfo struct {
  1215. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1216. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1217. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  1218. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1219. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1220. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1221. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1222. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1223. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1224. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1225. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1226. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1227. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1228. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  1229. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1230. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1231. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1232. Number string `gorm:"column:number" json:"number" form:"number"`
  1233. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  1234. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1235. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1236. GoodName string `gorm:"column:good_name" json:"good_name"`
  1237. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1238. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1239. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1240. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1241. }
  1242. type GoodSotckInfo struct {
  1243. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1244. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1245. GoodName string `gorm:"column:good_name" json:"good_name"`
  1246. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1247. Price float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1248. }
  1249. func (GoodSotckInfo) TableName() string {
  1250. return "xt_warehouse_info"
  1251. }
  1252. type PatientWarehouseInfo struct {
  1253. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1254. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1255. Number string `gorm:"column:number" json:"number" form:"number"`
  1256. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1257. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1258. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1259. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1260. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1261. GoodName string `gorm:"column:good_name" json:"good_name"`
  1262. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1263. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1264. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1265. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1266. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1267. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1268. }
  1269. func (PatientWarehouseInfo) TableName() string {
  1270. return "xt_warehouse_info"
  1271. }
  1272. type BloodHisDoctorAdviceInfo struct {
  1273. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1274. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1275. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1276. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1277. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1278. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1279. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1280. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1281. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1282. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1283. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1284. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1285. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1286. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1287. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1288. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1289. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1290. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1291. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1292. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1293. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1294. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1295. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1296. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1297. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1298. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1299. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1300. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1301. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1302. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1303. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1304. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1305. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1306. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1307. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1308. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1309. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1310. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1311. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  1312. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1313. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1314. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1315. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1316. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1317. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1318. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1319. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1320. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1321. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1322. Day int64 `gorm:"column:day" json:"day" form:"day"`
  1323. ChildDoctorAdvice []*BloodHisDoctorAdviceInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1324. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1325. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1326. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  1327. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1328. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1329. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  1330. }
  1331. func (BloodHisDoctorAdviceInfo) TableName() string {
  1332. return "his_doctor_advice_info"
  1333. }
  1334. type BloodHisPrescriptionProject struct {
  1335. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1336. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1337. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1338. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1339. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1340. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1341. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1342. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1343. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1344. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1345. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1346. Count string `gorm:"column:count" json:"count" form:"count"`
  1347. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1348. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1349. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1350. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1351. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1352. Day string `gorm:"column:day" json:"day" form:"day"`
  1353. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1354. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1355. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1356. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1357. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1358. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1359. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1360. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1361. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1362. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1363. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1364. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  1365. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1366. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1367. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1368. ChildDoctorAdvice []*BloodHisPrescriptionProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ProjectId" json:"child"`
  1369. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1370. }
  1371. func (BloodHisPrescriptionProject) TableName() string {
  1372. return "his_prescription_project"
  1373. }
  1374. type XtStockSetting struct {
  1375. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1376. IsType int64 `gorm:"column:is_type" json:"is_type" form:"is_type"`
  1377. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1378. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1379. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1380. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1381. }
  1382. func (XtStockSetting) TableName() string {
  1383. return "xt_stock_setting"
  1384. }
  1385. type XtAdviceSetting struct {
  1386. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1387. IsAdviceOpen int64 `gorm:"column:is_advice_open" json:"is_advice_open" form:"is_advice_open"`
  1388. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1389. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1390. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1391. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1392. }
  1393. func (XtAdviceSetting) TableName() string {
  1394. return "xt_advice_setting"
  1395. }
  1396. type XtPrescriptionConfig struct {
  1397. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1398. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1399. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1400. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1401. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1402. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1403. }
  1404. func (XtPrescriptionConfig) TableName() string {
  1405. return "xt_prescription_config"
  1406. }
  1407. type DrugOutConfig struct {
  1408. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1409. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1410. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1411. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1412. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1413. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1414. }
  1415. func (DrugOutConfig) TableName() string {
  1416. return "xt_drug_out_config"
  1417. }
  1418. type VmWarehousingInfoSix struct {
  1419. ID int64 `gorm:"column:id" json:"id"`
  1420. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  1421. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1422. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  1423. Number string `gorm:"column:number" json:"number"`
  1424. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  1425. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  1426. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  1427. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  1428. Price float64 `gorm:"column:price" json:"price"`
  1429. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  1430. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  1431. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  1432. Remark string `gorm:"column:remark" json:"remark"`
  1433. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  1434. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  1435. Status int64 `gorm:"column:status" json:"status"`
  1436. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1437. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  1438. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1439. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  1440. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  1441. Type int64 `gorm:"column:type" json:"type"`
  1442. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1443. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1444. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1445. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  1446. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  1447. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1448. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  1449. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1450. }
  1451. func (VmWarehousingInfoSix) TableName() string {
  1452. return "xt_warehouse_info"
  1453. }
  1454. type WarehousingInfoTen struct {
  1455. ID int64 `gorm:"column:id" json:"id"`
  1456. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1457. Status int64 `gorm:"column:status" json:"status"`
  1458. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1459. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1460. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1461. }
  1462. func (WarehousingInfoTen) TableName() string {
  1463. return "xt_warehouse_info"
  1464. }
  1465. type XtWarehouseFlushInfo struct {
  1466. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1467. FlushCount int64 `gorm:"column:flush_count" json:"flush_count" form:"flush_count"`
  1468. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1469. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  1470. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1471. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  1472. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1473. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1474. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1475. BatchNumberId int64 `gorm:"column:batch_number_id" json:"batch_number_id" form:"batch_number_id"`
  1476. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1477. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1478. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  1479. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1480. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1481. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  1482. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1483. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1484. }
  1485. func (XtWarehouseFlushInfo) TableName() string {
  1486. return "xt_warehouse_flush_info"
  1487. }
  1488. type StartWarehousingInfo struct {
  1489. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1490. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1491. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1492. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1493. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1494. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1495. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1496. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1497. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1498. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1499. }
  1500. func (StartWarehousingInfo) TableName() string {
  1501. return "xt_warehouse_info"
  1502. }
  1503. type StartDrugWarehouseInfo struct {
  1504. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1505. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1506. Number string `gorm:"column:number" json:"number" form:"number"`
  1507. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  1508. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1509. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  1510. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  1511. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1512. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1513. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1514. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1515. }
  1516. func (StartDrugWarehouseInfo) TableName() string {
  1517. return "xt_drug_warehouse_info"
  1518. }
  1519. type GoodWarehousingInfo struct {
  1520. ID int64 `gorm:"column:id" json:"id"`
  1521. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  1522. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1523. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  1524. Number string `gorm:"column:number" json:"number"`
  1525. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  1526. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  1527. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  1528. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  1529. Price float64 `gorm:"column:price" json:"price"`
  1530. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  1531. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  1532. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  1533. Remark string `gorm:"column:remark" json:"remark"`
  1534. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  1535. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  1536. Status int64 `gorm:"column:status" json:"status"`
  1537. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1538. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  1539. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1540. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  1541. Type int64 `gorm:"column:type" json:"type"`
  1542. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1543. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1544. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1545. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  1546. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  1547. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1548. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  1549. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1550. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1551. GoodInfo GoodInformationThirty `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  1552. }
  1553. func (GoodWarehousingInfo) TableName() string {
  1554. return "xt_warehouse_info"
  1555. }
  1556. type BloodManufacturer struct {
  1557. ID int64 `gorm:"column:id" json:"id"`
  1558. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name"`
  1559. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1560. Status int64 `gorm:"column:status" json:"status"`
  1561. }
  1562. func (BloodManufacturer) TableName() string {
  1563. return "xt_manufacturer"
  1564. }
  1565. type GoodQueryNewWarehousingInfo struct {
  1566. ID int64 `gorm:"column:id" json:"id"`
  1567. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1568. Status int64 `gorm:"column:status" json:"status"`
  1569. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1570. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1571. }
  1572. func (GoodQueryNewWarehousingInfo) TableName() string {
  1573. return "xt_warehouse_info"
  1574. }
  1575. type NewWarehousingInfo struct {
  1576. ID int64 `gorm:"column:id" json:"id"`
  1577. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  1578. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1579. Price float64 `gorm:"column:price" json:"price"`
  1580. Status int64 `gorm:"column:status" json:"status"`
  1581. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1582. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1583. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1584. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1585. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  1586. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1587. }
  1588. func (NewWarehousingInfo) TableName() string {
  1589. return "xt_warehouse_info"
  1590. }
  1591. type WarehousingInfoNight struct {
  1592. ID int64 `gorm:"column:id" json:"id"`
  1593. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1594. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1595. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1596. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1597. Price float64 `gorm:"column:price" json:"price"`
  1598. Number string `gorm:"column:number" json:"number"`
  1599. }
  1600. func (WarehousingInfoNight) TableName() string {
  1601. return "xt_warehouse_info"
  1602. }
  1603. type WarehouseOutInfoTenty struct {
  1604. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1605. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1606. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1607. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1608. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1609. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1610. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1611. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  1612. }
  1613. func (WarehouseOutInfoTenty) TableName() string {
  1614. return "xt_warehouse_out_info"
  1615. }
  1616. type XtWarehouseInfoEight struct {
  1617. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1618. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  1619. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1620. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1621. Number string `gorm:"column:number" json:"number" form:"number"`
  1622. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1623. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1624. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1625. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1626. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  1627. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1628. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1629. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1630. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1631. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1632. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1633. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1634. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  1635. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1636. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1637. WarehousingUnit int64 `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1638. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1639. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1640. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1641. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1642. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  1643. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  1644. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1645. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  1646. IsCheck string `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1647. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1648. IsUpload int64 `gorm:"column:is_upload" json:"is_upload" form:"is_upload"`
  1649. ManafacturerName string `gorm:"column:manafacturer_name" json:"manafacturer_name" form:"manafacturer_name"`
  1650. DealerName string `gorm:"column:dealer_name" json:"dealer_name" form:"dealer_name"`
  1651. }
  1652. func (XtWarehouseInfoEight) TableName() string {
  1653. return "xt_warehouse_info"
  1654. }
  1655. type XtGoodStockInventoryList struct {
  1656. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1657. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1658. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1659. InCount int64 `gorm:"column:in_count" json:"in_count" form:"in_count"`
  1660. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1661. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1662. BeforCount int64 `gorm:"column:befor_count" json:"befor_count" form:"befor_count"`
  1663. AfterCount int64 `gorm:"column:after_count" json:"after_count" form:"after_count"`
  1664. Reason int64 `gorm:"column:reason" json:"reason" form:"reason"`
  1665. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1666. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1667. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1668. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1669. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1670. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1671. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1672. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"`
  1673. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1674. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1675. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1676. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1677. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  1678. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1679. }
  1680. func (XtGoodStockInventoryList) TableName() string {
  1681. return "xt_good_stock_inventory_list"
  1682. }
  1683. type XtDrugStockInventoryList struct {
  1684. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1685. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1686. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1687. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1688. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1689. Reason int64 `gorm:"column:reason" json:"reason" form:"reason"`
  1690. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1691. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1692. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1693. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1694. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1695. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1696. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1697. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"`
  1698. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  1699. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1700. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1701. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1702. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  1703. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1704. WarehousingCountUnit string `gorm:"column:warehousing_count_unit" json:"warehousing_count_unit" form:"warehousing_count_unit"`
  1705. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  1706. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  1707. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  1708. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  1709. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1710. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1711. }
  1712. func (XtDrugStockInventoryList) TableName() string {
  1713. return "xt_drug_stock_inventory_list"
  1714. }
  1715. type XtDrugCodeOpen struct {
  1716. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1717. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1718. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1719. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1720. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1721. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1722. }
  1723. func (XtDrugCodeOpen) TableName() string {
  1724. return "xt_drug_code_open"
  1725. }