修改状态代码提交

This commit is contained in:
zhal 2023-07-31 20:00:33 +08:00
parent 184ee74f10
commit 034c0bea81
3 changed files with 13 additions and 5 deletions

View File

@ -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("更新状态后刷新缓存结束===========>");
}
}

View File

@ -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+"'");

View File

@ -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");