From f6703d2d2c1604f7f13a515f20698c7047fb6a1a Mon Sep 17 00:00:00 2001 From: Mr-wang Date: Thu, 24 Aug 2023 21:29:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=83=A8=E9=97=A8=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E9=87=8D=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/actionsoft/apps/coe/pal/datamigration/AesUtil.java | 3 --- .../user/apps/yili/reportform/job/SynFileStateJob.java | 6 +++--- .../user/apps/yili/reportform/service/DataViewService.java | 5 ++++- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/AesUtil.java b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/AesUtil.java index 6a20b193..3b635ab6 100644 --- a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/AesUtil.java +++ b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/AesUtil.java @@ -83,7 +83,4 @@ public class AesUtil { System.out.println("解密后:" + AesUtil.decrypt(URLDecoder.decode(message), key));*/ } - - - } diff --git a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/job/SynFileStateJob.java b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/job/SynFileStateJob.java index eaad47c7..32ddfcb1 100644 --- a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/job/SynFileStateJob.java +++ b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/job/SynFileStateJob.java @@ -38,7 +38,7 @@ public class SynFileStateJob implements IJob { Map queryRepositoryAttributeById = new RepositoryAttribute().queryRepositoryAttributeById(id); if (null != queryRepositoryAttributeById && !queryRepositoryAttributeById.isEmpty()) { // 发布部门 - JSONObject Issuing_department = queryRepositoryAttributeById.get("Issuing_department"); + JSONObject Issuing_department = queryRepositoryAttributeById.get("Issuing_department"); if (null != Issuing_department && !Issuing_department.equals("")) { JSONArray PUBDEPTJA = Issuing_department.getJSONArray("value"); SDK.getLogAPI().consoleInfo(Issuing_department.toString()); @@ -46,9 +46,9 @@ public class SynFileStateJob implements IJob { for (Object PUBDEPTO : PUBDEPTJA) { JSONObject PUBDEPTJO = JSONObject.parseObject(String.valueOf(PUBDEPTO)); String dempId = PUBDEPTJO.getString("id"); - count2 += DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT6 = '"+dempId+"' WHERE ID = '"+id+"'"); - + count2 += DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT6 = '"+dempId+"' WHERE ID = '"+id+"'"); } + } } } diff --git a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/DataViewService.java b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/DataViewService.java index 33e1b365..55a32377 100644 --- a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/DataViewService.java +++ b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/DataViewService.java @@ -1665,12 +1665,15 @@ public class DataViewService extends ActionWeb { List maps = null; if (json.size() < 450) { String sqltt = "SELECT ID AS FILEID,PLNAME,PLPARENTID,PLMETHODID,PLLEVEL,PLVERSIONID,PLORDERINDEX,EXT3 as POLICYTYPE FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND EXT5 = '1' AND EXT6 IN (" - +sqlParm+ ") OR EXT6 LIKE '%"+sqlParm+"%' AND PLMETHODID in ('process.epc','control.policy','process.flowchart')"; + +sqlParm+ ") AND PLMETHODID in ('process.epc','control.policy','process.flowchart')"; + SDK.getLogAPI().consoleInfo("sql11111111111111>>>>>>>>>>>>>>"+sqltt); maps = DBSql.getMaps(sqltt); } else { String sqltt = "SELECT ID AS FILEID,PLNAME,PLPARENTID,PLMETHODID,PLLEVEL,PLVERSIONID,PLORDERINDEX,EXT3 as POLICYTYPE FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND ISSTOP =0 AND EXT5 = '1' AND EXT6 IS NOT NULL AND PLMETHODID in ('process.epc','control.policy','process.flowchart')"; + SDK.getLogAPI().consoleInfo("sql>>>>>>>>>>>>>>"+sqltt); maps = DBSql.getMaps(sqltt); } + SDK.getLogAPI().consoleInfo(""); for (RowMap rowMap : maps) { String id = rowMap.getString("FILEID"); PALRepositoryModel model = PALRepositoryCache.getCache().get(id);