现场测试问题
预告警单
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
package com.njcn.supervision.controller.leaflet;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.supervision.pojo.vo.leaflet.WarningLeafletVO;
|
||||
import com.njcn.supervision.pojo.param.leaflet.WarningLeafletParam;
|
||||
import com.njcn.supervision.service.leaflet.IWarningLeafletService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 预告警单表 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-05-21
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/warningLeaflet")
|
||||
@Slf4j
|
||||
@Api(tags = "预告警单表")
|
||||
@AllArgsConstructor
|
||||
public class WarningLeafletController extends BaseController {
|
||||
|
||||
private final IWarningLeafletService warningLeafletService;
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/warningPageData")
|
||||
@ApiOperation("分页查询当前用户能看到的预警单数据")
|
||||
@ApiImplicitParam(name = "warningLeafletQueryParam", value = "参数", required = true)
|
||||
public HttpResult<Page<WarningLeafletVO>> warningPageData(@RequestBody @Validated WarningLeafletParam.WarningLeafletQueryParam warningLeafletQueryParam) {
|
||||
String methodDescribe = getMethodDescribe("warningPageData");
|
||||
Page<WarningLeafletVO> out = warningLeafletService.warningPageData(warningLeafletQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, out, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/alarmPageData")
|
||||
@ApiOperation("分页查询当前用户能看到的告警单数据")
|
||||
@ApiImplicitParam(name = "warningLeafletQueryParam", value = "参数", required = true)
|
||||
public HttpResult<Page<WarningLeafletVO>> alarmPageData(@RequestBody @Validated WarningLeafletParam.WarningLeafletQueryParam warningLeafletQueryParam) {
|
||||
String methodDescribe = getMethodDescribe("alarmPageData");
|
||||
Page<WarningLeafletVO> out = warningLeafletService.alarmPageData(warningLeafletQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, out, methodDescribe);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.supervision.pojo.param.survey.SupervisionGeneralSurveyPlanParm;
|
||||
import com.njcn.supervision.pojo.vo.survey.DeptSubstationVO;
|
||||
import com.njcn.supervision.pojo.vo.survey.SupervisionGeneralSurveyPlanDetailVO;
|
||||
import com.njcn.supervision.pojo.vo.survey.SupervisionGeneralSurveyPlanVO;
|
||||
import com.njcn.supervision.service.survey.SupervisionGeneralSurveyPlanPOService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
@@ -25,7 +26,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 干扰源用户管理
|
||||
* 谐波普测计划
|
||||
*
|
||||
* @author qijian
|
||||
* @version 1.0.0
|
||||
@@ -64,7 +65,6 @@ public class GeneralSurveyController extends BaseController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/removeSurvey")
|
||||
@ApiOperation("移除普测计划")
|
||||
@@ -112,7 +112,7 @@ public class GeneralSurveyController extends BaseController {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.DELETE)
|
||||
@PostMapping("/cancel")
|
||||
@ApiOperation("取消普测计划")
|
||||
@ApiImplicitParam(name = "cancelReqVO", value = "取消原因", required = true)
|
||||
@@ -123,4 +123,25 @@ public class GeneralSurveyController extends BaseController {
|
||||
}
|
||||
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/pageProblemSubstationBySurvey")
|
||||
@ApiOperation("分页查询当前用户能看到的普测计划中存在超标问题")
|
||||
@ApiImplicitParam(name = "generalSurveyPlanQueryParam", value = "参数", required = true)
|
||||
public HttpResult<Page<SupervisionGeneralSurveyPlanDetailVO>> getPageProblemSubstationBySurvey(@RequestBody @Validated SupervisionGeneralSurveyPlanParm.GeneralSurveyPlanQueryParam generalSurveyPlanQueryParam ){
|
||||
String methodDescribe = getMethodDescribe("pageProblemSubstationBySurvey");
|
||||
Page<SupervisionGeneralSurveyPlanDetailVO> out = supervisionGeneralSurveyPlanPOService.pageProblemSubstationBySurvey(generalSurveyPlanQueryParam);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, out, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@GetMapping("/initiateWarningLeaflet")
|
||||
@ApiOperation("针对有问题的现场测试发起告警单")
|
||||
public HttpResult<Boolean> initiateWarningLeaflet(@RequestParam("id") String id,@RequestParam("subId") String subId){
|
||||
String methodDescribe = getMethodDescribe("initiateWarningLeaflet");
|
||||
supervisionGeneralSurveyPlanPOService.initiateWarningLeaflet(id,subId);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, Boolean.TRUE, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.njcn.supervision.mapper.leaflet;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.supervision.pojo.po.leaflet.WarningLeaflet;
|
||||
import com.njcn.supervision.pojo.vo.leaflet.WarningLeafletVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 预告警单表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-05-21
|
||||
*/
|
||||
public interface WarningLeafletMapper extends BaseMapper<WarningLeaflet> {
|
||||
|
||||
Page<WarningLeafletVO> warningPageData(Page<Object> objectPage, @Param("ew") QueryWrapper<WarningLeafletVO> warningLeafletVOQueryWrapper);
|
||||
|
||||
Page<WarningLeafletVO> alarmPageData(Page<Object> objectPage, @Param("ew") QueryWrapper<WarningLeafletVO> warningLeafletVOQueryWrapper);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.supervision.mapper.leaflet.WarningLeafletMapper">
|
||||
|
||||
|
||||
<select id="warningPageData" resultType="WarningLeafletVO">
|
||||
SELECT supervision_warning_leaflet.*
|
||||
FROM supervision_warning_leaflet supervision_warning_leaflet
|
||||
WHERE ${ew.sqlSegment}
|
||||
</select>
|
||||
|
||||
<select id="alarmPageData" resultType="WarningLeafletVO">
|
||||
SELECT supervision_warning_leaflet.*
|
||||
FROM supervision_warning_leaflet supervision_warning_leaflet
|
||||
WHERE ${ew.sqlSegment}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -4,11 +4,11 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.supervision.pojo.po.survey.SupervisionGeneralSurveyPlanPO;
|
||||
import com.njcn.supervision.pojo.vo.survey.SupervisionGeneralSurveyPlanDetailVO;
|
||||
import com.njcn.supervision.pojo.vo.survey.SupervisionGeneralSurveyPlanVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2024/5/13 18:35【需求编号】
|
||||
*
|
||||
@@ -17,4 +17,6 @@ import org.apache.ibatis.annotations.Param;
|
||||
*/
|
||||
public interface SupervisionGeneralSurveyPlanPOMapper extends BaseMapper<SupervisionGeneralSurveyPlanPO> {
|
||||
Page<SupervisionGeneralSurveyPlanVO> page(Page<Object> objectPage, @Param("ew") QueryWrapper<SupervisionGeneralSurveyPlanVO> queryWrapper);
|
||||
|
||||
Page<SupervisionGeneralSurveyPlanDetailVO> pageProblemSubstationBySurvey(Page<Object> objectPage, @Param("ew") QueryWrapper<SupervisionGeneralSurveyPlanDetailVO> supervisionGeneralSurveyPlanDetailVOQueryWrapper);
|
||||
}
|
||||
@@ -1,41 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.njcn.supervision.mapper.survey.SupervisionGeneralSurveyPlanPOMapper">
|
||||
<resultMap id="BaseResultMap" type="com.njcn.supervision.pojo.po.survey.SupervisionGeneralSurveyPlanPO">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table supervision_general_survey_plan-->
|
||||
<id column="plan_no" jdbcType="VARCHAR" property="planNo" />
|
||||
<result column="org_no" jdbcType="VARCHAR" property="orgNo" />
|
||||
<result column="plan_name" jdbcType="VARCHAR" property="planName" />
|
||||
<result column="plan_create_time" jdbcType="DATE" property="planCreateTime" />
|
||||
<result column="plan_start_time" jdbcType="DATE" property="planStartTime" />
|
||||
<result column="plan_end_time" jdbcType="DATE" property="planEndTime" />
|
||||
<result column="plan_complate_time" jdbcType="DATE" property="planComplateTime" />
|
||||
<result column="leader" jdbcType="VARCHAR" property="leader" />
|
||||
<result column="status" jdbcType="TINYINT" property="status" />
|
||||
<result column="description" jdbcType="VARCHAR" property="description" />
|
||||
<result column="is_file_upload" jdbcType="TINYINT" property="isFileUpload" />
|
||||
<result column="file_count" jdbcType="INTEGER" property="fileCount" />
|
||||
<result column="file_path" jdbcType="VARCHAR" property="filePath" />
|
||||
<result column="process_instance_id" jdbcType="VARCHAR" property="processInstanceId" />
|
||||
<result column="upload_time" jdbcType="DATE" property="uploadTime" />
|
||||
<result column="Create_By" jdbcType="CHAR" property="createBy" />
|
||||
<result column="Create_Time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="Update_By" jdbcType="CHAR" property="updateBy" />
|
||||
<result column="Update_Time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="State" jdbcType="BIT" property="state" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
plan_no, org_no, plan_name, plan_create_time, plan_start_time, plan_end_time, plan_complate_time,
|
||||
leader, `status`, description, is_file_upload, file_count, file_path, process_instance_id,
|
||||
upload_time, Create_By, Create_Time, Update_By, Update_Time, `State`
|
||||
</sql>
|
||||
<resultMap id="BaseResultMap" type="com.njcn.supervision.pojo.po.survey.SupervisionGeneralSurveyPlanPO">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table supervision_general_survey_plan-->
|
||||
<id column="plan_no" jdbcType="VARCHAR" property="planNo"/>
|
||||
<result column="org_no" jdbcType="VARCHAR" property="orgNo"/>
|
||||
<result column="plan_name" jdbcType="VARCHAR" property="planName"/>
|
||||
<result column="plan_create_time" jdbcType="DATE" property="planCreateTime"/>
|
||||
<result column="plan_start_time" jdbcType="DATE" property="planStartTime"/>
|
||||
<result column="plan_end_time" jdbcType="DATE" property="planEndTime"/>
|
||||
<result column="plan_complate_time" jdbcType="DATE" property="planComplateTime"/>
|
||||
<result column="leader" jdbcType="VARCHAR" property="leader"/>
|
||||
<result column="status" jdbcType="TINYINT" property="status"/>
|
||||
<result column="description" jdbcType="VARCHAR" property="description"/>
|
||||
<result column="is_file_upload" jdbcType="TINYINT" property="isFileUpload"/>
|
||||
<result column="file_count" jdbcType="INTEGER" property="fileCount"/>
|
||||
<result column="file_path" jdbcType="VARCHAR" property="filePath"/>
|
||||
<result column="process_instance_id" jdbcType="VARCHAR" property="processInstanceId"/>
|
||||
<result column="upload_time" jdbcType="DATE" property="uploadTime"/>
|
||||
<result column="Create_By" jdbcType="CHAR" property="createBy"/>
|
||||
<result column="Create_Time" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="Update_By" jdbcType="CHAR" property="updateBy"/>
|
||||
<result column="Update_Time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="State" jdbcType="BIT" property="state"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
plan_no, org_no, plan_name, plan_create_time, plan_start_time, plan_end_time, plan_complate_time,
|
||||
leader, `status`, description, is_file_upload, file_count, file_path, process_instance_id,
|
||||
upload_time, Create_By, Create_Time, Update_By, Update_Time, `State`
|
||||
</sql>
|
||||
|
||||
<select id="page" resultType="com.njcn.supervision.pojo.vo.survey.SupervisionGeneralSurveyPlanVO">
|
||||
SELECT
|
||||
*
|
||||
FROM supervision_general_survey_plan supervision_general_survey_plan
|
||||
WHERE ${ew.sqlSegment}
|
||||
</select>
|
||||
<select id="page" resultType="com.njcn.supervision.pojo.vo.survey.SupervisionGeneralSurveyPlanVO">
|
||||
SELECT *
|
||||
FROM supervision_general_survey_plan supervision_general_survey_plan
|
||||
WHERE ${ew.sqlSegment}
|
||||
</select>
|
||||
|
||||
<!--查询现场测试有问题的数据-->
|
||||
<select id="pageProblemSubstationBySurvey"
|
||||
resultType="SupervisionGeneralSurveyPlanDetailVO">
|
||||
SELECT supervision_general_survey_plan_detail.*,
|
||||
supervision_general_survey_plan.org_no,
|
||||
supervision_general_survey_plan.plan_name,
|
||||
supervision_general_survey_plan.plan_create_time,
|
||||
supervision_general_survey_plan.plan_start_time,
|
||||
supervision_general_survey_plan.plan_end_time,
|
||||
supervision_general_survey_plan.plan_complate_time,
|
||||
supervision_general_survey_plan.leader,
|
||||
supervision_general_survey_plan.file_path
|
||||
FROM supervision_general_survey_plan_detail supervision_general_survey_plan_detail
|
||||
left join
|
||||
supervision_general_survey_plan supervision_general_survey_plan
|
||||
on supervision_general_survey_plan_detail.plan_no = supervision_general_survey_plan.plan_no
|
||||
WHERE ${ew.sqlSegment}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.njcn.supervision.service.leaflet;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.njcn.supervision.pojo.param.leaflet.WarningLeafletParam;
|
||||
import com.njcn.supervision.pojo.po.leaflet.WarningLeaflet;
|
||||
import com.njcn.supervision.pojo.vo.leaflet.WarningLeafletVO;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 预告警单表 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-05-21
|
||||
*/
|
||||
public interface IWarningLeafletService extends IService<WarningLeaflet> {
|
||||
|
||||
/**
|
||||
* 创建预告警单,此时还没有走流程,等待用户上传反馈单后,才正式进入工作流阶段
|
||||
* name:预告警单名称,此处暂时用普测计划名称+变电站名称组成预告警单名
|
||||
* code:预告警编号暂时随机by yxb
|
||||
* id:对应问题源id,用于查询详细数据
|
||||
* problemType:问题类型:1:技术监督管理;2:在线监测超标问题;3:用户投诉;4:现场测试超标,此处是现场测试超标
|
||||
* leaflet:单子类型:1:预警单;2:告警单
|
||||
*/
|
||||
void createLeaflet(String name, String code, String id, Integer problemType, Integer leaflet);
|
||||
|
||||
Page<WarningLeafletVO> alarmPageData(WarningLeafletParam.WarningLeafletQueryParam warningLeafletQueryParam);
|
||||
|
||||
Page<WarningLeafletVO> warningPageData(WarningLeafletParam.WarningLeafletQueryParam warningLeafletQueryParam);
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.njcn.supervision.service.leaflet.impl;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.njcn.common.pojo.enums.common.DataStateEnum;
|
||||
import com.njcn.supervision.enums.FlowStatusEnum;
|
||||
import com.njcn.supervision.enums.LeafletTypeEnum;
|
||||
import com.njcn.supervision.mapper.leaflet.WarningLeafletMapper;
|
||||
import com.njcn.supervision.pojo.param.leaflet.WarningLeafletParam;
|
||||
import com.njcn.supervision.pojo.po.leaflet.WarningLeaflet;
|
||||
import com.njcn.supervision.pojo.vo.leaflet.WarningLeafletVO;
|
||||
import com.njcn.supervision.service.leaflet.IWarningLeafletService;
|
||||
import com.njcn.user.api.UserFeignClient;
|
||||
import com.njcn.web.factory.PageFactory;
|
||||
import com.njcn.web.utils.RequestUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 预告警单表 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2024-05-21
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class WarningLeafletServiceImpl extends ServiceImpl<WarningLeafletMapper, WarningLeaflet> implements IWarningLeafletService {
|
||||
|
||||
private final UserFeignClient userFeignClient;
|
||||
|
||||
/**
|
||||
* 不创建工作流,只是创建一个告警单,需要待用户反馈后才会进入流程
|
||||
*/
|
||||
@Override
|
||||
public void createLeaflet(String name, String code, String id, Integer problemType, Integer leaflet) {
|
||||
WarningLeaflet warningLeaflet = new WarningLeaflet();
|
||||
warningLeaflet.setLeafletName(name);
|
||||
warningLeaflet.setLeafletNo(code);
|
||||
warningLeaflet.setProblemType(problemType);
|
||||
warningLeaflet.setProblemId(id);
|
||||
warningLeaflet.setLeafletType(leaflet);
|
||||
warningLeaflet.setState(DataStateEnum.ENABLE.getCode());
|
||||
warningLeaflet.setStatus(FlowStatusEnum.NO_FEEDBACK.getCode());
|
||||
this.baseMapper.insert(warningLeaflet);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Page<WarningLeafletVO> warningPageData(WarningLeafletParam.WarningLeafletQueryParam warningLeafletQueryParam) {
|
||||
QueryWrapper<WarningLeafletVO> warningLeafletVOQueryWrapper = new QueryWrapper<>();
|
||||
if (Objects.nonNull(warningLeafletQueryParam)) {
|
||||
//添加上时间范围
|
||||
warningLeafletVOQueryWrapper.between("supervision_warning_leaflet.Create_Time",
|
||||
DateUtil.beginOfDay(DateUtil.parse(warningLeafletQueryParam.getSearchBeginTime())),
|
||||
DateUtil.endOfDay(DateUtil.parse(warningLeafletQueryParam.getSearchEndTime())));
|
||||
}
|
||||
//获取当前用户部门所有同事的id,查看该部门下所有的数据
|
||||
List<String> colleaguesIds = userFeignClient.getColleaguesIdByUserId(RequestUtil.getUserIndex()).getData();
|
||||
warningLeafletVOQueryWrapper.in("supervision_warning_leaflet.Create_By", colleaguesIds)
|
||||
.eq("supervision_warning_leaflet.state",DataStateEnum.ENABLE.getCode())
|
||||
.eq("supervision_warning_leaflet.leaflet_type", LeafletTypeEnum.WARNING.getCode())
|
||||
.orderByDesc("supervision_warning_leaflet.Update_Time");
|
||||
return this.baseMapper.warningPageData(new Page<>(PageFactory.getPageNum(warningLeafletQueryParam), PageFactory.getPageSize(warningLeafletQueryParam)), warningLeafletVOQueryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Page<WarningLeafletVO> alarmPageData(WarningLeafletParam.WarningLeafletQueryParam warningLeafletQueryParam) {
|
||||
QueryWrapper<WarningLeafletVO> warningLeafletVOQueryWrapper = new QueryWrapper<>();
|
||||
if (Objects.nonNull(warningLeafletQueryParam)) {
|
||||
//添加上时间范围
|
||||
warningLeafletVOQueryWrapper.between("supervision_warning_leaflet.Create_Time",
|
||||
DateUtil.beginOfDay(DateUtil.parse(warningLeafletQueryParam.getSearchBeginTime())),
|
||||
DateUtil.endOfDay(DateUtil.parse(warningLeafletQueryParam.getSearchEndTime())));
|
||||
}
|
||||
//获取当前用户部门所有同事的id,查看该部门下所有的数据
|
||||
List<String> colleaguesIds = userFeignClient.getColleaguesIdByUserId(RequestUtil.getUserIndex()).getData();
|
||||
warningLeafletVOQueryWrapper.in("supervision_warning_leaflet.Create_By", colleaguesIds)
|
||||
.eq("supervision_warning_leaflet.state",DataStateEnum.ENABLE.getCode())
|
||||
.eq("supervision_warning_leaflet.leaflet_type", LeafletTypeEnum.ALARM.getCode())
|
||||
.orderByDesc("supervision_warning_leaflet.Update_Time");
|
||||
return this.baseMapper.alarmPageData(new Page<>(PageFactory.getPageNum(warningLeafletQueryParam), PageFactory.getPageSize(warningLeafletQueryParam)), warningLeafletVOQueryWrapper);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -6,34 +6,46 @@ import com.njcn.bpm.pojo.param.instance.BpmProcessInstanceCancelParam;
|
||||
import com.njcn.supervision.pojo.param.survey.SupervisionGeneralSurveyPlanParm;
|
||||
import com.njcn.supervision.pojo.po.survey.SupervisionGeneralSurveyPlanPO;
|
||||
import com.njcn.supervision.pojo.vo.survey.DeptSubstationVO;
|
||||
import com.njcn.supervision.pojo.vo.survey.SupervisionGeneralSurveyPlanDetailVO;
|
||||
import com.njcn.supervision.pojo.vo.survey.SupervisionGeneralSurveyPlanVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2024/5/13 18:35【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public interface SupervisionGeneralSurveyPlanPOService extends IService<SupervisionGeneralSurveyPlanPO>{
|
||||
public interface SupervisionGeneralSurveyPlanPOService extends IService<SupervisionGeneralSurveyPlanPO> {
|
||||
|
||||
|
||||
String addDevReport(SupervisionGeneralSurveyPlanParm supervisionGeneralSurveyPlanParm);
|
||||
String addDevReport(SupervisionGeneralSurveyPlanParm supervisionGeneralSurveyPlanParm);
|
||||
|
||||
boolean auditSurvey(SupervisionGeneralSurveyPlanParm.SupervisionGeneralSurveyPlanUpdate supervisionGeneralSurveyPlanUpdate);
|
||||
boolean auditSurvey(SupervisionGeneralSurveyPlanParm.SupervisionGeneralSurveyPlanUpdate supervisionGeneralSurveyPlanUpdate);
|
||||
|
||||
Boolean removeSurvey(List<String> ids);
|
||||
Boolean removeSurvey(List<String> ids);
|
||||
|
||||
Page<SupervisionGeneralSurveyPlanVO> getSurvey(SupervisionGeneralSurveyPlanParm.GeneralSurveyPlanQueryParam generalSurveyPlanQueryParam);
|
||||
|
||||
/**
|
||||
* 分页查询当前用户能看到的普测计划中存在超标问题
|
||||
*/
|
||||
Page<SupervisionGeneralSurveyPlanDetailVO> pageProblemSubstationBySurvey(SupervisionGeneralSurveyPlanParm.GeneralSurveyPlanQueryParam generalSurveyPlanQueryParam);
|
||||
|
||||
SupervisionGeneralSurveyPlanVO querySurveyDetail(String id);
|
||||
|
||||
List<DeptSubstationVO> initDetpStataionTree(String orgId);
|
||||
|
||||
void updateStatus(String businessKey, Integer status);
|
||||
void updateStatus(String businessKey, Integer status);
|
||||
|
||||
String cancelGeneralSurvey(BpmProcessInstanceCancelParam cancelReqVO);
|
||||
|
||||
|
||||
/**
|
||||
* 针对有问题的现场测试发起告警单
|
||||
* @param id 有问题的测试记录id
|
||||
*/
|
||||
void initiateWarningLeaflet(String id,String subId);
|
||||
}
|
||||
|
||||
@@ -2,9 +2,13 @@ package com.njcn.supervision.service.survey.impl;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.text.StrPool;
|
||||
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.core.toolkit.IdWorker;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.njcn.bpm.api.BpmProcessFeignClient;
|
||||
@@ -14,6 +18,7 @@ import com.njcn.bpm.pojo.dto.BpmProcessInstanceCreateReqDTO;
|
||||
import com.njcn.bpm.pojo.param.instance.BpmProcessInstanceCancelParam;
|
||||
import com.njcn.common.pojo.enums.common.DataStateEnum;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.device.biz.commApi.CommTerminalGeneralClient;
|
||||
import com.njcn.device.biz.pojo.dto.SubGetBase;
|
||||
import com.njcn.device.biz.pojo.param.SubstationParam;
|
||||
@@ -21,15 +26,20 @@ import com.njcn.device.pq.api.LineFeignClient;
|
||||
import com.njcn.device.pq.pojo.po.Line;
|
||||
import com.njcn.device.pq.pojo.vo.LineDetailDataVO;
|
||||
import com.njcn.supervision.enums.FlowStatusEnum;
|
||||
import com.njcn.supervision.enums.LeafletTypeEnum;
|
||||
import com.njcn.supervision.enums.ProblemTypeEnum;
|
||||
import com.njcn.supervision.mapper.survey.SupervisionGeneralSurveyPlanPOMapper;
|
||||
import com.njcn.supervision.pojo.param.survey.SupervisionGeneralSurveyPlanParm;
|
||||
import com.njcn.supervision.pojo.po.survey.SupervisionGeneralSurveyPlanDetailPO;
|
||||
import com.njcn.supervision.pojo.po.survey.SupervisionGeneralSurveyPlanPO;
|
||||
import com.njcn.supervision.pojo.vo.survey.DeptSubstationVO;
|
||||
import com.njcn.supervision.pojo.vo.survey.SupervisionGeneralSurveyPlanDetailVO;
|
||||
import com.njcn.supervision.pojo.vo.survey.SupervisionGeneralSurveyPlanVO;
|
||||
import com.njcn.supervision.service.leaflet.IWarningLeafletService;
|
||||
import com.njcn.supervision.service.survey.SupervisionGeneralSurveyPlanDetailPOService;
|
||||
import com.njcn.supervision.service.survey.SupervisionGeneralSurveyPlanPOService;
|
||||
import com.njcn.user.api.DeptFeignClient;
|
||||
import com.njcn.user.api.UserFeignClient;
|
||||
import com.njcn.user.pojo.vo.PvTerminalTreeVO;
|
||||
import com.njcn.web.factory.PageFactory;
|
||||
import com.njcn.web.utils.RequestUtil;
|
||||
@@ -52,7 +62,7 @@ import java.util.stream.Collectors;
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<SupervisionGeneralSurveyPlanPOMapper, SupervisionGeneralSurveyPlanPO> implements SupervisionGeneralSurveyPlanPOService{
|
||||
public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<SupervisionGeneralSurveyPlanPOMapper, SupervisionGeneralSurveyPlanPO> implements SupervisionGeneralSurveyPlanPOService {
|
||||
/**
|
||||
* 用户信息建档对应的流程定义 KEY todo 修改成普测的key
|
||||
*/
|
||||
@@ -63,6 +73,8 @@ public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<Super
|
||||
private final BpmProcessFeignClient bpmProcessFeignClient;
|
||||
private final DeptFeignClient deptFeignClient;
|
||||
private final LineFeignClient lineFeignClient;
|
||||
private final UserFeignClient userFeignClient;
|
||||
private final IWarningLeafletService warningLeafletService;
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@@ -78,7 +90,7 @@ public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<Super
|
||||
this.save(supervisionGeneralSurveyPlanPO);
|
||||
String planNo = supervisionGeneralSurveyPlanPO.getPlanNo();
|
||||
//保存普测计划电站表
|
||||
if(CollectionUtil.isNotEmpty(supervisionGeneralSurveyPlanParm.getSubIds())){
|
||||
if (CollectionUtil.isNotEmpty(supervisionGeneralSurveyPlanParm.getSubIds())) {
|
||||
SubstationParam param = new SubstationParam();
|
||||
param.setPowerIds(supervisionGeneralSurveyPlanParm.getSubIds());
|
||||
List<SubGetBase> stationList = commTerminalGeneralClient.tagOrIdGetSub(param).getData();
|
||||
@@ -91,11 +103,11 @@ public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<Super
|
||||
supervisionGeneralSurveyPlanDetailPO.setSubName(stat.getName());
|
||||
/*目前时间与计划开始时间,结束时间一致*/
|
||||
supervisionGeneralSurveyPlanDetailPO.setVoltageLevel(stat.getVoltageLevel());
|
||||
List<Line> lines= lineFeignClient.getSubIndexLineDetail(stat.getId()).getData();
|
||||
if(CollectionUtil.isEmpty(lines)){
|
||||
List<Line> lines = lineFeignClient.getSubIndexLineDetail(stat.getId()).getData();
|
||||
if (CollectionUtil.isEmpty(lines)) {
|
||||
supervisionGeneralSurveyPlanDetailPO.setMeasurementPointId("");
|
||||
supervisionGeneralSurveyPlanDetailPO.setIsSurvey(0);
|
||||
}else {
|
||||
} else {
|
||||
String subList = lines.stream().map(Line::getName).collect(Collectors.joining(","));
|
||||
supervisionGeneralSurveyPlanDetailPO.setMeasurementPointId(subList);
|
||||
supervisionGeneralSurveyPlanDetailPO.setIsSurvey(1);
|
||||
@@ -111,19 +123,17 @@ public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<Super
|
||||
bpmProcessInstanceCreateReqDTO.setBusinessKey(planNo);
|
||||
bpmProcessInstanceCreateReqDTO.setStartUserSelectAssignees(supervisionGeneralSurveyPlanParm.getStartUserSelectAssignees());
|
||||
bpmProcessInstanceCreateReqDTO.setVariables(processInstanceVariables);
|
||||
String processInstanceId = bpmProcessFeignClient.createProcessInstance(supervisionGeneralSurveyPlanPO.getCreateBy(),bpmProcessInstanceCreateReqDTO).getData();
|
||||
String processInstanceId = bpmProcessFeignClient.createProcessInstance(supervisionGeneralSurveyPlanPO.getCreateBy(), bpmProcessInstanceCreateReqDTO).getData();
|
||||
// 将工作流的编号,更新到流程单中
|
||||
supervisionGeneralSurveyPlanPO.setProcessInstanceId(processInstanceId);
|
||||
this.baseMapper.updateById(supervisionGeneralSurveyPlanPO);
|
||||
return planNo;
|
||||
}{
|
||||
}
|
||||
{
|
||||
throw new BusinessException("请选择电站");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -149,10 +159,10 @@ public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<Super
|
||||
/*目前时间与计划开始时间,结束时间一致*/
|
||||
supervisionGeneralSurveyPlanDetailPO.setVoltageLevel(stat.getVoltageLevel());
|
||||
List<String> unitChildrenList = stat.getUnitChildrenList();
|
||||
if(CollectionUtil.isEmpty(unitChildrenList)){
|
||||
if (CollectionUtil.isEmpty(unitChildrenList)) {
|
||||
supervisionGeneralSurveyPlanDetailPO.setMeasurementPointId("");
|
||||
supervisionGeneralSurveyPlanDetailPO.setIsSurvey(0);
|
||||
}else {
|
||||
} else {
|
||||
List<LineDetailDataVO> data = lineFeignClient.getLineDetailList(unitChildrenList).getData();
|
||||
|
||||
String subList = data.stream().map(LineDetailDataVO::getLineName).collect(Collectors.joining(","));
|
||||
@@ -163,7 +173,7 @@ public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<Super
|
||||
supervisionGeneralSurveyPlanDetailPOS.add(supervisionGeneralSurveyPlanDetailPO);
|
||||
}
|
||||
//清除原有的
|
||||
supervisionGeneralSurveyPlanDetailPOService.remove(new QueryWrapper<SupervisionGeneralSurveyPlanDetailPO>().lambda().eq(SupervisionGeneralSurveyPlanDetailPO::getPlanNo,planNo));
|
||||
supervisionGeneralSurveyPlanDetailPOService.remove(new QueryWrapper<SupervisionGeneralSurveyPlanDetailPO>().lambda().eq(SupervisionGeneralSurveyPlanDetailPO::getPlanNo, planNo));
|
||||
supervisionGeneralSurveyPlanDetailPOService.saveOrUpdateBatchByMultiId(supervisionGeneralSurveyPlanDetailPOS, 500);
|
||||
// 发起 BPM 流程
|
||||
Map<String, Object> processInstanceVariables = new HashMap<>();
|
||||
@@ -172,7 +182,7 @@ public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<Super
|
||||
bpmProcessInstanceCreateReqDTO.setBusinessKey(planNo);
|
||||
bpmProcessInstanceCreateReqDTO.setStartUserSelectAssignees(supervisionGeneralSurveyPlanUpdate.getStartUserSelectAssignees());
|
||||
bpmProcessInstanceCreateReqDTO.setVariables(processInstanceVariables);
|
||||
String processInstanceId = bpmProcessFeignClient.createProcessInstance(RequestUtil.getUserIndex(),bpmProcessInstanceCreateReqDTO).getData();
|
||||
String processInstanceId = bpmProcessFeignClient.createProcessInstance(RequestUtil.getUserIndex(), bpmProcessInstanceCreateReqDTO).getData();
|
||||
// 将工作流的编号,更新到流程单中
|
||||
byId.setProcessInstanceId(processInstanceId);
|
||||
this.baseMapper.updateById(byId);
|
||||
@@ -185,7 +195,7 @@ public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<Super
|
||||
public Boolean removeSurvey(List<String> ids) {
|
||||
this.lambdaUpdate().set(SupervisionGeneralSurveyPlanPO::getState, 0).in(SupervisionGeneralSurveyPlanPO::getPlanNo, ids).update();
|
||||
supervisionGeneralSurveyPlanDetailPOService.remove(new QueryWrapper<SupervisionGeneralSurveyPlanDetailPO>().
|
||||
lambda().in(SupervisionGeneralSurveyPlanDetailPO::getPlanNo,ids));
|
||||
lambda().in(SupervisionGeneralSurveyPlanDetailPO::getPlanNo, ids));
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -212,7 +222,7 @@ public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<Super
|
||||
queryWrapper.orderByDesc("supervision_general_survey_plan.create_time");
|
||||
Page<SupervisionGeneralSurveyPlanVO> page = this.baseMapper.page(new Page<>(PageFactory.getPageNum(generalSurveyPlanQueryParam), PageFactory.getPageSize(generalSurveyPlanQueryParam)), queryWrapper);
|
||||
|
||||
page.getRecords().stream().forEach(temp->{
|
||||
page.getRecords().stream().forEach(temp -> {
|
||||
temp.setOrgName((deptFeignClient.getDeptById(temp.getOrgNo()).getData().getName()));
|
||||
//获取普测下电站详情
|
||||
List<SupervisionGeneralSurveyPlanDetailPO> list = supervisionGeneralSurveyPlanDetailPOService.lambdaQuery().eq(SupervisionGeneralSurveyPlanDetailPO::getPlanNo, temp.getPlanNo()).list();
|
||||
@@ -224,11 +234,31 @@ public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<Super
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Page<SupervisionGeneralSurveyPlanDetailVO> pageProblemSubstationBySurvey(SupervisionGeneralSurveyPlanParm.GeneralSurveyPlanQueryParam generalSurveyPlanQueryParam) {
|
||||
QueryWrapper<SupervisionGeneralSurveyPlanDetailVO> supervisionGeneralSurveyPlanDetailVOQueryWrapper = new QueryWrapper<>();
|
||||
if (Objects.nonNull(generalSurveyPlanQueryParam)) {
|
||||
//添加上时间范围
|
||||
supervisionGeneralSurveyPlanDetailVOQueryWrapper.between("supervision_general_survey_plan_detail.Create_Time",
|
||||
DateUtil.beginOfDay(DateUtil.parse(generalSurveyPlanQueryParam.getSearchBeginTime())),
|
||||
DateUtil.endOfDay(DateUtil.parse(generalSurveyPlanQueryParam.getSearchEndTime())));
|
||||
}
|
||||
//获取当前用户部门所有同事的id,查看该部门下所有的数据
|
||||
List<String> colleaguesIds = userFeignClient.getColleaguesIdByUserId(RequestUtil.getUserIndex()).getData();
|
||||
supervisionGeneralSurveyPlanDetailVOQueryWrapper.in("supervision_general_survey_plan_detail.Create_By", colleaguesIds)
|
||||
.eq("supervision_general_survey_plan.status", BpmProcessInstanceStatusEnum.APPROVE.getStatus())
|
||||
.orderByDesc("supervision_general_survey_plan_detail.Update_Time");
|
||||
Page<SupervisionGeneralSurveyPlanDetailVO> page = this.baseMapper.pageProblemSubstationBySurvey(new Page<>(PageFactory.getPageNum(generalSurveyPlanQueryParam), PageFactory.getPageSize(generalSurveyPlanQueryParam)), supervisionGeneralSurveyPlanDetailVOQueryWrapper);
|
||||
//填充部门名称
|
||||
page.getRecords().forEach(temp -> temp.setOrgName((deptFeignClient.getDeptById(temp.getOrgNo()).getData().getName())));
|
||||
return page;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SupervisionGeneralSurveyPlanVO querySurveyDetail(String id) {
|
||||
SupervisionGeneralSurveyPlanVO supervisionGeneralSurveyPlanVO = new SupervisionGeneralSurveyPlanVO();
|
||||
SupervisionGeneralSurveyPlanPO byId = this.getById(id);
|
||||
BeanUtils.copyProperties(byId,supervisionGeneralSurveyPlanVO);
|
||||
BeanUtils.copyProperties(byId, supervisionGeneralSurveyPlanVO);
|
||||
//获取普测下电站详情
|
||||
List<SupervisionGeneralSurveyPlanDetailPO> list = supervisionGeneralSurveyPlanDetailPOService.lambdaQuery().eq(SupervisionGeneralSurveyPlanDetailPO::getPlanNo, id).list();
|
||||
supervisionGeneralSurveyPlanVO.setSupervisionGeneralSurveyPlanDetailPOS(list);
|
||||
@@ -282,7 +312,7 @@ public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<Super
|
||||
|
||||
@Override
|
||||
public void updateStatus(String businessKey, Integer status) {
|
||||
this.lambdaUpdate().set(SupervisionGeneralSurveyPlanPO::getStatus,status).eq(SupervisionGeneralSurveyPlanPO::getPlanNo,businessKey).update();
|
||||
this.lambdaUpdate().set(SupervisionGeneralSurveyPlanPO::getStatus, status).eq(SupervisionGeneralSurveyPlanPO::getPlanNo, businessKey).update();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -297,6 +327,36 @@ public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<Super
|
||||
return supervisionGeneralSurveyPlanPO.getPlanNo();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initiateWarningLeaflet(String id, String subId) {
|
||||
//获取数据源用于组装数据
|
||||
LambdaQueryWrapper<SupervisionGeneralSurveyPlanDetailPO> detailPOLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
detailPOLambdaQueryWrapper.eq(SupervisionGeneralSurveyPlanDetailPO::getPlanNo, id)
|
||||
.eq(SupervisionGeneralSurveyPlanDetailPO::getSubId, subId);
|
||||
SupervisionGeneralSurveyPlanDetailPO detailPlan = supervisionGeneralSurveyPlanDetailPOService.getOne(detailPOLambdaQueryWrapper);
|
||||
SupervisionGeneralSurveyPlanPO generalSurveyPlan = this.getById(id);
|
||||
/*
|
||||
* 1、预告警单名称,此处暂时用普测计划名称+变电站名称组成预告警单名
|
||||
* 2、预告警编号暂时随机by yxb
|
||||
* 3、问题类型:1:技术监督管理;2:在线监测超标问题;3:用户投诉;4:现场测试超标,此处是现场测试超标
|
||||
* 4、对应问题源id,用于查询详细数据
|
||||
* 5、单子类型:1:预警单;2:告警单
|
||||
* */
|
||||
warningLeafletService.createLeaflet(
|
||||
generalSurveyPlan.getPlanName().concat(StrPool.UNDERLINE).concat(detailPlan.getSubName()),
|
||||
IdWorker.get32UUID(),
|
||||
id,
|
||||
ProblemTypeEnum.SITE_TEST.getCode(),
|
||||
LeafletTypeEnum.ALARM.getCode()
|
||||
);
|
||||
//将当前的问题记录是否告警修改为已告警
|
||||
LambdaUpdateWrapper<SupervisionGeneralSurveyPlanDetailPO> detailPOLambdaUpdateWrapper = new LambdaUpdateWrapper<>();
|
||||
detailPOLambdaUpdateWrapper.set(SupervisionGeneralSurveyPlanDetailPO::getInitiateWarningFlag, 1)
|
||||
.eq(SupervisionGeneralSurveyPlanDetailPO::getPlanNo, id)
|
||||
.eq(SupervisionGeneralSurveyPlanDetailPO::getSubId, subId);
|
||||
supervisionGeneralSurveyPlanDetailPOService.update(detailPOLambdaUpdateWrapper);
|
||||
}
|
||||
|
||||
|
||||
public List<DeptSubstationVO> recursion(DeptSubstationVO result, String orgdid) {
|
||||
List<DeptSubstationVO> deptSubstationVOList = new ArrayList<>();
|
||||
@@ -318,13 +378,13 @@ public class SupervisionGeneralSurveyPlanPOServiceImpl extends ServiceImpl<Super
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description: 校验计划名称是否存在
|
||||
* @Param: * @param userReportParam 用户申请数据
|
||||
* * @param isExcludeSelf 是否排除自己,一般新增不排除,更新时需要排除自己
|
||||
* @return: void
|
||||
* @Author: clam
|
||||
* @Date: 2024/5/13
|
||||
*/
|
||||
* @Description: 校验计划名称是否存在
|
||||
* @Param: * @param userReportParam 用户申请数据
|
||||
* * @param isExcludeSelf 是否排除自己,一般新增不排除,更新时需要排除自己
|
||||
* @return: void
|
||||
* @Author: clam
|
||||
* @Date: 2024/5/13
|
||||
*/
|
||||
private void checkPlanName(SupervisionGeneralSurveyPlanParm supervisionGeneralSurveyPlanParm, boolean isExcludeSelf) {
|
||||
LambdaQueryWrapper<SupervisionGeneralSurveyPlanPO> userReportPOLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
userReportPOLambdaQueryWrapper
|
||||
|
||||
Reference in New Issue
Block a user