修改状态代码提交
This commit is contained in:
parent
184ee74f10
commit
034c0bea81
@ -72,7 +72,9 @@ public class UpateFileStateController {
|
|||||||
* "'WHERE PALREPOSITORYID='" + plId + "'"); } }
|
* "'WHERE PALREPOSITORYID='" + plId + "'"); } }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
PALRepositoryCache.getCache().reload();
|
PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plId);
|
||||||
|
PALRepositoryCache.getCache().put(plId, palRepositoryModel);
|
||||||
|
|
||||||
SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>");
|
SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>");
|
||||||
if(Integer.valueOf(state) == 1){
|
if(Integer.valueOf(state) == 1){
|
||||||
createPermScopeData(plId , me);
|
createPermScopeData(plId , me);
|
||||||
@ -84,7 +86,10 @@ public class UpateFileStateController {
|
|||||||
+ "'";
|
+ "'";
|
||||||
System.err.println("审批改为设计=======>" + updataSql);
|
System.err.println("审批改为设计=======>" + updataSql);
|
||||||
count = DBSql.update(updataSql);
|
count = DBSql.update(updataSql);
|
||||||
PALRepositoryCache.getCache().reload();
|
|
||||||
|
PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plId);
|
||||||
|
PALRepositoryCache.getCache().put(plId, palRepositoryModel);
|
||||||
|
|
||||||
SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>");
|
SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>");
|
||||||
} else if ("3".equals(type)) {
|
} else if ("3".equals(type)) {
|
||||||
// 重新生成手册
|
// 重新生成手册
|
||||||
@ -115,7 +120,10 @@ public class UpateFileStateController {
|
|||||||
+ "'";
|
+ "'";
|
||||||
System.err.println("停用改设计=======>" + updataSql);
|
System.err.println("停用改设计=======>" + updataSql);
|
||||||
count = DBSql.update(updataSql);
|
count = DBSql.update(updataSql);
|
||||||
PALRepositoryCache.getCache().reload();
|
|
||||||
|
PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plId);
|
||||||
|
PALRepositoryCache.getCache().put(plId, palRepositoryModel);
|
||||||
|
|
||||||
SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>");
|
SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -107,7 +107,7 @@ public class SendReadBycontract implements IJob {
|
|||||||
//待阅更新已读记录
|
//待阅更新已读记录
|
||||||
if("3".equals(logType)) {
|
if("3".equals(logType)) {
|
||||||
String dateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
|
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) {
|
if(null!=map) {
|
||||||
int readCount = map.getInt("READCOUNT")+1;
|
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+"'");
|
DBSql.update("UPDATE BO_ACT_DATAID SET READSTATE = '已读',READTIMES = '"+dateTime+"',READCOUNT = "+readCount+" WHERE PROCESSID = '"+processInstId+"' AND USER_ID = '"+userid+"'");
|
||||||
|
|||||||
@ -82,7 +82,7 @@ public class GetNodesUtil {
|
|||||||
sqlParams = new Object[]{fileID};
|
sqlParams = new Object[]{fileID};
|
||||||
RowMap parentFile = DBSql.getMap("SELECT FRAMEID,FRAMENAME,FRAMELEVEL,FRAMEPARENTID,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMEID=?", sqlParams);
|
RowMap parentFile = DBSql.getMap("SELECT FRAMEID,FRAMENAME,FRAMELEVEL,FRAMEPARENTID,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMEID=?", sqlParams);
|
||||||
if (null!=parentFile && !parentFile.isEmpty()) {
|
if (null!=parentFile && !parentFile.isEmpty()) {
|
||||||
if (parentFile.getInt("FRAMELEVEL")<=3) {
|
if (parentFile.getInt("FRAMELEVEL")<=4) {
|
||||||
fileIDMaps.add(parentFile);
|
fileIDMaps.add(parentFile);
|
||||||
if (parentFile.getInt("FRAMELEVEL")>1) {
|
if (parentFile.getInt("FRAMELEVEL")>1) {
|
||||||
fileID = parentFile.getString("FRAMEPARENTID");
|
fileID = parentFile.getString("FRAMEPARENTID");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user