|
|
@@ -4,6 +4,7 @@ import cn.hutool.core.date.LocalDateTimeUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.zd.airbottle.api.feign.RemoteAirBottleService;
|
|
|
+import com.zd.common.core.security.TokenService;
|
|
|
import com.zd.common.core.utils.StringUtils;
|
|
|
import com.zd.common.core.web.controller.AbstractController;
|
|
|
import com.zd.laboratory.api.dto.WarningNoticeLogDto;
|
|
|
@@ -226,4 +227,17 @@ public class WarningNoticeLogController extends AbstractController {
|
|
|
return ResultData.success(records);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/getDisposeCount")
|
|
|
+ @ApiOperation("查询预警通知气瓶未处理数量")
|
|
|
+ public ResultData getDisposeCount() {
|
|
|
+ LambdaQueryWrapper<WarningNoticeLog> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper.eq(WarningNoticeLog::getWarningType, 3);
|
|
|
+// queryWrapper.eq(WarningNoticeLog::getCollegeId, tokenService.getLoginUser().getSysUser().getDeptId());
|
|
|
+ queryWrapper.eq(WarningNoticeLog::getDispose,0);
|
|
|
+ queryWrapper.eq(WarningNoticeLog::getIsDeleted, Boolean.FALSE);
|
|
|
+ queryWrapper.orderByDesc(WarningNoticeLog::getId);
|
|
|
+ long count = warningNoticeLogService.count(queryWrapper);
|
|
|
+ return ResultData.success(count);
|
|
|
+ }
|
|
|
+
|
|
|
}
|