stock_models.go 100KB

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