stock_models.go 118KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576
  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. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  783. }
  784. func (VsDrugWarehouseInfo) TableName() string {
  785. return "xt_drug_warehouse_info"
  786. }
  787. type VsDrugCancelStockInfo struct {
  788. ID int64 `gorm:"column:id" json:"id" form:"id"`
  789. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  790. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  791. Count int64 `gorm:"column:count" json:"count" form:"count"`
  792. Price float64 `gorm:"column:price" json:"price" form:"price"`
  793. Total float64 `gorm:"column:total" json:"total" form:"total"`
  794. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  795. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  796. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  797. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  798. Status int64 `gorm:"column:status" json:"status" form:"status"`
  799. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  800. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  801. Type int64 `gorm:"column:type" json:"type" form:"type"`
  802. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  803. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  804. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  805. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  806. Number string `gorm:"column:number" json:"number" form:"number"`
  807. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  808. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  809. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  810. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  811. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  812. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" `
  813. }
  814. func (VsDrugCancelStockInfo) TableName() string {
  815. return "xt_drug_cancel_stock_info"
  816. }
  817. type VsDrugWarehouseOutInfo struct {
  818. ID int64 `gorm:"column:id" json:"id" form:"id"`
  819. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  820. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  821. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  822. Count int64 `gorm:"column:count" json:"count" form:"count"`
  823. Price float64 `gorm:"column:price" json:"price" form:"price"`
  824. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  825. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  826. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  827. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  828. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  829. Status int64 `gorm:"column:status" json:"status" form:"status"`
  830. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  831. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  832. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  833. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  834. Type int64 `gorm:"column:type" json:"type" form:"type"`
  835. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  836. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  837. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  838. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  839. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  840. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  841. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  842. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  843. }
  844. func (VsDrugWarehouseOutInfo) TableName() string {
  845. return "xt_drug_warehouse_out_info"
  846. }
  847. type VmStockFlowOne struct {
  848. ID int64 `gorm:"column:id" json:"id" form:"id"`
  849. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  850. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  851. Number string `gorm:"column:number" json:"number" form:"number"`
  852. Count int64 `gorm:"column:count" json:"count" form:"count"`
  853. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  854. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  855. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  856. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  857. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  858. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  859. Price float64 `gorm:"column:price" json:"price" form:"price"`
  860. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  861. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  862. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  863. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  864. Name string `gorm:"column:name" json:"name" form:"name"`
  865. IsRead int64 `gorm:"column:is_read" json:"is_read" form:"is_read"`
  866. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  867. }
  868. type BloodWarehouseInfo struct {
  869. ID int64 `gorm:"column:id" json:"id" form:"id"`
  870. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  871. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  872. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  873. Number string `gorm:"column:number" json:"number" form:"number"`
  874. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  875. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  876. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  877. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  878. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  879. Price float64 `gorm:"column:price" json:"price" form:"price"`
  880. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  881. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  882. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  883. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  884. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  885. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  886. Status int64 `gorm:"column:status" json:"status" form:"status"`
  887. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  888. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  889. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  890. Type int64 `gorm:"column:type" json:"type" form:"type"`
  891. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  892. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  893. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  894. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  895. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  896. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  897. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  898. IsCheck string `gorm:"column:is_check" json:"is_check" form:"is_check"`
  899. }
  900. type XtStockAdjustPrice struct {
  901. ID int64 `gorm:"column:id" json:"id" form:"id"`
  902. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  903. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  904. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  905. Count int64 `gorm:"column:count" json:"count" form:"count"`
  906. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  907. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  908. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  909. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  910. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  911. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  912. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  913. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  914. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  915. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  916. Status int64 `gorm:"column:status" json:"status" form:"status"`
  917. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  918. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  919. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  920. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  921. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  922. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  923. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  924. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  925. AdminRole VMUserAdminRole `gorm:"ForeignKey:ID;AssociationForeignKey:Creater" `
  926. }
  927. func (XtStockAdjustPrice) TableName() string {
  928. return "xt_stock_adjust_price"
  929. }
  930. type VmUserAdminRole struct {
  931. ID int64 `gorm:"column:id" json:"id" form:"id"`
  932. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  933. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  934. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  935. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  936. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  937. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  938. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  939. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  940. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  941. Status int64 `gorm:"column:status" json:"status" form:"status"`
  942. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  943. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  944. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  945. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  946. Message string `gorm:"column:message" json:"message" form:"message"`
  947. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  948. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  949. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  950. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  951. Department string `gorm:"column:department" json:"department" form:"department"`
  952. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  953. Age int64 `gorm:"column:age" json:"age" form:"age"`
  954. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  955. CardType int64 `gorm:"column:card_type" json:"card_type" form:"card_type"`
  956. IdCard string `gorm:"column:id_card" json:"id_card" form:"id_card"`
  957. Education int64 `gorm:"column:education" json:"education" form:"education"`
  958. StudyMajorName string `gorm:"column:study_major_name" json:"study_major_name" form:"study_major_name"`
  959. WorkMajorName string `gorm:"column:work_major_name" json:"work_major_name" form:"work_major_name"`
  960. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  961. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  962. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code" form:"doctor_code"`
  963. Licensing int64 `gorm:"column:licensing" json:"licensing" form:"licensing"`
  964. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  965. PrescriptionQualificationIdentification int64 `gorm:"column:prescription_qualification_identification" json:"prescription_qualification_identification" form:"prescription_qualification_identification"`
  966. IdentificationOutpatients int64 `gorm:"column:identification_outpatients" json:"identification_outpatients" form:"identification_outpatients"`
  967. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  968. MedicalRangeCode int64 `gorm:"column:medical_range_code" json:"medical_range_code" form:"medical_range_code"`
  969. MedicalLevel int64 `gorm:"column:medical_level" json:"medical_level" form:"medical_level"`
  970. MedicalTypeJob int64 `gorm:"column:medical_type_job" json:"medical_type_job" form:"medical_type_job"`
  971. PharmacistRegistrationNumber string `gorm:"column:pharmacist_registration_number" json:"pharmacist_registration_number" form:"pharmacist_registration_number"`
  972. DoctorRangeCode int64 `gorm:"column:doctor_range_code" json:"doctor_range_code" form:"doctor_range_code"`
  973. DoctorLevel int64 `gorm:"column:doctor_level" json:"doctor_level" form:"doctor_level"`
  974. DoctorTypeJob int64 `gorm:"column:doctor_type_job" json:"doctor_type_job" form:"doctor_type_job"`
  975. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number" form:"doctor_number"`
  976. OutpatientIllnessCategory string `gorm:"column:outpatient_illness_category" json:"outpatient_illness_category" form:"outpatient_illness_category"`
  977. IsActive int64 `gorm:"column:is_active" json:"is_active" form:"is_active"`
  978. ActiveStatus int64 `gorm:"column:active_status" json:"active_status" form:"active_status"`
  979. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  980. }
  981. func (VmUserAdminRole) TableName() string {
  982. return "sgj_users.sgj_user_admin_role"
  983. }
  984. type VmStockAdjustPrice struct {
  985. ID int64 `gorm:"column:id" json:"id" form:"id"`
  986. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  987. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  988. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  989. Count int64 `gorm:"column:count" json:"count" form:"count"`
  990. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  991. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  992. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  993. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  994. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  995. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  996. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  997. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  998. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  999. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1000. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1001. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1002. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1003. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1004. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1005. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1006. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1007. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1008. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1009. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1010. Number string `gorm:"column:number" json:"number" form:"number"`
  1011. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1012. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1013. }
  1014. type XtStockReportPrice struct {
  1015. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1016. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1017. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1018. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1019. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1020. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1021. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1022. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1023. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1024. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1025. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1026. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1027. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1028. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1029. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1030. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1031. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1032. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1033. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1034. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1035. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1036. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1037. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1038. Number string `gorm:"column:number" json:"number" form:"number"`
  1039. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1040. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1041. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1042. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1043. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  1044. }
  1045. func (XtStockReportPrice) TableName() string {
  1046. return "xt_stock_report_price"
  1047. }
  1048. type XtStockInventory struct {
  1049. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1050. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1051. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1052. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1053. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1054. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1055. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1056. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1057. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1058. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1059. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1060. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1061. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1062. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1063. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1064. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1065. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1066. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1067. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1068. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1069. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1070. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1071. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1072. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1073. Number string `gorm:"column:number" json:"number" form:"number"`
  1074. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1075. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  1076. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1077. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  1078. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1079. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  1080. LastStockCount int64 `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
  1081. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1082. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1083. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  1084. WarehousingInfo WarehousingInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehousingInfoId" json:"xt_warehouse_info"`
  1085. }
  1086. func (XtStockInventory) TableName() string {
  1087. return "xt_stock_inventory"
  1088. }
  1089. type VmStockInventory struct {
  1090. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1091. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1092. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1093. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1094. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1095. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1096. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1097. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1098. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1099. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1100. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1101. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1102. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1103. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1104. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1105. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1106. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1107. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1108. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1109. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1110. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1111. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1112. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1113. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1114. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1115. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1116. Number string `gorm:"column:number" json:"number" form:"number"`
  1117. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  1118. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1119. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1120. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  1121. LastStockCount int64 `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
  1122. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1123. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1124. }
  1125. type XtStockCorrectRecord struct {
  1126. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1127. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1128. OrdCount int64 `gorm:"column:ord_count" json:"ord_count" form:"ord_count"`
  1129. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1130. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1131. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1132. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1133. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1134. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1135. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1136. }
  1137. func (XtStockCorrectRecord) TableName() string {
  1138. return "xt_stock_correct_record"
  1139. }
  1140. type SgjWarehouseOutInfo struct {
  1141. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1142. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  1143. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1144. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1145. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1146. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  1147. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1148. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1149. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  1150. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1151. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1152. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1153. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1154. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1155. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1156. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1157. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  1158. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  1159. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1160. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1161. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1162. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  1163. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  1164. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1165. Number string `gorm:"column:number" json:"number" form:"number"`
  1166. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1167. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  1168. GoodName string `gorm:"column:good_name" json:"good_name"`
  1169. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1170. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1171. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1172. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1173. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1174. }
  1175. type SgjCancelStockInfo struct {
  1176. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1177. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1178. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  1179. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1180. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1181. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1182. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1183. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1184. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1185. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1186. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1187. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1188. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1189. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  1190. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1191. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1192. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1193. Number string `gorm:"column:number" json:"number" form:"number"`
  1194. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  1195. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1196. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1197. GoodName string `gorm:"column:good_name" json:"good_name"`
  1198. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1199. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1200. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1201. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1202. }
  1203. type GoodSotckInfo struct {
  1204. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1205. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1206. GoodName string `gorm:"column:good_name" json:"good_name"`
  1207. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1208. Price float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1209. }
  1210. func (GoodSotckInfo) TableName() string {
  1211. return "xt_warehouse_info"
  1212. }
  1213. type PatientWarehouseInfo struct {
  1214. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1215. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1216. Number string `gorm:"column:number" json:"number" form:"number"`
  1217. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1218. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1219. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1220. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1221. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1222. GoodName string `gorm:"column:good_name" json:"good_name"`
  1223. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1224. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1225. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1226. }
  1227. func (PatientWarehouseInfo) TableName() string {
  1228. return "xt_warehouse_info"
  1229. }
  1230. type BloodHisDoctorAdviceInfo struct {
  1231. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1232. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1233. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1234. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1235. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1236. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1237. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1238. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1239. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1240. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1241. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1242. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1243. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1244. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1245. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1246. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1247. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1248. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1249. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1250. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1251. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1252. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1253. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1254. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1255. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1256. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1257. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1258. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1259. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1260. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1261. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1262. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1263. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1264. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1265. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1266. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1267. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1268. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1269. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  1270. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1271. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1272. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1273. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1274. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1275. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1276. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1277. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1278. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1279. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1280. Day int64 `gorm:"column:day" json:"day" form:"day"`
  1281. ChildDoctorAdvice []*BloodHisDoctorAdviceInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1282. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1283. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1284. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  1285. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1286. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1287. DrugWayCount string `gorm:"column:drug_way_count" json:"drug_way_count" form:"drug_way_count"`
  1288. }
  1289. func (BloodHisDoctorAdviceInfo) TableName() string {
  1290. return "his_doctor_advice_info"
  1291. }
  1292. type BloodHisPrescriptionProject struct {
  1293. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1294. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1295. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1296. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1297. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1298. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1299. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1300. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1301. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1302. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1303. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1304. Count string `gorm:"column:count" json:"count" form:"count"`
  1305. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1306. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1307. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1308. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1309. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1310. Day string `gorm:"column:day" json:"day" form:"day"`
  1311. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1312. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1313. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1314. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1315. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1316. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1317. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1318. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1319. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1320. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1321. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1322. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  1323. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1324. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1325. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1326. ChildDoctorAdvice []*BloodHisPrescriptionProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ProjectId" json:"child"`
  1327. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1328. }
  1329. func (BloodHisPrescriptionProject) TableName() string {
  1330. return "his_prescription_project"
  1331. }
  1332. type XtStockSetting struct {
  1333. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1334. IsType int64 `gorm:"column:is_type" json:"is_type" form:"is_type"`
  1335. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1336. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1337. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1338. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1339. }
  1340. func (XtStockSetting) TableName() string {
  1341. return "xt_stock_setting"
  1342. }
  1343. type XtAdviceSetting struct {
  1344. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1345. IsAdviceOpen int64 `gorm:"column:is_advice_open" json:"is_advice_open" form:"is_advice_open"`
  1346. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1347. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1348. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1349. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1350. }
  1351. func (XtAdviceSetting) TableName() string {
  1352. return "xt_advice_setting"
  1353. }
  1354. type XtPrescriptionConfig struct {
  1355. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1356. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1357. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1358. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1359. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1360. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1361. }
  1362. func (XtPrescriptionConfig) TableName() string {
  1363. return "xt_prescription_config"
  1364. }
  1365. type DrugOutConfig struct {
  1366. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1367. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1368. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1369. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1370. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1371. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1372. }
  1373. func (DrugOutConfig) TableName() string {
  1374. return "xt_drug_out_config"
  1375. }
  1376. type VmWarehousingInfoSix struct {
  1377. ID int64 `gorm:"column:id" json:"id"`
  1378. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  1379. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1380. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  1381. Number string `gorm:"column:number" json:"number"`
  1382. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  1383. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  1384. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  1385. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  1386. Price float64 `gorm:"column:price" json:"price"`
  1387. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  1388. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  1389. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  1390. Remark string `gorm:"column:remark" json:"remark"`
  1391. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  1392. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  1393. Status int64 `gorm:"column:status" json:"status"`
  1394. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1395. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  1396. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1397. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  1398. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  1399. Type int64 `gorm:"column:type" json:"type"`
  1400. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1401. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1402. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1403. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  1404. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  1405. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1406. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  1407. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1408. }
  1409. func (VmWarehousingInfoSix) TableName() string {
  1410. return "xt_warehouse_info"
  1411. }
  1412. type WarehousingInfoTen struct {
  1413. ID int64 `gorm:"column:id" json:"id"`
  1414. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1415. Status int64 `gorm:"column:status" json:"status"`
  1416. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1417. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1418. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1419. }
  1420. func (WarehousingInfoTen) TableName() string {
  1421. return "xt_warehouse_info"
  1422. }
  1423. type XtWarehouseFlushInfo struct {
  1424. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1425. FlushCount int64 `gorm:"column:flush_count" json:"flush_count" form:"flush_count"`
  1426. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1427. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  1428. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1429. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  1430. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1431. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1432. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1433. BatchNumberId int64 `gorm:"column:batch_number_id" json:"batch_number_id" form:"batch_number_id"`
  1434. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1435. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1436. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  1437. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1438. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1439. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  1440. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1441. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1442. }
  1443. func (XtWarehouseFlushInfo) TableName() string {
  1444. return "xt_warehouse_flush_info"
  1445. }
  1446. type StartWarehousingInfo struct {
  1447. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1448. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1449. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1450. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1451. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1452. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1453. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1454. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1455. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1456. }
  1457. func (StartWarehousingInfo) TableName() string {
  1458. return "xt_warehouse_info"
  1459. }
  1460. type StartDrugWarehouseInfo struct {
  1461. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1462. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1463. Number string `gorm:"column:number" json:"number" form:"number"`
  1464. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  1465. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1466. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  1467. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  1468. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1469. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1470. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1471. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1472. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  1473. }
  1474. func (StartDrugWarehouseInfo) TableName() string {
  1475. return "xt_drug_warehouse_info"
  1476. }