stock_models.go 121KB

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