stock_models.go 73KB

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