监督类型、告警内容

This commit is contained in:
2024-06-06 21:02:03 +08:00
parent da868550ae
commit ca51c96e9f
7 changed files with 54 additions and 2 deletions

View File

@@ -8,6 +8,8 @@
supervision_survey_plan.custom_substation_flag customSubstationFlag,
supervision_survey_plan.substation substation,
supervision_survey_plan.plan_start_time planStartTime,
supervision_survey_plan.supv_type supvType,
supervision_survey_plan.supv_object_name supvObjectName,
supervision_survey_plan.plan_end_time planEndTime
FROM supervision_survey_test supervision_survey_test
left join supervision_survey_plan supervision_survey_plan

View File

@@ -92,7 +92,7 @@ public class SupervisionUserComplaintPOServiceImpl extends ServiceImpl<Supervisi
id,
ProblemTypeEnum.USER.getCode(),
LeafletTypeEnum.ALARM.getCode(),
complainteDetail
byId.getComplaintText()
);
this.lambdaUpdate().eq(SupervisionUserComplaintPO::getId,id).set(SupervisionUserComplaintPO::getInitiateWarningFlag,1).update();
}

View File

@@ -274,6 +274,8 @@ public class SurveyTestServiceImpl extends ServiceImpl<SurveyTestMapper, SurveyT
surveyTestVO.setPlanStartTime(surveyPlan.getPlanStartTime());
surveyTestVO.setPlanEndTime(surveyPlan.getPlanEndTime());
surveyTestVO.setPlanName(surveyPlan.getPlanName());
surveyTestVO.setSupvType(surveyPlan.getSupvType());
surveyTestVO.setSupvObjectName(surveyPlan.getSupvObjectName());
//负责单位
surveyTestVO.setDeptName(deptFeignClient.getDeptById(surveyTestVO.getDeptId()).getData().getName());
//变电站名称
@@ -308,7 +310,7 @@ public class SurveyTestServiceImpl extends ServiceImpl<SurveyTestMapper, SurveyT
id,
ProblemTypeEnum.SITE_TEST.getCode(),
LeafletTypeEnum.ALARM.getCode(),
assembleIssueDetail(surveyTestVO)
surveyTestVO.getProblemDetail()
);
//将当前的测试数据改为已告警
this.lambdaUpdate().eq(SurveyTest::getId,id).set(SurveyTest::getInitiateWarningFlag,1).update();