|
|
@@ -111,7 +111,8 @@ public class DispatchAutoCloseService extends ServiceController {
|
|
|
|
|
|
if (resultobject.getString("errcode").equals("0")) {
|
|
|
sqlList.add("update sa_dispatch set status='关闭',closedate=current_time,closeby='admin' where sa_dispatchid='" + sa_dispatchid + "' and siteid='CCYOSG'");
|
|
|
- SQLFactory sqlFactory = new SQLFactory(new DataContrlLog(), "数据操作日志新增");
|
|
|
+ SQLFactory sqlFactory = new SQLFactory(this, "数据操作日志新增");
|
|
|
+ sqlFactory.addParameter("sys_contrllogid", createTableID("sys_contrllog"));
|
|
|
sqlFactory.addParameter("ownertable", "sa_dispatch");
|
|
|
sqlFactory.addParameter("ownerid", sa_dispatchid);
|
|
|
sqlFactory.addParameter("action", "自动关闭");
|
|
|
@@ -160,7 +161,8 @@ public class DispatchAutoCloseService extends ServiceController {
|
|
|
if (totalRowsMap.get(row.getString("sa_orderid")).get(0).getLong("count") == deliRowsMap.get(row.getString("sa_orderid")).get(0).getLong("count")) {
|
|
|
logger.info("订单关闭:update sa_order set status='关闭',closedate=current_time,closeby='admin' where sa_orderid=" + row.getLong("sa_orderid") + " and siteid='CCYOSG'");
|
|
|
dbConnect.runSqlUpdate("update sa_order set status='关闭',closedate=current_time,closeby='admin' where sa_orderid=" + row.getLong("sa_orderid") + " and siteid='CCYOSG'");
|
|
|
- SQLFactory sqlFactory = new SQLFactory(new DataContrlLog(), "数据操作日志新增");
|
|
|
+ SQLFactory sqlFactory = new SQLFactory(this, "数据操作日志新增");
|
|
|
+ sqlFactory.addParameter("sys_contrllogid", createTableID("sys_contrllog"));
|
|
|
sqlFactory.addParameter("ownertable", "sa_order");
|
|
|
sqlFactory.addParameter("ownerid", row.getLong("sa_orderid"));
|
|
|
sqlFactory.addParameter("action", "自动关闭");
|
|
|
@@ -216,7 +218,8 @@ public class DispatchAutoCloseService extends ServiceController {
|
|
|
// sqlList.add("update sa_order set status='审核' where sa_orderid=" + row.getLong("sa_orderid") + " and siteid='" + siteid + "'");
|
|
|
// }
|
|
|
uncloseSqlList.add("update sa_dispatch set status='关闭',closedate=current_time,closeby='admin' where sa_dispatchid='" + sa_dispatchid + "' and siteid='CCYOSG'");
|
|
|
- SQLFactory sqlFactory = new SQLFactory(new DataContrlLog(), "数据操作日志新增");
|
|
|
+ SQLFactory sqlFactory = new SQLFactory(this, "数据操作日志新增");
|
|
|
+ sqlFactory.addParameter("sys_contrllogid", createTableID("sys_contrllog"));
|
|
|
sqlFactory.addParameter("ownertable", "sa_dispatch");
|
|
|
sqlFactory.addParameter("ownerid", sa_dispatchid);
|
|
|
sqlFactory.addParameter("action", "自动关闭");
|