|
|
@@ -56,6 +56,7 @@ public class CockpitServiceImpl implements CockpitService {
|
|
|
// String orgPath = org.getPath();
|
|
|
List<WebSafetyCheckVo> list = cockpitMapper.safetyCheck(date, DateUtil.endOfDay(new Date()), org.getPath());
|
|
|
List<SysDictData> dicts = remoteDictDataService.selectDictByeType("check_type", SecurityConstants.INNER);
|
|
|
+ dicts.sort(Comparator.comparing(SysDictData::getDictSort));
|
|
|
List<WebSafetyCheckVo> r = dicts.stream().map(d -> {
|
|
|
Optional<WebSafetyCheckVo> voOpt = list.stream().filter(i -> ObjectUtil.equal(i.getType(), d.getDictValue())).findFirst();
|
|
|
WebSafetyCheckVo vo;
|
|
|
@@ -64,8 +65,31 @@ public class CockpitServiceImpl implements CockpitService {
|
|
|
} else {
|
|
|
vo = new WebSafetyCheckVo();
|
|
|
}
|
|
|
-
|
|
|
- vo.setType(d.getDictLabel());
|
|
|
+ String label = d.getDictLabel();
|
|
|
+ switch (d.getDictValue()) {
|
|
|
+ case "1":
|
|
|
+ label = "省联社检查";
|
|
|
+ break;
|
|
|
+ case "2":
|
|
|
+ label = "办事处检查";
|
|
|
+ break;
|
|
|
+ case "3":
|
|
|
+ label = "网点自查";
|
|
|
+ break;
|
|
|
+ case "4":
|
|
|
+ label = "全面检查";
|
|
|
+ break;
|
|
|
+ case "5":
|
|
|
+ label = "阶段性检查";
|
|
|
+ break;
|
|
|
+ case "6":
|
|
|
+ label = "专项检查";
|
|
|
+ break;
|
|
|
+ case "7":
|
|
|
+ label = "其它检查";
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ vo.setType(label);
|
|
|
return vo;
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
|
@@ -103,6 +127,7 @@ public class CockpitServiceImpl implements CockpitService {
|
|
|
WebDrillInfoVo vo = new WebDrillInfoVo();
|
|
|
vo.setOrgName(i.getOrgName());
|
|
|
vo.setTotal((int) i.getTaskTotal());
|
|
|
+ vo.setCompleted((int) i.getCompletedCount());
|
|
|
vo.setCompletedRate(i.getCompletedRate());
|
|
|
return vo;
|
|
|
}).collect(Collectors.toList());
|
|
|
@@ -144,7 +169,6 @@ public class CockpitServiceImpl implements CockpitService {
|
|
|
return r;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 机构信息
|
|
|
*
|