|
|
@@ -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();
|
|
|
}
|