stock_models.go 118KB

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