|
@@ -86,6 +86,7 @@ public class UserMarkController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
@GetMapping("/info")
|
|
@GetMapping("/info")
|
|
private R getInfo(@RequestParam(value = "station") String station,
|
|
private R getInfo(@RequestParam(value = "station") String station,
|
|
@RequestParam(value = "windturbines", required = false) String windturbines,
|
|
@RequestParam(value = "windturbines", required = false) String windturbines,
|
|
@@ -117,12 +118,12 @@ public class UserMarkController {
|
|
}
|
|
}
|
|
|
|
|
|
@DeleteMapping("/{id}")
|
|
@DeleteMapping("/{id}")
|
|
- private R deleteInfo(@PathVariable String id) {
|
|
|
|
|
|
+ private R deleteInfo1(@PathVariable String id) {
|
|
QueryWrapper<LossCapacityUserMark> lcumWrapper = new QueryWrapper<>();
|
|
QueryWrapper<LossCapacityUserMark> lcumWrapper = new QueryWrapper<>();
|
|
lcumWrapper.eq("id", id);
|
|
lcumWrapper.eq("id", id);
|
|
|
|
+ LossCapacityUserMark byId = lossCapacityUserMarkService.getById(id);
|
|
boolean b = lossCapacityUserMarkService.removeById(id);
|
|
boolean b = lossCapacityUserMarkService.removeById(id);
|
|
|
|
|
|
- LossCapacityUserMark byId = lossCapacityUserMarkService.getById(id);
|
|
|
|
String equipment = byId.getEquipment();
|
|
String equipment = byId.getEquipment();
|
|
//同时删除五损时间用户标记
|
|
//同时删除五损时间用户标记
|
|
QueryWrapper<StateCause> scWrapper = new QueryWrapper<>();
|
|
QueryWrapper<StateCause> scWrapper = new QueryWrapper<>();
|
|
@@ -138,7 +139,7 @@ public class UserMarkController {
|
|
List<StateCause> scList = stateCauseService.list(scWrapper);
|
|
List<StateCause> scList = stateCauseService.list(scWrapper);
|
|
scList = scList.stream().peek(sc -> sc.setUserFlag("")).collect(Collectors.toList());
|
|
scList = scList.stream().peek(sc -> sc.setUserFlag("")).collect(Collectors.toList());
|
|
//更新user_flag
|
|
//更新user_flag
|
|
- stateCauseService.saveBatch(scList);
|
|
|
|
|
|
+ stateCauseService.saveBatch(scList);
|
|
|
|
|
|
calcEquipPowerGenDay.recalculationGeneratingCapacity(DateTime.of(byId.getStartTime()));
|
|
calcEquipPowerGenDay.recalculationGeneratingCapacity(DateTime.of(byId.getStartTime()));
|
|
if (b) {
|
|
if (b) {
|
|
@@ -147,4 +148,6 @@ public class UserMarkController {
|
|
return R.error();
|
|
return R.error();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|