|
|
@@ -1929,8 +1929,8 @@ type Ermcp3HedgePlan struct {
|
|
|
CREATETIME string `json:"createtime" xorm:"'CREATETIME'"` // 创建时间
|
|
|
UPDATETIME string `json:"updatetime" xorm:"'UPDATETIME'"` // 更新时间
|
|
|
AUDITTIME string `json:"audittime" xorm:"'AUDITTIME'"` // 审核时间
|
|
|
- UNITID int32 `json:"unitid" xorm:"'UNITID'"` // 单位id
|
|
|
- ENUMDICNAME string `json:"enumdicname"` // 单位名称
|
|
|
+ UNITID int32 `json:"unitid" xorm:"'UNITID'"` // 单位id(现货商品)
|
|
|
+ ENUMDICNAME string `json:"enumdicname"` // 单位名称(现货商品)
|
|
|
WRSTANDARDID int32 `json:"wrstandardid" xorm:"'WRSTANDARDID'"` // 品类id
|
|
|
WRSTANDARDCODE string `json:"wrstandardcode" xorm:"'WRSTANDARDCODE'"` // 品类代码
|
|
|
WRSTANDARDNAME string `json:"wrstandardname" xorm:"'WRSTANDARDNAME'"` // 品类名称
|
|
|
@@ -1938,7 +1938,9 @@ type Ermcp3HedgePlan struct {
|
|
|
TAACCOUNTNAME string `json:"taaccountname" xorm:"'TAACCOUNTNAME'"` // 资金账号名称
|
|
|
TRADEUSERID int64 `json:"tradeuserid" xorm:"'TRADEUSERID'"` // 交易用户id
|
|
|
CURRENCYID int32 `json:"currencyid" xorm:"'CURRENCYID'"` // 币种id
|
|
|
+ WRUNITID int32 `json:"wrunitid" xorm:"'WRUNITID'"` // 品类单位id
|
|
|
|
|
|
+ WRUNITIDNAME string `json:"wrunitidame"` // 品类单位名称
|
|
|
TRADEUSERNAME string `json:"tradeusername"` // 交易用户名称
|
|
|
CURRENCYNAME string `json:"currencyname"` // 币种名称
|
|
|
}
|
|
|
@@ -1947,6 +1949,9 @@ func (r *Ermcp3HedgePlan) calc() {
|
|
|
r.ENUMDICNAME = mtpcache.GetEnumDicitemName(r.UNITID)
|
|
|
r.TRADEUSERNAME = mtpcache.GetUserNameByUserId(r.TRADEUSERID)
|
|
|
r.CURRENCYNAME = mtpcache.GetCurrencyName(r.CURRENCYID)
|
|
|
+ if r.WRUNITID > 0 {
|
|
|
+ r.WRUNITIDNAME = mtpcache.GetEnumDicitemName(r.WRUNITID)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
func (r *Ermcp3HedgePlan) buildSql(status string) string {
|
|
|
@@ -1970,6 +1975,7 @@ func (r *Ermcp3HedgePlan) buildSql(status string) string {
|
|
|
" t.wrstandardid," +
|
|
|
" w.wrstandardcode," +
|
|
|
" w.wrstandardname," +
|
|
|
+ " w.unitid wrunitid," +
|
|
|
" t.accountid," +
|
|
|
" t.tradeuserid," +
|
|
|
" t.currencyid," +
|