|
|
@ -469,7 +469,17 @@ public class PatrolTaskController extends BaseController { |
|
|
newList = new ArrayList<>(keyPatrolData.values()); |
|
|
newList = new ArrayList<>(keyPatrolData.values()); |
|
|
if ("1".equals(patrolTaskStatus.getAbnormal())) { |
|
|
if ("1".equals(patrolTaskStatus.getAbnormal())) { |
|
|
// 异常置顶 |
|
|
// 异常置顶 |
|
|
newList.sort(Comparator.comparing(PatrolData::getPointStatus)); |
|
|
|
|
|
|
|
|
newList.sort(Comparator.comparingInt(obj -> { |
|
|
|
|
|
switch (obj.getPointStatus()) { |
|
|
|
|
|
case "0": return 1; // 异常 |
|
|
|
|
|
case "5": return 2; // 确认 |
|
|
|
|
|
case "4": return 3; // 跟踪(告警) |
|
|
|
|
|
case "1": return 4; // 正常 |
|
|
|
|
|
case "2": return 5; // 待人工确认 |
|
|
|
|
|
case "3": return 6; // 已撤销(忽略) |
|
|
|
|
|
default: return 7; |
|
|
|
|
|
} |
|
|
|
|
|
})); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
PageDomain pageDomain = TableSupport.buildPageRequest(); |
|
|
PageDomain pageDomain = TableSupport.buildPageRequest(); |
|
|
@ -3275,6 +3285,7 @@ public class PatrolTaskController extends BaseController { |
|
|
|
|
|
|
|
|
Map<String, String> map1 = new HashMap<>(); |
|
|
Map<String, String> map1 = new HashMap<>(); |
|
|
if (!listPointStatus.contains(item.getPointStatus())) { |
|
|
if (!listPointStatus.contains(item.getPointStatus())) { |
|
|
|
|
|
// 点位状态 0-异常 1-正常 2-待人工确认 3-已撤销(忽略) 4-跟踪(告警) 5-确认(告警) |
|
|
if (StringUtils.isNotEmpty(item.getPointStatus())) { |
|
|
if (StringUtils.isNotEmpty(item.getPointStatus())) { |
|
|
if (item.getPointStatus().equals("1")) { |
|
|
if (item.getPointStatus().equals("1")) { |
|
|
map1.put("value", "1"); |
|
|
map1.put("value", "1"); |
|
|
@ -3286,6 +3297,26 @@ public class PatrolTaskController extends BaseController { |
|
|
map1.put("label", MessageUtils.get("异常")); |
|
|
map1.put("label", MessageUtils.get("异常")); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (item.getPointStatus().equals("2")) { |
|
|
|
|
|
map1.put("value", "2"); |
|
|
|
|
|
map1.put("label", MessageUtils.get("待人工确认")); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (item.getPointStatus().equals("3")) { |
|
|
|
|
|
map1.put("value", "3"); |
|
|
|
|
|
map1.put("label", MessageUtils.get("忽略")); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (item.getPointStatus().equals("4")) { |
|
|
|
|
|
map1.put("value", "4"); |
|
|
|
|
|
map1.put("label", MessageUtils.get("跟踪")); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (item.getPointStatus().equals("5")) { |
|
|
|
|
|
map1.put("value", "5"); |
|
|
|
|
|
map1.put("label", MessageUtils.get("确认")); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
listPointStatus.add(item.getPointStatus()); |
|
|
listPointStatus.add(item.getPointStatus()); |
|
|
mapList.add(map1); |
|
|
mapList.add(map1); |
|
|
} else { |
|
|
} else { |
|
|
@ -3342,6 +3373,26 @@ public class PatrolTaskController extends BaseController { |
|
|
map1.put("label", MessageUtils.get("异常")); |
|
|
map1.put("label", MessageUtils.get("异常")); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (item.getPointStatus().equals("2")) { |
|
|
|
|
|
map1.put("value", "2"); |
|
|
|
|
|
map1.put("label", MessageUtils.get("待人工确认")); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (item.getPointStatus().equals("3")) { |
|
|
|
|
|
map1.put("value", "3"); |
|
|
|
|
|
map1.put("label", MessageUtils.get("忽略")); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (item.getPointStatus().equals("4")) { |
|
|
|
|
|
map1.put("value", "4"); |
|
|
|
|
|
map1.put("label", MessageUtils.get("跟踪")); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (item.getPointStatus().equals("5")) { |
|
|
|
|
|
map1.put("value", "5"); |
|
|
|
|
|
map1.put("label", MessageUtils.get("确认")); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
listPointStatus.add(item.getPointStatus()); |
|
|
listPointStatus.add(item.getPointStatus()); |
|
|
mapList.add(map1); |
|
|
mapList.add(map1); |
|
|
} |
|
|
} |
|
|
|