stock_models.go 122KB

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