发布流程结束后插入ext6扩展字段
This commit is contained in:
parent
570cb414c1
commit
385a40a8c9
@ -10,6 +10,8 @@ import java.util.concurrent.ExecutorService;
|
|||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
import com.actionsoft.apps.coe.pal.datamigration.RepositoryAttribute;
|
||||||
|
import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory;
|
||||||
import com.actionsoft.exception.AWSDataAccessException;
|
import com.actionsoft.exception.AWSDataAccessException;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.dom4j.Document;
|
import org.dom4j.Document;
|
||||||
@ -473,6 +475,37 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
|||||||
try {
|
try {
|
||||||
String fileId = bo.getString("PUBLISHFILEID");
|
String fileId = bo.getString("PUBLISHFILEID");
|
||||||
DBSql.update(open,"UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '1' WHERE ID = '"+fileId+"'");
|
DBSql.update(open,"UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '1' WHERE ID = '"+fileId+"'");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新部门视图EXT6字段
|
||||||
|
*/
|
||||||
|
Map<String, JSONObject> queryRepositoryAttributeById = new RepositoryAttribute().queryRepositoryAttributeById(fileId);
|
||||||
|
if (null != queryRepositoryAttributeById && !queryRepositoryAttributeById.isEmpty()) {
|
||||||
|
// 发布部门
|
||||||
|
String dempId = "";
|
||||||
|
JSONObject Issuing_department = queryRepositoryAttributeById.get("Issuing_department");
|
||||||
|
if (null != Issuing_department && !Issuing_department.equals("")) {
|
||||||
|
JSONArray PUBDEPTJA = Issuing_department.getJSONArray("value");
|
||||||
|
SDK.getLogAPI().consoleInfo(Issuing_department.toString());
|
||||||
|
if (null != PUBDEPTJA && !PUBDEPTJA.isEmpty()) {
|
||||||
|
for (Object PUBDEPTO : PUBDEPTJA) {
|
||||||
|
JSONObject PUBDEPTJO = JSONObject.parseObject(String.valueOf(PUBDEPTO));
|
||||||
|
dempId += PUBDEPTJO.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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -484,6 +517,37 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
|||||||
String changefileIdNew = bo.getString("CHANGEDFILEIDNEW");
|
String changefileIdNew = bo.getString("CHANGEDFILEIDNEW");
|
||||||
DBSql.update(open,"UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '0' WHERE ID = '"+changefileId+"'");
|
DBSql.update(open,"UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '0' WHERE ID = '"+changefileId+"'");
|
||||||
DBSql.update(open,"UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '1' WHERE ID = '"+changefileIdNew+"'");
|
DBSql.update(open,"UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '1' WHERE ID = '"+changefileIdNew+"'");
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新部门视图EXT6字段
|
||||||
|
*/
|
||||||
|
Map<String, JSONObject> queryRepositoryAttributeById = new RepositoryAttribute().queryRepositoryAttributeById(changefileIdNew);
|
||||||
|
if (null != queryRepositoryAttributeById && !queryRepositoryAttributeById.isEmpty()) {
|
||||||
|
// 发布部门
|
||||||
|
String dempId = "";
|
||||||
|
JSONObject Issuing_department = queryRepositoryAttributeById.get("Issuing_department");
|
||||||
|
if (null != Issuing_department && !Issuing_department.equals("")) {
|
||||||
|
JSONArray PUBDEPTJA = Issuing_department.getJSONArray("value");
|
||||||
|
SDK.getLogAPI().consoleInfo(Issuing_department.toString());
|
||||||
|
if (null != PUBDEPTJA && !PUBDEPTJA.isEmpty()) {
|
||||||
|
for (Object PUBDEPTO : PUBDEPTJA) {
|
||||||
|
JSONObject PUBDEPTJO = JSONObject.parseObject(String.valueOf(PUBDEPTO));
|
||||||
|
dempId += PUBDEPTJO.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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -498,6 +562,11 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 推送到EHSQ
|
* 推送到EHSQ
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user