上下游矩阵代码优化

This commit is contained in:
yujh 2024-11-08 17:05:23 +08:00
parent 398e52fd6e
commit fc669650ec

View File

@ -664,7 +664,7 @@ public class Report1Gener {
String querySQL= " SELECT R.PLNAME FROM APP_ACT_COE_PAL_REPOSITORY R " +
" JOIN (" +
" SELECT RELATIONFILEID FROM APP_ACT_COE_PAL_SHAPE_RLAT" +
" WHERE FILEID = ? AND ATTRID = ?" +
" WHERE FILEID = ? AND ATTRID = ? ORDER BY SHAPETEXT" +
" ) S ON R.PLVERSIONID = S.RELATIONFILEID";
if(palRepositoryPropertyModel.getPropertyId().equals("lead_process")){//上游流程
List<RowMap> maps = DBSql.getMaps(querySQL, new Object[]{repositoryModel.getId(), "lead_process"});
@ -674,7 +674,7 @@ public class Report1Gener {
sb.append(map.getString("PLNAME")).append(",");
}
if(sb.length()>0){
sb.deleteCharAt(sb.length());
sb.deleteCharAt(sb.length() -1);
}
_process_tr.put("name",sb.toString());
_process_tr.put("type","上游流程");
@ -687,7 +687,7 @@ public class Report1Gener {
sb.append(map.getString("PLNAME")).append(",");
}
if(sb.length()>0){
sb.deleteCharAt(sb.length());
sb.deleteCharAt(sb.length() -1);
}
_process_tr.put("name",sb.toString());
_process_tr.put("type","下游流程");