|
|
|
|
@ -5,6 +5,7 @@ import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
import com.biutag.supervision.common.UserContextHolder; |
|
|
|
|
import com.biutag.supervision.constants.AppConstants; |
|
|
|
|
@ -200,6 +201,11 @@ public class WarningController {
|
|
|
|
|
|
|
|
|
|
recordService.saveOrUpdate(vo.getRecord()); |
|
|
|
|
|
|
|
|
|
// 提交时更新项目预警状态为"预警中"(2)
|
|
|
|
|
reportProjectService.update(new LambdaUpdateWrapper<ReportProject>() |
|
|
|
|
.eq(ReportProject::getId, vo.getRecord().getReportId()) |
|
|
|
|
.set(ReportProject::getWarningState, "2")); |
|
|
|
|
|
|
|
|
|
List<ReportFlow> reportFlows = reportFlowService.list( |
|
|
|
|
new LambdaQueryWrapper<ReportFlow>().eq(ReportFlow::getReportId,vo.getRecord().getId()) |
|
|
|
|
.eq(ReportFlow::getReportLink,FlowWarningEnum.state.getLabel()) |
|
|
|
|
|