Jelajahi Sumber

发货单自动关闭bug修复

郭齐峰 3 tahun lalu
induk
melakukan
d30eae3f66
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/custom/service/DispatchAutoCloseService.java

+ 1 - 1
src/custom/service/DispatchAutoCloseService.java

@@ -103,7 +103,7 @@ public class DispatchAutoCloseService extends ServiceController {
                 }
 
                 if(resultobject.getString("errcode").equals("0")){
-                    sqlList.add("update sa_dispatch set status='关闭' where sa_dispatchid='"+sa_dispatchid+"' and siteid='CCYOSG'");
+                    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.addParameter("ownertable", "sa_dispatch");
                     sqlFactory.addParameter("ownerid", sa_dispatchid);