stock_models.go 84KB

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