stock_models.go 118KB

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