stock_models.go 122KB

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