stock_models.go 81KB

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