/qxwarning/getGroupWarning:只返回status为0的数据。

master
ForwithyNew 2024-06-12 15:45:10 +08:00
parent b4bc94480f
commit 910480acfb
1 changed files with 2 additions and 1 deletions

View File

@ -119,6 +119,7 @@ public class QXWarnController {
qxwarning.setCnnm(warningVO.getCnnm());
insert(qxwarning);
}
warningList = warningList.stream().filter(o->o.getStatus().equals("0")).collect(Collectors.toList());
return ResultJson.ok(warningList);
}
@ -343,7 +344,7 @@ public class QXWarnController {
@ApiOperation(value = "历史气象预警查询")
@PostMapping("/getHistoryWarning")
@Cacheable(value = THIS_REDIS_KEY, key = "#root.method.name+':'+#dto.toString()")
public ResultJson<QXWarningVO> getHistoryGroupWarning(@RequestBody GroupWarningDto dto) {
public ResultJson<QXWarningVO> getHistoryWarning(@RequestBody GroupWarningDto dto) {
List<QXWarningVO> warnList = new ArrayList<>();
HistoryWarnsVO historyWarnsVO = new HistoryWarnsVO();
ApiDto apiDto = new ApiDto();