更改发布流程结束赋值ext6逻辑
This commit is contained in:
parent
b36ea97e06
commit
97c1ee9dc5
@ -476,10 +476,33 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
||||
String fileId = bo.getString("PUBLISHFILEID");
|
||||
DBSql.update(open,"UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '1' WHERE ID = '"+fileId+"'");
|
||||
|
||||
|
||||
/**
|
||||
* 更新部门视图EXT6字段
|
||||
*/
|
||||
Map<String, JSONObject> queryRepositoryAttributeById = new RepositoryAttribute().queryRepositoryAttributeById(fileId);
|
||||
* 更新部门视图EXT6字段
|
||||
*/
|
||||
List<RowMap> rlatRowMap=DBSql.getMaps("SELECT RELATIONSHAPETEXT FROM APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '"+fileId+"' and ATTRID='Issuing_department'");
|
||||
if(rlatRowMap.size()>0){
|
||||
// 发布部门
|
||||
String dempId = "";
|
||||
for(RowMap oneRowMap:rlatRowMap){
|
||||
String relationshapetext=oneRowMap.getString("RELATIONSHAPETEXT");
|
||||
JSONObject js=JSONObject.parseObject(relationshapetext);
|
||||
dempId += js.getString("id") + ",";
|
||||
}
|
||||
dempId = dempId.substring(0, dempId.length() - 1);
|
||||
|
||||
int count = DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT6 = TO_CLOB('" + dempId + "') WHERE ID = '" + fileId + "'");
|
||||
|
||||
PALRepositoryModel plModel = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getInstance(fileId);
|
||||
if (plModel != null) {
|
||||
PALRepositoryCache.getCache().put(fileId, plModel);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*Map<String, JSONObject> queryRepositoryAttributeById = new RepositoryAttribute().queryRepositoryAttributeById(fileId);
|
||||
if (null != queryRepositoryAttributeById && !queryRepositoryAttributeById.isEmpty()) {
|
||||
// 发布部门
|
||||
String dempId = "";
|
||||
@ -503,7 +526,7 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
@ -522,7 +545,7 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
||||
/**
|
||||
* 更新部门视图EXT6字段
|
||||
*/
|
||||
Map<String, JSONObject> queryRepositoryAttributeById = new RepositoryAttribute().queryRepositoryAttributeById(changefileIdNew);
|
||||
/* Map<String, JSONObject> queryRepositoryAttributeById = new RepositoryAttribute().queryRepositoryAttributeById(changefileIdNew);
|
||||
if (null != queryRepositoryAttributeById && !queryRepositoryAttributeById.isEmpty()) {
|
||||
// 发布部门
|
||||
String dempId = "";
|
||||
@ -545,6 +568,29 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
||||
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
/**
|
||||
* 更新部门视图EXT6字段
|
||||
*/
|
||||
List<RowMap> rlatRowMap=DBSql.getMaps("SELECT RELATIONSHAPETEXT FROM APP_ACT_COE_PAL_SHAPE_RLAT where FILEID = '"+changefileIdNew+"' and ATTRID='Issuing_department'");
|
||||
if(rlatRowMap.size()>0){
|
||||
// 发布部门
|
||||
String dempId = "";
|
||||
for(RowMap oneRowMap:rlatRowMap){
|
||||
String relationshapetext=oneRowMap.getString("RELATIONSHAPETEXT");
|
||||
JSONObject js=JSONObject.parseObject(relationshapetext);
|
||||
dempId += js.getString("id") + ",";
|
||||
}
|
||||
dempId = dempId.substring(0, dempId.length() - 1);
|
||||
|
||||
int count = DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT6 = TO_CLOB('" + dempId + "') WHERE ID = '" + changefileIdNew + "'");
|
||||
|
||||
PALRepositoryModel plModel = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getInstance(changefileIdNew);
|
||||
if (plModel != null) {
|
||||
PALRepositoryCache.getCache().put(changefileIdNew, plModel);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user