diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/controller/UpateFileStateController.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/controller/UpateFileStateController.java index df543142..32425e6c 100644 --- a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/controller/UpateFileStateController.java +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/controller/UpateFileStateController.java @@ -72,7 +72,9 @@ public class UpateFileStateController { * "'WHERE PALREPOSITORYID='" + plId + "'"); } } */ - PALRepositoryCache.getCache().reload(); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plId); + PALRepositoryCache.getCache().put(plId, palRepositoryModel); + SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>"); if(Integer.valueOf(state) == 1){ createPermScopeData(plId , me); @@ -84,7 +86,10 @@ public class UpateFileStateController { + "'"; System.err.println("审批改为设计=======>" + updataSql); count = DBSql.update(updataSql); - PALRepositoryCache.getCache().reload(); + + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plId); + PALRepositoryCache.getCache().put(plId, palRepositoryModel); + SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>"); } else if ("3".equals(type)) { // 重新生成手册 @@ -115,7 +120,10 @@ public class UpateFileStateController { + "'"; System.err.println("停用改设计=======>" + updataSql); count = DBSql.update(updataSql); - PALRepositoryCache.getCache().reload(); + + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plId); + PALRepositoryCache.getCache().put(plId, palRepositoryModel); + SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>"); } } diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/SendReadBycontract.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/SendReadBycontract.java index fe90b104..fece6eac 100644 --- a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/SendReadBycontract.java +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/SendReadBycontract.java @@ -107,7 +107,7 @@ public class SendReadBycontract implements IJob { //待阅更新已读记录 if("3".equals(logType)) { String dateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()); - RowMap map = DBSql.getMap("SELECT * FROM BO_ACT_DATAID WHERE PROCESSID = '"+processInstId+"' AND USER_ID = '"+userid+"' AND READSTATE = '已读'"); + RowMap map = DBSql.getMap("SELECT READCOUNT FROM BO_ACT_DATAID WHERE PROCESSID = '"+processInstId+"' AND USER_ID = '"+userid+"' AND READSTATE = '已读'"); if(null!=map) { int readCount = map.getInt("READCOUNT")+1; DBSql.update("UPDATE BO_ACT_DATAID SET READSTATE = '已读',READTIMES = '"+dateTime+"',READCOUNT = "+readCount+" WHERE PROCESSID = '"+processInstId+"' AND USER_ID = '"+userid+"'"); diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/GetNodesUtil.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/GetNodesUtil.java index c0085e7c..1c6672fd 100644 --- a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/GetNodesUtil.java +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/GetNodesUtil.java @@ -82,7 +82,7 @@ public class GetNodesUtil { sqlParams = new Object[]{fileID}; RowMap parentFile = DBSql.getMap("SELECT FRAMEID,FRAMENAME,FRAMELEVEL,FRAMEPARENTID,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMEID=?", sqlParams); if (null!=parentFile && !parentFile.isEmpty()) { - if (parentFile.getInt("FRAMELEVEL")<=3) { + if (parentFile.getInt("FRAMELEVEL")<=4) { fileIDMaps.add(parentFile); if (parentFile.getInt("FRAMELEVEL")>1) { fileID = parentFile.getString("FRAMEPARENTID");