|
|
@@ -1540,6 +1540,7 @@ type MyBargainApply struct {
|
|
|
PERFORMANCETEMPLATEID int64 `json:"performancetemplateid" xorm:"PERFORMANCETEMPLATEID"` // 履约计划模板ID
|
|
|
|
|
|
SELLUSERNAME string `json:"sellusername" xorm:"SELLUSERNAME"` // 卖方
|
|
|
+ BUYUSERNAME string `json:"buyusername" xorm:"BUYUSERNAME"` // 买方
|
|
|
|
|
|
QTY float64 `json:"qty" xorm:"QTY"` // 申请数量
|
|
|
|
|
|
@@ -1578,6 +1579,7 @@ func (r *MyBargainApply) buildSql() string {
|
|
|
q.ZSCZCOLOR3TYPEDISPLAY,
|
|
|
q.GOODSNO,
|
|
|
ua.accountname SELLUSERNAME,
|
|
|
+ ua1.accountname BUYUSERNAME,
|
|
|
CASE WHEN
|
|
|
q.SIZE1 IS NOT NULL AND q.SIZE2 IS NOT NULL AND q.SIZE2 IS NOT NULL THEN q.SIZE1 || '*' || q.SIZE2 || '*' || q.SIZE3
|
|
|
ELSE q.SIZE1
|
|
|
@@ -1614,6 +1616,7 @@ func (r *MyBargainApply) buildSql() string {
|
|
|
d.PERFORMANCETEMPLATEID
|
|
|
FROM WRTrade_BargainApply t
|
|
|
LEFT JOIN UserAccount ua ON t.MATCHUSERID = ua.userid
|
|
|
+ LEFT JOIN UserAccount ua1 ON t.USERID = ua1.userid
|
|
|
LEFT JOIN Wrtrade_Orderdetail d ON d.wrtradeorderid = t.wrtradeorderid
|
|
|
LEFT JOIN view_GZ_WRStandard_Ex_Query q ON d.wrstandardid = q.wrstandardid
|
|
|
WHERE t.marketid=67201
|