|
@@ -576,6 +576,7 @@ func (r *THJWrstandardDetailReq) GetTHJWrstandardDetail() (rsp *THJWrstandardDet
|
|
|
and t.presalestatus = 2
|
|
and t.presalestatus = 2
|
|
|
and od.wrtradeorderstatus in (3, 7)
|
|
and od.wrtradeorderstatus in (3, 7)
|
|
|
and (od.orderqty - od.tradeqty) > 0
|
|
and (od.orderqty - od.tradeqty) > 0
|
|
|
|
|
+ order by t.enddate
|
|
|
`, r.WRSTANDARDID)
|
|
`, r.WRSTANDARDID)
|
|
|
if err = engine.SQL(sql).Find(&deliveryMonths); err != nil {
|
|
if err = engine.SQL(sql).Find(&deliveryMonths); err != nil {
|
|
|
return
|
|
return
|