|
|
@@ -654,6 +654,8 @@ type WrOrderDetail struct {
|
|
|
VALIDTIME string `json:"validtime" xorm:"'VALIDTIME'"` // 挂牌有效期
|
|
|
TANAME string `json:"taname" xorm:"'TANAME'"` // 交易用户名称(资金账号名称)
|
|
|
PERFORMANCETEMPLATEID int64 `json:"performancetemplateid" xorm:"'PERFORMANCETEMPLATEID'"` // 履约模板id
|
|
|
+ LADINGBILLID string `json:"ladingbillid" xorm:"LADINGBILLID" form:"ladingbillid"` // 提单ID(208+Unix秒时间戳(10位)+xxxxxx)
|
|
|
+ SUBNUM int32 `json:"-" xorm:"SUBNUM" form:"subnum"` // 提单子单号
|
|
|
|
|
|
Wr2FactorType `xorm:"extends"`
|
|
|
PageEx `xorm:"extends"`
|
|
|
@@ -691,6 +693,9 @@ func (r *WrOrderDetail) calc() {
|
|
|
}
|
|
|
r.MATCHUSERNAME = newStr
|
|
|
}
|
|
|
+ if r.SUBNUM > 0 {
|
|
|
+ r.LADINGBILLID += fmt.Sprintf("-%v", r.SUBNUM)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
func (r *WrOrderDetail) buildSql() string {
|
|
|
@@ -756,10 +761,13 @@ select t.HASWR,
|
|
|
g.goodsname,
|
|
|
mr.matchusername,
|
|
|
ta.accountname taname,
|
|
|
+ to_char(b.ladingbillid) ladingbillid,
|
|
|
+ b.subnum,
|
|
|
k.*
|
|
|
from wrtrade_orderdetail t
|
|
|
left join wrtrade_goodsconfig c
|
|
|
on t.wrtradeorderid = c.wrtradeorderid
|
|
|
+ left join wrtrade_orderdetaillb b on t.wrtradeorderid=b.wrtradeorderid
|
|
|
left join goods g
|
|
|
on c.goodsid = g.goodsid
|
|
|
left join tmp k
|