批量修改状态缓存
This commit is contained in:
parent
034c0bea81
commit
feef39e96b
@ -1,5 +1,6 @@
|
|||||||
package com.awspaas.user.apps.app.controller;
|
package com.awspaas.user.apps.app.controller;
|
||||||
|
|
||||||
|
import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory;
|
||||||
import com.actionsoft.bpms.bo.engine.BO;
|
import com.actionsoft.bpms.bo.engine.BO;
|
||||||
import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance;
|
import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance;
|
||||||
import com.actionsoft.bpms.commons.database.RowMap;
|
import com.actionsoft.bpms.commons.database.RowMap;
|
||||||
@ -72,9 +73,10 @@ public class UpateFileStateController {
|
|||||||
* "'WHERE PALREPOSITORYID='" + plId + "'"); } }
|
* "'WHERE PALREPOSITORYID='" + plId + "'"); } }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plId);
|
PALRepositoryModel plModel = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getInstance(plId);
|
||||||
PALRepositoryCache.getCache().put(plId, palRepositoryModel);
|
if (plModel != null) {
|
||||||
|
PALRepositoryCache.getCache().put(plId, plModel);
|
||||||
|
}
|
||||||
SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>");
|
SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>");
|
||||||
if(Integer.valueOf(state) == 1){
|
if(Integer.valueOf(state) == 1){
|
||||||
createPermScopeData(plId , me);
|
createPermScopeData(plId , me);
|
||||||
@ -87,9 +89,10 @@ public class UpateFileStateController {
|
|||||||
System.err.println("审批改为设计=======>" + updataSql);
|
System.err.println("审批改为设计=======>" + updataSql);
|
||||||
count = DBSql.update(updataSql);
|
count = DBSql.update(updataSql);
|
||||||
|
|
||||||
PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plId);
|
PALRepositoryModel plModel = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getInstance(plId);
|
||||||
PALRepositoryCache.getCache().put(plId, palRepositoryModel);
|
if (plModel != null) {
|
||||||
|
PALRepositoryCache.getCache().put(plId, plModel);
|
||||||
|
}
|
||||||
SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>");
|
SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>");
|
||||||
} else if ("3".equals(type)) {
|
} else if ("3".equals(type)) {
|
||||||
// 重新生成手册
|
// 重新生成手册
|
||||||
@ -121,8 +124,11 @@ public class UpateFileStateController {
|
|||||||
System.err.println("停用改设计=======>" + updataSql);
|
System.err.println("停用改设计=======>" + updataSql);
|
||||||
count = DBSql.update(updataSql);
|
count = DBSql.update(updataSql);
|
||||||
|
|
||||||
PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plId);
|
PALRepositoryModel plModel = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getInstance(plId);
|
||||||
PALRepositoryCache.getCache().put(plId, palRepositoryModel);
|
if (plModel != null) {
|
||||||
|
PALRepositoryCache.getCache().put(plId, plModel);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>");
|
SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user