stock_models.go 85KB

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