stock_models.go 138KB

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