|
|
@@ -1994,7 +1994,7 @@ func (r *GZGoods) buildSql() string {
|
|
|
LEFT JOIN userinfo u ON u.USERID = t.USERID
|
|
|
LEFT JOIN WRTrade_OrderDetail od ON od.wrstandardid = t.wrstandardid
|
|
|
LEFT JOIN WAREHOUSEINFO wh ON wh.AUTOID = t.WAREHOUSEID
|
|
|
- WHERE GOODSNO = '%v'
|
|
|
+ WHERE GOODSNO = '%v' AND od.WRTradeOrderStatus in (3,7)
|
|
|
`
|
|
|
sqlId.FormatParam(r.GOODSNO)
|
|
|
|