解决部门视图重复问题

This commit is contained in:
Mr-wang 2023-08-24 21:29:57 +08:00
parent 44fe4e5146
commit f6703d2d2c
3 changed files with 7 additions and 7 deletions

View File

@ -83,7 +83,4 @@ public class AesUtil {
System.out.println("解密后:" + AesUtil.decrypt(URLDecoder.decode(message), key));*/
}
}

View File

@ -38,7 +38,7 @@ public class SynFileStateJob implements IJob {
Map<String, JSONObject> queryRepositoryAttributeById = new RepositoryAttribute().queryRepositoryAttributeById(id);
if (null != queryRepositoryAttributeById && !queryRepositoryAttributeById.isEmpty()) {
// 发布部门
JSONObject Issuing_department = queryRepositoryAttributeById.get("Issuing_department");
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());
@ -46,9 +46,9 @@ public class SynFileStateJob implements IJob {
for (Object PUBDEPTO : PUBDEPTJA) {
JSONObject PUBDEPTJO = JSONObject.parseObject(String.valueOf(PUBDEPTO));
String dempId = PUBDEPTJO.getString("id");
count2 += DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT6 = '"+dempId+"' WHERE ID = '"+id+"'");
count2 += DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT6 = '"+dempId+"' WHERE ID = '"+id+"'");
}
}
}
}

View File

@ -1665,12 +1665,15 @@ public class DataViewService extends ActionWeb {
List<RowMap> maps = null;
if (json.size() < 450) {
String sqltt = "SELECT ID AS FILEID,PLNAME,PLPARENTID,PLMETHODID,PLLEVEL,PLVERSIONID,PLORDERINDEX,EXT3 as POLICYTYPE FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND EXT5 = '1' AND EXT6 IN ("
+sqlParm+ ") OR EXT6 LIKE '%"+sqlParm+"%' AND PLMETHODID in ('process.epc','control.policy','process.flowchart')";
+sqlParm+ ") AND PLMETHODID in ('process.epc','control.policy','process.flowchart')";
SDK.getLogAPI().consoleInfo("sql11111111111111>>>>>>>>>>>>>>"+sqltt);
maps = DBSql.getMaps(sqltt);
} else {
String sqltt = "SELECT ID AS FILEID,PLNAME,PLPARENTID,PLMETHODID,PLLEVEL,PLVERSIONID,PLORDERINDEX,EXT3 as POLICYTYPE FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND ISSTOP =0 AND EXT5 = '1' AND EXT6 IS NOT NULL AND PLMETHODID in ('process.epc','control.policy','process.flowchart')";
SDK.getLogAPI().consoleInfo("sql>>>>>>>>>>>>>>"+sqltt);
maps = DBSql.getMaps(sqltt);
}
SDK.getLogAPI().consoleInfo("");
for (RowMap rowMap : maps) {
String id = rowMap.getString("FILEID");
PALRepositoryModel model = PALRepositoryCache.getCache().get(id);