|
|
@@ -117,8 +117,9 @@ public class WarningNoticeLogController extends AbstractController {
|
|
|
|
|
|
@GetMapping("/getRemindData")
|
|
|
@ApiOperation("根据keyId获取过期提醒次数")
|
|
|
- public ResultData getRemindData(@RequestParam("keyId") Long keyId) {
|
|
|
- List<WarningNoticeLog> list = warningNoticeLogService.list(new LambdaQueryWrapper<WarningNoticeLog>().eq(WarningNoticeLog::getKeyId, keyId));
|
|
|
+ public ResultData getRemindData(@RequestParam(name = "keyId 各类型id",value = "keyId") Long keyId,
|
|
|
+ @RequestParam(name = "预警类型(1算法识别 2化学品 3气瓶 4预案)",value = "type") Integer type) {
|
|
|
+ List<WarningNoticeLog> list = warningNoticeLogService.list(new LambdaQueryWrapper<WarningNoticeLog>().eq(WarningNoticeLog::getKeyId, keyId).eq(WarningNoticeLog::getWarningType,type));
|
|
|
List<WarningNoticeLogDto> warningNoticeLogDtos = com.zd.common.core.utils.BeanUtils.copyList2List(list, WarningNoticeLogDto.class);
|
|
|
return ResultData.success(warningNoticeLogDtos);
|
|
|
}
|