Ver Fonte

bug修复

hu há 6 dias atrás
pai
commit
3e1b91b2c5

+ 1 - 1
src/custom/restcontroller/webmanage/sale/stockbill/stockbillitems.java

@@ -275,7 +275,7 @@ public class stockbillitems extends Controller {
         querySQL.setPage(pageSize, pageNumber);
         Rows rows = querySQL.query();
 
-        Rows stockbillskuRows = dbConnect.runSqlQuery("select t1.sku,t1.st_stockbill_itemsid from  st_stockbill_items_sku t1 left join sa_itemsku t2 on t1.sku=t2.sku  where t1.st_stockbillid=t1.st_stockbill_itemsid and t1.st_stockbillid="+st_stockbillid);
+        Rows stockbillskuRows = dbConnect.runSqlQuery("select t1.sku,t1.st_stockbill_itemsid from  st_stockbill_items_sku t1 left join sa_itemsku t2 on t1.sku=t2.sku  where t1.st_stockbillid!=t1.st_stockbill_itemsid and t1.st_stockbillid="+st_stockbillid);
         RowsMap stockbillskuRowsMap = stockbillskuRows.toRowsMap("st_stockbill_itemsid");
         for(Row row :rows){
             if(stockbillskuRowsMap.containsKey(row.getString("st_stockbill_itemsid"))){