Parcourir la source

商品调价单导入调整

郭齐峰 il y a 1 an
Parent
commit
8f35ccee8a

+ 2 - 5
src/custom/restcontroller/webmanage/sale/itempriceadjust/ItempriceadjustItemprice.java

@@ -363,14 +363,12 @@ public class ItempriceadjustItemprice extends Controller {
                     }
                 }
             }
-            System.err.println(sqllist.size());
-            System.err.println(!sqllist.isEmpty());
             if (!sqllist.isEmpty()) {
                 String sql = DataContrlLog.createLog(this, "sa_itempriceadjust", sa_itempriceadjustid, "新增", "商品调价单导入:" + sa_itempriceadjustid).getSQL();
                 sqlList.add(sql);
                 dbConnect.runSqlUpdate(sqllist);
             } else {
-                dbConnect.runSqlUpdate("delete from sa_itempriceadjust where  sa_itempriceadjustid=" + sa_itempriceadjustid);
+                dbConnect.runSqlUpdate("delete from sa_itempriceadjust where sa_itempriceadjustid=" + sa_itempriceadjustid);
             }
 
             if (iserr) {
@@ -411,11 +409,10 @@ public class ItempriceadjustItemprice extends Controller {
                 if (!aa.isEmpty()) {
                     url = aa.get(0).getString("url");
                 }
-                dbConnect.runSqlUpdate("delete from sa_itempriceadjust where  sa_itempriceadjustid=" + sa_itempriceadjustid);
                 return getErrReturnObject().setErrMsg(url).toString();
             }
         } catch (Exception e1) {
-            dbConnect.runSqlUpdate("delete from sa_itempriceadjust where  sa_itempriceadjustid=" + sa_itempriceadjustid);
+            dbConnect.runSqlUpdate("delete from sa_itempriceadjust where sa_itempriceadjustid=" + sa_itempriceadjustid);
             e1.printStackTrace();
             return getErrReturnObject().setErrMsg(e1.getMessage()).toString();
         }