|
|
|
|
@ -188,7 +188,7 @@ public class DataVSupervisionNotifyController {
|
|
|
|
|
* @param beginTime 开始时间 |
|
|
|
|
* @param endTime 结束时间 |
|
|
|
|
*/ |
|
|
|
|
@Operation(summary = "地图Icon数据") |
|
|
|
|
@Operation(summary = "获取现场专项地图数据") |
|
|
|
|
@GetMapping("/getSupervisionNotifyMap") |
|
|
|
|
|
|
|
|
|
public Result<JSONObject> getSupervisionNotifyMap(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
@ -199,12 +199,13 @@ public class DataVSupervisionNotifyController {
|
|
|
|
|
//数据补充
|
|
|
|
|
Date finalEndTime = endTime; |
|
|
|
|
superviseTempMapVoList.forEach(s->{ |
|
|
|
|
String relationOrg =negativeMapper.getSupervisionMapStringData(beginTime, finalEndTime,"department",s.getDepartId()) ; |
|
|
|
|
String personNum =negativeMapper.getSupervisionMapStringData(beginTime, finalEndTime,"personal",s.getDepartId()) ;; |
|
|
|
|
String completedRate = negativeMapper.getSupervisionMapCompletedRate(beginTime, finalEndTime,s.getDepartId()); |
|
|
|
|
s.setCompletedRate(completedRate); |
|
|
|
|
s.setPersonNum(personNum); |
|
|
|
|
s.setRelationOrg(relationOrg); |
|
|
|
|
String relationOrg =negativeMapper.getSupervisionMapStringData(beginTime, finalEndTime,"department",s.getDepartId()) ; |
|
|
|
|
String personNum =negativeMapper.getSupervisionMapStringData(beginTime, finalEndTime,"personal",s.getDepartId()) ;; |
|
|
|
|
// String completedRate = negativeMapper.getSupervisionMapCompletedRate(beginTime, finalEndTime,s.getDepartId());
|
|
|
|
|
double rate = s.getTotalPro() == 0 ? 0: NumberUtil.round((double) s.getCompletedNumber() / s.getTotalPro() * 100, 2).doubleValue(); |
|
|
|
|
s.setCompletedRate(String.valueOf(rate)); |
|
|
|
|
s.setPersonNum(personNum); |
|
|
|
|
s.setRelationOrg(relationOrg); |
|
|
|
|
}); |
|
|
|
|
JSONObject data = new JSONObject().fluentPut("superviseTempMapVoList", superviseTempMapVoList); |
|
|
|
|
return Result.success(data); |
|
|
|
|
|