|
@@ -144,13 +144,13 @@ public class WarnManageServiceImpl implements IWarnManageService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//插入当月部门数据
|
|
//插入当月部门数据
|
|
- Map<Long, List<WarnManage>> deptNameCollect = warnManages.stream().filter( e ->e.getDeptId() != null).collect(Collectors.groupingBy(WarnManage::getDeptId));
|
|
|
|
|
|
+ Map<Long, List<WarnManage>> deptNameCollect = warnManages.stream().filter(e -> e.getDeptId() != null).collect(Collectors.groupingBy(WarnManage::getDeptId));
|
|
List<Map<String, Object>> finalDeptNameMapList = new ArrayList<>();
|
|
List<Map<String, Object>> finalDeptNameMapList = new ArrayList<>();
|
|
deptNameCollect.forEach((deptId, v) -> {
|
|
deptNameCollect.forEach((deptId, v) -> {
|
|
Map<String, Object> deptMap = new HashMap<>(3);
|
|
Map<String, Object> deptMap = new HashMap<>(3);
|
|
deptMap.put("deptName", v.get(0).getDeptName());
|
|
deptMap.put("deptName", v.get(0).getDeptName());
|
|
deptMap.put("warnNum", String.valueOf(v.size()));
|
|
deptMap.put("warnNum", String.valueOf(v.size()));
|
|
- deptMap.put("deptId", deptId);
|
|
|
|
|
|
+ deptMap.put("deptId", deptId.toString());
|
|
finalDeptNameMapList.add(deptMap);
|
|
finalDeptNameMapList.add(deptMap);
|
|
});
|
|
});
|
|
deptNameMapList = finalDeptNameMapList;
|
|
deptNameMapList = finalDeptNameMapList;
|
|
@@ -177,13 +177,13 @@ public class WarnManageServiceImpl implements IWarnManageService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//插入上月部门数据
|
|
//插入上月部门数据
|
|
- Map<Long, List<WarnManage>> deptNameCollect = warnManagesLast.stream().filter( e ->e.getDeptId() != null).collect(Collectors.groupingBy(WarnManage::getDeptId));
|
|
|
|
|
|
+ Map<Long, List<WarnManage>> deptNameCollect = warnManagesLast.stream().filter(e -> e.getDeptId() != null).collect(Collectors.groupingBy(WarnManage::getDeptId));
|
|
List<Map<String, Object>> finalDeptNameLastMapList = new ArrayList<>();
|
|
List<Map<String, Object>> finalDeptNameLastMapList = new ArrayList<>();
|
|
deptNameCollect.forEach((deptId, v) -> {
|
|
deptNameCollect.forEach((deptId, v) -> {
|
|
Map<String, Object> deptMap = new HashMap<>(3);
|
|
Map<String, Object> deptMap = new HashMap<>(3);
|
|
deptMap.put("deptName", v.get(0).getDeptName());
|
|
deptMap.put("deptName", v.get(0).getDeptName());
|
|
deptMap.put("warnNum", String.valueOf(v.size()));
|
|
deptMap.put("warnNum", String.valueOf(v.size()));
|
|
- deptMap.put("deptId", deptId);
|
|
|
|
|
|
+ deptMap.put("deptId", deptId.toString());
|
|
finalDeptNameLastMapList.add(deptMap);
|
|
finalDeptNameLastMapList.add(deptMap);
|
|
});
|
|
});
|
|
deptNameLastMapList = finalDeptNameLastMapList;
|
|
deptNameLastMapList = finalDeptNameLastMapList;
|
|
@@ -209,8 +209,8 @@ public class WarnManageServiceImpl implements IWarnManageService {
|
|
String warnNumLast = "0";
|
|
String warnNumLast = "0";
|
|
if (!finalDeptNameMapList.isEmpty()) {
|
|
if (!finalDeptNameMapList.isEmpty()) {
|
|
for (Map<String, Object> lastMonthDeptMap : finalDeptNameMapList) {
|
|
for (Map<String, Object> lastMonthDeptMap : finalDeptNameMapList) {
|
|
- String deptIdLast = lastMonthDeptMap.get(deptId).toString();
|
|
|
|
- if (StringUtils.isNotEmpty(deptIdLast)) {
|
|
|
|
|
|
+ String deptIdLast = lastMonthDeptMap.get(("deptId")).toString();
|
|
|
|
+ if (deptId.equals(deptIdLast)) {
|
|
warnNumLast = lastMonthDeptMap.get("warnNum").toString();
|
|
warnNumLast = lastMonthDeptMap.get("warnNum").toString();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -394,7 +394,7 @@ public class WarnManageServiceImpl implements IWarnManageService {
|
|
Long channelId = jsonObject.getLong("channelId");
|
|
Long channelId = jsonObject.getLong("channelId");
|
|
String parameterSet = jsonObject.getString("parameterSet");
|
|
String parameterSet = jsonObject.getString("parameterSet");
|
|
String algorithmResult = jsonObject.getString("algorithmResult");
|
|
String algorithmResult = jsonObject.getString("algorithmResult");
|
|
- String photoUrl = jsonObject.getString("photoUrl");
|
|
|
|
|
|
+ String photoUrl = "http://114.99.51.58:15010/prod-api/profile" + jsonObject.getString("photoUrl");
|
|
String videoUrl = jsonObject.getString("videoUrl");
|
|
String videoUrl = jsonObject.getString("videoUrl");
|
|
String rangName = jsonObject.getString("name");
|
|
String rangName = jsonObject.getString("name");
|
|
WarnManage warnManage = new WarnManage();
|
|
WarnManage warnManage = new WarnManage();
|