Przeglądaj źródła

数据操作日志新增bug修复

hu 2 lat temu
rodzic
commit
c320a89de2

+ 2 - 0
src/custom/restcontroller/webmanage/sale/dispatch/SQL/数据操作日志新增.sql

@@ -0,0 +1,2 @@
+insert into sys_contrllog (siteid, sys_contrllogid,ownertable,ownerid,action, remarks,actionuserid,actionby)
+values ($siteid$, $sys_contrllogid$,$ownertable$,$ownerid$,$action$, $remarks$,$actionuserid$, $actionby$);

+ 2 - 1
src/custom/restcontroller/webmanage/sale/dispatch/dispatch.java

@@ -600,7 +600,8 @@ public class dispatch extends Controller {
             String result =erpDocking.closeErpSainvoice(billno,false,this, row.getLong("sa_dispatchid"));
             if(result.equals("true")){
                 sqlList.add("update sa_dispatch set status='关闭' 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", "自动关闭");

+ 2 - 1
src/custom/service/AftersalesmagAutoRecheckService.java

@@ -102,7 +102,8 @@ public class AftersalesmagAutoRecheckService extends ServiceController {
                     }
                     if (resultobject.getString("errcode").equals("0")) {
                         sqlList.add("update sa_aftersalesmag set status='复核' where sa_aftersalesmagid='" + sa_aftersalesmagid + "' 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_aftersalesmag");
                         sqlFactory.addParameter("ownerid", sa_aftersalesmagid);
                         sqlFactory.addParameter("action", "自动复核");

+ 6 - 3
src/custom/service/DispatchAutoCloseService.java

@@ -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", "自动关闭");

+ 2 - 0
src/custom/service/SQL/数据操作日志新增.sql

@@ -0,0 +1,2 @@
+insert into sys_contrllog (siteid, sys_contrllogid,ownertable,ownerid,action, remarks,actionuserid,actionby)
+values ($siteid$, $sys_contrllogid$,$ownertable$,$ownerid$,$action$, $remarks$,$actionuserid$, $actionby$);