Selaa lähdekoodia

u8审核报错修复

hu 4 kuukautta sitten
vanhempi
commit
c233e34c3f
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 5 5
      src/custom/restcontroller/webmanage/sale/u8/u8.java

+ 5 - 5
src/custom/restcontroller/webmanage/sale/u8/u8.java

@@ -506,12 +506,12 @@ public class u8 extends Controller {
     public void updateIcinvbal(boolean ischeck,long u8id) throws YosException {
         StringBuffer sql = new StringBuffer();
         sql.append("select t.stockid,t.itemid,sum(t.qty)qty from (");
-        sql.append("select T2.itemid,T2.stockid,");
+        sql.append("select t2.itemid,t2.stockid,");
         sql.append("CASE ");
-        sql.append("WHEN T1.type='其他出库' and t1.rb='1' then -T2.qty ");
-        sql.append("WHEN T1.type='其他出库' and t1.rb='0' then T2.qty ");
-        sql.append("WHEN T1.type='其他入库' and t1.rb='1' then T2.qty ");
-        sql.append("WHEN T1.type='其他入库' and t1.rb='0' then -T2.qty ");
+        sql.append("WHEN t1.type='其他出库' and t1.rb='1' then -t2.qty ");
+        sql.append("WHEN t1.type='其他出库' and t1.rb='0' then t2.qty ");
+        sql.append("WHEN t1.type='其他入库' and t1.rb='1' then t2.qty ");
+        sql.append("WHEN t1.type='其他入库' and t1.rb='0' then -t2.qty ");
         sql.append("end qty ");
         sql.append(" from st_stockbill t1 ");
         sql.append("inner join st_stockbill_items t2 on t1.st_stockbillid=t2.st_stockbillid ");