|
@@ -31,7 +31,7 @@ public class AftersalesmagAutoRecheckService extends ServiceController {
|
|
|
|
|
|
@Override
|
|
|
|
|
|
- public void serviceRun() throws YosException {
|
|
|
+ public void serviceRun() throws Exception {
|
|
|
for (String siteid : siteids) {
|
|
|
if (dbConnect.runSqlQuery("SELECT 1 from sys_site WHERE siteid='" + siteid + "'").isEmpty()) {
|
|
|
continue;
|
|
@@ -73,7 +73,7 @@ public class AftersalesmagAutoRecheckService extends ServiceController {
|
|
|
String result = new WebRequest().doPost(object.toString(), erpDocking.getUrl(), map);
|
|
|
|
|
|
JSONObject resultobject = JSONObject.parseObject(result);
|
|
|
- try {
|
|
|
+ {
|
|
|
Rows erpupdatelogRows = dbConnect.runSqlQuery(
|
|
|
"select * from sys_erpupdatelog where ownertable='sa_aftersalesmag' and type='复核erp退/换货单' and ownerid=" + sa_aftersalesmagid);
|
|
|
SQLFactory sqlFactory;
|
|
@@ -102,8 +102,6 @@ public class AftersalesmagAutoRecheckService extends ServiceController {
|
|
|
}
|
|
|
sqlFactory.addParameter("status", resultobject.getString("errcode"));
|
|
|
sqlList.add(sqlFactory.getSQL());
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
}
|
|
|
if (resultobject.getString("errcode").equals("0")) {
|
|
|
sqlList.add("update sa_aftersalesmag set status='复核' where sa_aftersalesmagid='" + sa_aftersalesmagid + "' and siteid='" + siteid + "'");
|