关联属性增加所有排序
This commit is contained in:
parent
994db05838
commit
9b483442c7
Binary file not shown.
@ -40,14 +40,14 @@ public class batchUpdateSort implements IJob {
|
||||
|
||||
int update = DBSql.update(open, str1);
|
||||
if (update > 0) {
|
||||
SDK.getLogAPI().consoleInfo("[成功]刷新绩效图EXT2字段内容,绩效图[" + rowMap1.getString("PLNAME") + "][" + rowMap1.getString("ID") + "],改为[" + processList.toString() + "]");
|
||||
SDK.getLogAPI().consoleInfo("[成功]刷新末级流程绩效图EXT2字段内容,绩效图[" + rowMap1.getString("PLNAME") + "][" + rowMap1.getString("ID") + "],改为[" + processList.toString() + "]");
|
||||
b++;
|
||||
} else {
|
||||
SDK.getLogAPI().consoleErr("[失败]刷新绩效图EXT2字段内容,绩效图[" + rowMap1.getString("PLNAME") + "][" + rowMap1.getString("ID") + "],改为[" + processList.toString() + "]");
|
||||
SDK.getLogAPI().consoleErr("[失败]刷新末级流程绩效图EXT2字段内容,绩效图[" + rowMap1.getString("PLNAME") + "][" + rowMap1.getString("ID") + "],改为[" + processList.toString() + "]");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
SDK.getLogAPI().consoleErr("[失败]刷新绩效图EXT2字段内容,绩效图[" + rowMap1.getString("PLNAME") + "][" +rowMap1.getString("ID") + "],改为[" + processList.toString() + "],错误信息:" + e.getMessage());
|
||||
SDK.getLogAPI().consoleErr("[失败]刷新末级流程绩效图EXT2字段内容,绩效图[" + rowMap1.getString("PLNAME") + "][" +rowMap1.getString("ID") + "],改为[" + processList.toString() + "],错误信息:" + e.getMessage());
|
||||
}
|
||||
|
||||
|
||||
@ -56,6 +56,8 @@ public class batchUpdateSort implements IJob {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
SDK.getLogAPI().consoleInfo("[完成]刷新绩效图图EXT2字段内容,总共更新[" + b + "]条");
|
||||
if (b > 0) {
|
||||
|
||||
Binary file not shown.
@ -516,6 +516,9 @@ public class Report1Gener {
|
||||
//相关文件 R_relevant_flies
|
||||
JSONArray relevant_flies = new JSONArray(); //组织职责Table
|
||||
List<DesignerShapeRelationModel> relationList2 = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "R_relevant_flies");
|
||||
|
||||
relationList2.sort(Comparator.comparing(DesignerShapeRelationModel::getRelationShapeText));
|
||||
|
||||
int count = 0;
|
||||
for (DesignerShapeRelationModel relation : relationList2) {
|
||||
String relationFileId = relation.getRelationFileId();// 支持或相关文件的ID
|
||||
|
||||
Binary file not shown.
@ -5423,9 +5423,7 @@ public class PALRepositoryQueryAPIManager {
|
||||
if ("relation".equals(attributeModel.getType())) {
|
||||
List<String> inputValueList = new ArrayList<>();
|
||||
List<DesignerShapeRelationModel> list = DesignerShapeRelationCache.getListByAttrId(plModel.getId(), "", attributeModel.getKey());
|
||||
if(attributeModel.getKey().equals("support_files")){
|
||||
list.sort(Comparator.comparing(DesignerShapeRelationModel::getRelationShapeText));
|
||||
}
|
||||
if (list != null && list.size() > 0) {
|
||||
// 判断是否有重复数据,进行重复过滤
|
||||
Set<String> tempStrs = new HashSet<>();
|
||||
|
||||
@ -966,9 +966,7 @@ public class DesignerRelationShapeWeb extends ActionWeb {
|
||||
}
|
||||
String tmpStr = StringUtils.join(versionIds, ",");
|
||||
List<DesignerShapeRelationModel> list = dao.getModelListByShapeIdAndRelationShapeId(ruuid, shapeId, null, tmpStr);
|
||||
if(attrId.equals("support_files")){
|
||||
list.sort(Comparator.comparing(DesignerShapeRelationModel::getRelationShapeText));
|
||||
}
|
||||
for (DesignerShapeRelationModel model : list) {
|
||||
if (ids.contains(model.getRelationFileId())) {
|
||||
continue;
|
||||
|
||||
@ -2534,10 +2534,7 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
if ("relation".equals(attributeModel.getType())) {
|
||||
List<DesignerShapeRelationModel> list = DesignerShapeRelationCache.getListByAttrId(uuid, "", attributeModel.getKey());
|
||||
|
||||
//如果类型为支持文件根据时间戳排序
|
||||
if(attributeModel.getKey().equals("support_files")){
|
||||
list.sort(Comparator.comparing(DesignerShapeRelationModel::getRelationShapeText));
|
||||
}
|
||||
|
||||
if (list != null && list.size() > 0) {
|
||||
// 判断是否有重复数据,进行重复过滤
|
||||
|
||||
Binary file not shown.
@ -714,6 +714,10 @@ public class Report1Gener {
|
||||
//相关文件 related_files
|
||||
JSONArray related_files = new JSONArray(); //组织职责Table
|
||||
List<DesignerShapeRelationModel> relationList2 = DesignerShapeRelationCache.getListByAttrId(repositoryModel.getId(), "", "related_files");
|
||||
|
||||
|
||||
relationList2.sort(Comparator.comparing(DesignerShapeRelationModel::getRelationShapeText));
|
||||
|
||||
int count = 0;
|
||||
for (DesignerShapeRelationModel relation : relationList2) {
|
||||
String relationFileId = relation.getRelationFileId();// 支持或相关文件的ID
|
||||
|
||||
Loading…
Reference in New Issue
Block a user