瀏覽代碼

fix bug: 错误 #2014

zou.yingbin 4 年之前
父節點
當前提交
560702fe63
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/ermcp3.go

+ 1 - 1
models/ermcp3.go

@@ -3090,7 +3090,7 @@ select s.userid,
   left join useraccount u1
     on s.customeruserid = u1.userid
   left join enumdicitem e on w.unitid=e.enumitemname and e.enumdiccode='goodsunit'
- where 1 = 1 and t.middlegoodspricedqty3 > t.relatedmiddlegoodsqty
+ where 1 = 1 and t.middlegoodspricedqty3 > t.relatedmiddlegoodsqty and s.contractstatus = 2
    and t.middlegoodsid in
        (select middlegoodsid from tmp where tmp.srcgoodsgroupid = %v)
 `