Ver código fonte

fix bug:#97655

zou.yingbin 4 anos atrás
pai
commit
582ae11bea
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      models/wrTrade2.go

+ 2 - 2
models/wrTrade2.go

@@ -2951,8 +2951,8 @@ with tmp as
    group by k.wrfactortypeid, k.goodsid)
 select a.*,
        case
-         when a.uqty * g1.agreeunit * r.mindeliveryqty * (r.rratio1/nvl(r.rratio2,1)) < a.qty then
-          a.uqty * g1.agreeunit * r.mindeliveryqty * (r.rratio1/nvl(r.rratio2,1))
+         when a.uqty * g1.agreeunit * r.mindeliveryqty * (r.rratio2/nvl(r.rratio1,1)) < a.qty then
+          a.uqty * g1.agreeunit * r.mindeliveryqty * (r.rratio2/nvl(r.rratio1,1))
          else
           a.qty
        end as avalidqty,