1.统计分析-》在线监测点-》稳态指标合格率接口调整
2.技术监督测试管理,调整查询语句增加实际完成时间
This commit is contained in:
@@ -272,7 +272,7 @@ public class SurveyPlanServiceImpl extends ServiceImpl<SurveyPlanMapper, SurveyP
|
||||
name = data.getName();
|
||||
}
|
||||
String sign = name.concat("->")
|
||||
.concat(surveyPlanVO.getPlanName());
|
||||
.concat(surveyPlanVO.getSupvObjectName());
|
||||
bpmInstanceInfo.setInstanceSign(sign);
|
||||
return bpmInstanceInfo;
|
||||
}
|
||||
@@ -312,11 +312,13 @@ public class SurveyPlanServiceImpl extends ServiceImpl<SurveyPlanMapper, SurveyP
|
||||
String[] subIds = substation.split(StrPool.COMMA);
|
||||
for (String subId : subIds) {
|
||||
PollutionSubstationDTO data = lineFeignClient.getSubstationInfo(subId).getData();
|
||||
SurveySubstation surveySubstation = new SurveySubstation();
|
||||
surveySubstation.setDataSource(0);
|
||||
surveySubstation.setSubstationName(data.getName());
|
||||
surveySubstation.setVoltageLevel(data.getVoltageLevel());
|
||||
surveySubstationList.add(surveySubstation);
|
||||
if(ObjectUtil.isNotNull(data)){
|
||||
SurveySubstation surveySubstation = new SurveySubstation();
|
||||
surveySubstation.setDataSource(0);
|
||||
surveySubstation.setSubstationName(data.getName());
|
||||
surveySubstation.setVoltageLevel(data.getVoltageLevel());
|
||||
surveySubstationList.add(surveySubstation);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -31,7 +31,6 @@ import com.njcn.supervision.pojo.param.leaflet.WarningAddParam;
|
||||
import com.njcn.supervision.pojo.param.survey.SurveyTestParam;
|
||||
import com.njcn.supervision.pojo.po.survey.SurveyPlan;
|
||||
import com.njcn.supervision.pojo.po.survey.SurveyTest;
|
||||
import com.njcn.supervision.pojo.vo.leaflet.WarningLeafletVO;
|
||||
import com.njcn.supervision.pojo.vo.survey.SurveyTestVO;
|
||||
import com.njcn.supervision.service.leaflet.IWarningLeafletService;
|
||||
import com.njcn.supervision.service.survey.ISurveyPlanService;
|
||||
@@ -100,6 +99,11 @@ public class SurveyTestServiceImpl extends ServiceImpl<SurveyTestMapper, SurveyT
|
||||
x.isNull("supervision_survey_test.complete_time")
|
||||
.le("supervision_survey_plan.plan_start_time", surveyTestQueryParam.getSearchBeginTime())
|
||||
)
|
||||
.or(x->
|
||||
x.between("supervision_survey_test.complete_time",
|
||||
DateUtil.beginOfDay(DateUtil.parse(surveyTestQueryParam.getSearchBeginTime())),
|
||||
DateUtil.endOfDay(DateUtil.parse(surveyTestQueryParam.getSearchEndTime())))
|
||||
)
|
||||
);
|
||||
|
||||
//根据工程名称模糊搜索
|
||||
@@ -313,16 +317,18 @@ public class SurveyTestServiceImpl extends ServiceImpl<SurveyTestMapper, SurveyT
|
||||
if(Objects.nonNull(data)){
|
||||
name = data.getName();
|
||||
}
|
||||
String sign = name.concat("由")
|
||||
.concat(surveyTestVO.getDeptName())
|
||||
.concat("负责")
|
||||
.concat(surveyTestVO.getPlanName())
|
||||
.concat(",由")
|
||||
.concat(surveyTestVO.getCompleteBy())
|
||||
.concat(",在")
|
||||
.concat(LocalDateTimeUtil.format(surveyTestVO.getCompleteTime(),DatePattern.CHINESE_DATE_PATTERN))
|
||||
.concat("完成计划测试。")
|
||||
;
|
||||
// String sign = name.concat("由")
|
||||
// .concat(surveyTestVO.getDeptName())
|
||||
// .concat("负责")
|
||||
// .concat(surveyTestVO.getPlanName())
|
||||
// .concat(",由")
|
||||
// .concat(surveyTestVO.getCompleteBy())
|
||||
// .concat(",在")
|
||||
// .concat(LocalDateTimeUtil.format(surveyTestVO.getCompleteTime(),DatePattern.CHINESE_DATE_PATTERN))
|
||||
// .concat("完成计划测试。")
|
||||
// ;
|
||||
String sign = name.concat("->")
|
||||
.concat(surveyTestVO.getSupvObjectName());
|
||||
bpmInstanceInfo.setInstanceSign(sign);
|
||||
return bpmInstanceInfo;
|
||||
}
|
||||
|
||||
@@ -234,12 +234,14 @@ public class UserReportPOServiceImpl extends ServiceImpl<UserReportPOMapper, Use
|
||||
// 发起 BPM 流程
|
||||
Map<String, Object> processInstanceVariables = new HashMap<>();
|
||||
BpmProcessInstanceCreateReqDTO bpmProcessInstanceCreateReqDTO = new BpmProcessInstanceCreateReqDTO();
|
||||
//干扰源用户台账和敏感用户审核流程
|
||||
if (userReportPO.getDataType() == 1) {
|
||||
bpmProcessInstanceCreateReqDTO.setProcessDefinitionKey(SupervisionKeyEnum.BUILD_USER_INFO_ARCHIVIST.getKey());
|
||||
}else{
|
||||
bpmProcessInstanceCreateReqDTO.setProcessDefinitionKey(SupervisionKeyEnum.BUILD_USER_INFO.getKey());
|
||||
String key = SupervisionKeyEnum.BUILD_USER_INFO.getKey();
|
||||
if(ObjectUtil.isNotNull(userReportPO.getDataType())){
|
||||
//干扰源用户台账和敏感用户审核流程
|
||||
if (userReportPO.getDataType() == 1) {
|
||||
key = SupervisionKeyEnum.BUILD_USER_INFO_ARCHIVIST.getKey();
|
||||
}
|
||||
}
|
||||
bpmProcessInstanceCreateReqDTO.setProcessDefinitionKey(key);
|
||||
bpmProcessInstanceCreateReqDTO.setBusinessKey(userReportPO.getId());
|
||||
bpmProcessInstanceCreateReqDTO.setStartUserSelectAssignees(userReportParam.getStartUserSelectAssignees());
|
||||
bpmProcessInstanceCreateReqDTO.setVariables(processInstanceVariables);
|
||||
|
||||
Reference in New Issue
Block a user