stock_models.go 126KB

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