stock_models.go 137KB

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