|
@@ -254,6 +254,12 @@ type MyTradegoodsdeliveryoffline struct {
|
|
|
PAYEDAMOUNT float64 `json:"payedamount" xorm:"PAYEDAMOUNT"` // 已付货款
|
|
PAYEDAMOUNT float64 `json:"payedamount" xorm:"PAYEDAMOUNT"` // 已付货款
|
|
|
FREEZEAMOUNT float64 `json:"freezeamount" xorm:"FREEZEAMOUNT"` // 冻结货款
|
|
FREEZEAMOUNT float64 `json:"freezeamount" xorm:"FREEZEAMOUNT"` // 冻结货款
|
|
|
|
|
|
|
|
|
|
+ GOODSCODE string `json:"goodscode" xorm:"GOODSCODE"` // 期货合约代码(内部)
|
|
|
|
|
+ GOODSNAME string `json:"goodsname" xorm:"GOODSNAME"` // 期货合约名称
|
|
|
|
|
+ AGREEUNIT float64 `json:"agreeunit" xorm:"AGREEUNIT"` // 期货合约乘数
|
|
|
|
|
+ DECIMALPLACE int32 `json:"decimalplace" xorm:"DECIMALPLACE"` // 报价小数位
|
|
|
|
|
+ GOODUNITID int32 `json:"goodunitid" xorm:"GOODUNITID"` // 报价单位ID
|
|
|
|
|
+
|
|
|
Status string `json:"--" form:"status"` // 状态入参
|
|
Status string `json:"--" form:"status"` // 状态入参
|
|
|
|
|
|
|
|
PageEx `xorm:"extends"` // 页码信息
|
|
PageEx `xorm:"extends"` // 页码信息
|
|
@@ -295,8 +301,14 @@ func (r *MyTradegoodsdeliveryoffline) buildSql() string {
|
|
|
t.toconfirmtime,
|
|
t.toconfirmtime,
|
|
|
t.topaytime,
|
|
t.topaytime,
|
|
|
t.payedamount,
|
|
t.payedamount,
|
|
|
- t.freezeamount
|
|
|
|
|
|
|
+ t.freezeamount,
|
|
|
|
|
+ g.goodscode,
|
|
|
|
|
+ g.goodsname,
|
|
|
|
|
+ g.agreeunit,
|
|
|
|
|
+ g.goodunitid,
|
|
|
|
|
+ g.decimalplace
|
|
|
FROM TRADE_GOODSDELIVERYOFFLINE t
|
|
FROM TRADE_GOODSDELIVERYOFFLINE t
|
|
|
|
|
+ LEFT JOIN GOODS g ON g.goodsid = t.goodsid
|
|
|
WHERE t.userid = %v
|
|
WHERE t.userid = %v
|
|
|
`
|
|
`
|
|
|
sqlId.FormatParam(r.USERID)
|
|
sqlId.FormatParam(r.USERID)
|