1.解决地址问题
2.解决技术监督管理填报人错误问题,并解决展示问题
This commit is contained in:
@@ -30,7 +30,7 @@ import com.njcn.web.controller.BaseController;
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("width = 30,height = 60Renewal")
|
||||
@RequestMapping("/userReportRenewal")
|
||||
@Api(tags = "干扰源常态化管理信息更新")
|
||||
public class UserReportRenewalController extends BaseController {
|
||||
|
||||
|
||||
@@ -235,8 +235,8 @@ public class SurveyPlanServiceImpl extends ServiceImpl<SurveyPlanMapper, SurveyP
|
||||
surveyTest.setInitiateWarningFlag(0);
|
||||
surveyTest.setSubstation(subId);
|
||||
surveyTest.setCustomSubstationFlag(0);
|
||||
surveyTest.setCreateBy("");
|
||||
surveyTest.setStatus(FlowStatusEnum.NEW.getCode());
|
||||
surveyTest.setCreateBy(surveyPlan.getCreateBy());
|
||||
surveyTestService.save(surveyTest);
|
||||
}
|
||||
}
|
||||
@@ -248,7 +248,7 @@ public class SurveyPlanServiceImpl extends ServiceImpl<SurveyPlanMapper, SurveyP
|
||||
surveyTest.setInitiateWarningFlag(0);
|
||||
surveyTest.setCustomSubstationFlag(1);
|
||||
surveyTest.setStatus(FlowStatusEnum.NEW.getCode());
|
||||
surveyTest.setCreateBy(surveyPlan.getCreateBy());
|
||||
surveyTest.setCreateBy("");
|
||||
surveyTestService.save(surveyTest);
|
||||
}
|
||||
}
|
||||
@@ -258,7 +258,6 @@ public class SurveyPlanServiceImpl extends ServiceImpl<SurveyPlanMapper, SurveyP
|
||||
public BpmInstanceInfo getInstanceInfo(String businessId) {
|
||||
BpmInstanceInfo bpmInstanceInfo = new BpmInstanceInfo();
|
||||
SurveyPlanVO surveyPlanVO = this.getVOById(businessId);
|
||||
|
||||
bpmInstanceInfo.setHistoryInstanceId(surveyPlanVO.getHistoryInstanceId());
|
||||
DictData data = dicDataFeignClient.getDicDataById(surveyPlanVO.getSupvType()).getData();
|
||||
String name = "未知监督类型";
|
||||
|
||||
@@ -100,7 +100,6 @@ public class SurveyTestServiceImpl extends ServiceImpl<SurveyTestMapper, SurveyT
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
//根据工程名称模糊搜索
|
||||
if (Objects.nonNull(surveyTestQueryParam.getSearchValue())) {
|
||||
LambdaQueryWrapper<SurveyPlan> surveyPlanLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
@@ -116,16 +115,19 @@ public class SurveyTestServiceImpl extends ServiceImpl<SurveyTestMapper, SurveyT
|
||||
return new Page<>();
|
||||
}
|
||||
}
|
||||
surveyTestVOQueryWrapper.in(CollUtil.isNotEmpty(deptIds), "supervision_survey_test.dept_id", deptIds);
|
||||
if (Objects.nonNull(surveyTestQueryParam.getStatus())) {
|
||||
surveyTestVOQueryWrapper.eq("supervision_survey_test.status", surveyTestQueryParam.getStatus());
|
||||
}
|
||||
|
||||
}//筛选普测负责单位
|
||||
if (StrUtil.isNotBlank(surveyTestQueryParam.getDeptIndex())) {
|
||||
deptIds = deptFeignClient.getDepSonIdtByDeptId(surveyTestQueryParam.getDeptIndex()).getData();
|
||||
}
|
||||
surveyTestVOQueryWrapper.in(CollUtil.isNotEmpty(deptIds), "supervision_survey_test.dept_id", deptIds);
|
||||
if (Objects.nonNull(surveyTestQueryParam.getStatus())) {
|
||||
surveyTestVOQueryWrapper.eq("supervision_survey_test.status", surveyTestQueryParam.getStatus());
|
||||
}
|
||||
//获取当前用户部门所有同事的id,查看该部门下所有的数据
|
||||
surveyTestVOQueryWrapper
|
||||
.eq("supervision_survey_test.state", DataStateEnum.ENABLE.getCode())
|
||||
.orderByDesc("supervision_survey_test.Update_Time");
|
||||
|
||||
Page<SurveyTestVO> surveyTestVOPage = this.baseMapper.surveyTestPage(new Page<>(PageFactory.getPageNum(surveyTestQueryParam), PageFactory.getPageSize(surveyTestQueryParam)), surveyTestVOQueryWrapper);
|
||||
List<SurveyTestVO> records = surveyTestVOPage.getRecords();
|
||||
if (CollectionUtil.isNotEmpty(records)) {
|
||||
@@ -261,11 +263,14 @@ public class SurveyTestServiceImpl extends ServiceImpl<SurveyTestMapper, SurveyT
|
||||
bpmProcessInstanceCreateReqDTO.setBusinessKey(surveyTest.getId());
|
||||
bpmProcessInstanceCreateReqDTO.setStartUserSelectAssignees(new HashMap<>());
|
||||
bpmProcessInstanceCreateReqDTO.setVariables(processInstanceVariables);
|
||||
String processInstanceId = bpmProcessFeignClient.createProcessInstance(surveyTest.getCreateBy(), bpmProcessInstanceCreateReqDTO).getData();
|
||||
String processInstanceId = bpmProcessFeignClient.createProcessInstance(RequestUtil.getUserIndex(), bpmProcessInstanceCreateReqDTO).getData();
|
||||
// 将工作流的编号,更新到流程单中
|
||||
surveyTest.setProcessInstanceId(processInstanceId);
|
||||
//保存历史流程id列表
|
||||
surveyTest.setHistoryInstanceId(historyInstanceIds);
|
||||
surveyTest.setCreateBy(RequestUtil.getUserIndex());
|
||||
surveyTest.setUpdateBy(RequestUtil.getUserIndex());
|
||||
surveyTest.setUpdateTime(LocalDateTimeUtil.now());
|
||||
this.baseMapper.updateById(surveyTest);
|
||||
return surveyTest.getId();
|
||||
}
|
||||
@@ -295,6 +300,9 @@ public class SurveyTestServiceImpl extends ServiceImpl<SurveyTestMapper, SurveyT
|
||||
public BpmInstanceInfo getInstanceInfo(String businessId) {
|
||||
BpmInstanceInfo bpmInstanceInfo = new BpmInstanceInfo();
|
||||
SurveyTestVO surveyTestVO = this.getVOById(businessId);
|
||||
if(Objects.isNull(surveyTestVO)){
|
||||
return bpmInstanceInfo;
|
||||
}
|
||||
bpmInstanceInfo.setHistoryInstanceId(surveyTestVO.getHistoryInstanceId());
|
||||
DictData data = dicDataFeignClient.getDicDataById(surveyTestVO.getSupvType()).getData();
|
||||
String name = "未知监督类型";
|
||||
@@ -317,8 +325,11 @@ public class SurveyTestServiceImpl extends ServiceImpl<SurveyTestMapper, SurveyT
|
||||
|
||||
@Override
|
||||
public SurveyTestVO getVOById(String id) {
|
||||
SurveyTest surveyTest = this.baseMapper.selectById(id);
|
||||
SurveyTestVO surveyTestVO = new SurveyTestVO();
|
||||
SurveyTest surveyTest = this.baseMapper.selectById(id);
|
||||
if(Objects.isNull(surveyTest)){
|
||||
return null;
|
||||
}
|
||||
BeanUtils.copyProperties(surveyTest, surveyTestVO);
|
||||
String planId = surveyTest.getPlanId();
|
||||
SurveyPlan surveyPlan = surveyPlanService.getById(planId);
|
||||
|
||||
Reference in New Issue
Block a user