| | |
| | | package com.ycl.service.caseHandler.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | 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.ycl.bo.casePool.CasePoolIllegalBuildingDO; |
| | | import com.ycl.bo.casePool.CasePoolViolationDO; |
| | | import com.ycl.bo.casePool.CurrentSitVo; |
| | | import com.ycl.bo.casePool.*; |
| | | import com.ycl.dto.casePool.IllegalBuildingParam; |
| | | import com.ycl.dto.casePool.ViolationParam; |
| | | import com.ycl.entity.caseHandler.*; |
| | |
| | | import java.time.Instant; |
| | | import java.time.LocalDateTime; |
| | | import java.time.ZoneOffset; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | InvestigationMapper investigationMapper; |
| | | @Resource |
| | | WritMapper writMapper; |
| | | |
| | | @Resource |
| | | WorkflowConfigStepMapper workflowConfigStepMapper; |
| | | @Resource |
| | | WorkflowConfigMapper workflowConfigMapper; |
| | | |
| | | |
| | | @Override |
| | |
| | | BaseCase baseCase = baseCaseMapper.selectOne(wrapper); |
| | | bcd.setBaseCase(baseCase); |
| | | //2.查询办理经过信息 |
| | | //2.1查询处置流程配置 |
| | | HandlePassVo handlePassVo = new HandlePassVo(); |
| | | QueryWrapper<WorkflowConfig> wrapperWc = new QueryWrapper<>(); |
| | | wrapperWc.lambda().eq(WorkflowConfig::getCode, "ddlc").or().eq(WorkflowConfig::getCode, "wtcllc"); |
| | | List<WorkflowConfig> wcs = workflowConfigMapper.selectList(wrapperWc); |
| | | Integer ddlcId=0,wtcllcId=0; |
| | | for (WorkflowConfig wc : wcs) { |
| | | if ("ddlc".equals(wc.getCode())) { |
| | | ddlcId = wc.getId(); |
| | | } |
| | | if ("wtcllc".equals(wc.getCode())) { |
| | | wtcllcId = wc.getId(); |
| | | } |
| | | } |
| | | //2.2查询处置流程环节配置 |
| | | QueryWrapper<WorkflowConfigStep> wrapperWcs = new QueryWrapper<>(); |
| | | wrapperWcs.lambda().eq(WorkflowConfigStep::getWorkflowConfigId, ddlcId); |
| | | List<WorkflowConfigStep> listWcs = workflowConfigStepMapper.selectList(wrapperWcs); |
| | | //2.3设置调度流程 |
| | | handlePassVo.setWorkflowConfigSteps(listWcs); |
| | | bcd.setHandlePassVo(handlePassVo); |
| | | //3.查询案卷图片信息 |
| | | //4.查询问题处理信息 |
| | | ProblemProVo problemProVo = new ProblemProVo(); |
| | | //4.2查询处置流程环节配置 |
| | | QueryWrapper<WorkflowConfigStep> wrapperWcsPp = new QueryWrapper<>(); |
| | | wrapperWcsPp.lambda().eq(WorkflowConfigStep::getWorkflowConfigId, wtcllcId); |
| | | List<WorkflowConfigStep> listWcsPp = workflowConfigStepMapper.selectList(wrapperWcsPp); |
| | | //4.3设置调度流程 |
| | | problemProVo.setWorkflowConfigSteps(listWcsPp); |
| | | bcd.setProblemProVo(problemProVo); |
| | | //5.查询现场情况信息 |
| | | CurrentSitVo currentSitVo = new CurrentSitVo(); |
| | | QueryWrapper<ArrivalSituation> wrapperAs = new QueryWrapper<>(); |
| | | wrapperAs.lambda().eq(ArrivalSituation::getBaseCaseId, baseCase.getId()); |
| | | //设置到达现场情况 |
| | | ArrivalSituation as = arrivalSituationMapper.selectOne(wrapperAs); |
| | | currentSitVo.setArrivalSituation(as); |
| | |
| | | bcd.setCurrentSitVo(currentSitVo); |
| | | return bcd; |
| | | } |
| | | |
| | | @Override |
| | | public ArrayList<String> listCaseImages(Integer id, Integer type) { |
| | | Integer illegalBuildingType = 02; |
| | | ArrayList<String> caseImages = new ArrayList<>(); |
| | | caseImages.add(investigationMapper |
| | | .selectOne(new LambdaQueryWrapper<Investigation>() |
| | | .eq(Investigation::getBaseCaseId, id)).getPic()); |
| | | caseImages.add(arrivalSituationMapper |
| | | .selectOne(new LambdaQueryWrapper<ArrivalSituation>() |
| | | .eq(ArrivalSituation::getBaseCaseId, id)).getSituationPic()); |
| | | if (type == illegalBuildingType) { |
| | | Writ writ = writMapper.selectOne(new LambdaQueryWrapper<Writ>().eq(Writ::getBaseCaseId, id)); |
| | | caseImages.add(writ.getWritPic()); |
| | | caseImages.add(writ.getOriginalPic()); |
| | | caseImages.add(writ.getOtherPic()); |
| | | caseImages.add(writ.getRectifiedPic()); |
| | | } |
| | | return caseImages; |
| | | } |
| | | } |