stock_models.go 108KB

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