stock_models.go 100KB

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