cpTrade.go 2.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Package models 40.6.3仓单优化_产能预售
  2. package models
  3. import "time"
  4. // Cptradepresalegoodsex 产能预售商品扩展表
  5. type Cptradepresalegoodsex struct {
  6. Goodsid int64 `json:"goodsid" xorm:"'GOODSID'" binding:"required"` // 商品ID
  7. Applyid int64 `json:"applyid" xorm:"'APPLYID'"` // 关联申请ID
  8. Userid int64 `json:"userid" xorm:"'USERID'"` // 卖方用户ID
  9. Accountid int64 `json:"accountid" xorm:"'ACCOUNTID'"` // 卖方账户ID
  10. Relatedgoodsid int64 `json:"relatedgoodsid" xorm:"'RELATEDGOODSID'"` // 关联交易合约ID
  11. Presaleqty int64 `json:"presaleqty" xorm:"'PRESALEQTY'"` // 预售数量
  12. Starttime time.Time `json:"starttime" xorm:"'STARTTIME'"` // 预售开始时间
  13. Endtime time.Time `json:"endtime" xorm:"'ENDTIME'"` // 预售结束时间
  14. Attachmenturl string `json:"attachmenturl" xorm:"'ATTACHMENTURL'"` // 附件地址
  15. Presalemode int64 `json:"presalemode" xorm:"'PRESALEMODE'"` // 预售模式 - 1:一口价 2:大宗式竞拍
  16. Marketid int64 `json:"marketid" xorm:"'MARKETID'"` // 预售市场ID - 根据预售模式选择市场
  17. Refprice float64 `json:"refprice" xorm:"'REFPRICE'"` // 参考价格[一口价]
  18. Startprice float64 `json:"startprice" xorm:"'STARTPRICE'"` // 起拍价[大宗式竞拍]
  19. Floorprice float64 `json:"floorprice" xorm:"'FLOORPRICE'"` // 底价[大宗式竞拍]
  20. Createtime time.Time `json:"createtime" xorm:"'CREATETIME'"` // 创建时间
  21. Tradedate string `json:"tradedate" xorm:"'TRADEDATE'"` // 交易日(yyyyMMdd)
  22. Relatedmarketid int64 `json:"relatedmarketid" xorm:"'RELATEDMARKETID'"` // 关联交易合约市场ID
  23. Presaledqty int64 `json:"presaledqty" xorm:"'PRESALEDQTY'"` // 已预售量(预售结束时更新)
  24. Sellstatus int64 `json:"sellstatus" xorm:"'SELLSTATUS'"` // 卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理
  25. Presaledamount float64 `json:"presaledamount" xorm:"'PRESALEDAMOUNT'"` // 已预售总金额(预售结束时更新)
  26. Goodsdetail string `json:"goodsdetail" xorm:"'GOODSDETAIL'"` // 详情[大宗]
  27. Tradeprice float64 `json:"tradeprice" xorm:"'TRADEPRICE'"` // 成交价[大宗]
  28. }
  29. // TableName is CPTRADE_PRESALEGOODSEX
  30. func (Cptradepresalegoodsex) TableName() string {
  31. return "CPTRADE_PRESALEGOODSEX"
  32. }