| | |
| | | package cn.huge.module.cases.service; |
| | | |
| | | import cn.huge.base.common.bo.R; |
| | | import cn.huge.base.common.exception.ServiceException; |
| | | import cn.huge.base.common.utils.*; |
| | | import cn.huge.module.casebook.consts.ByCaseTypeEnum; |
| | |
| | | generateQrCodeRequestVo.setBusinessSource("02"); |
| | | generateQrCodeRequestVo.setGenerateUnifiedCode(true); |
| | | generateQrCodeRequestVo.setInfoSource("03"); |
| | | log.info("xsdgridCode:{}",registerSaveDTO.getQueArea()); |
| | | log.info("xsdgridCode:{}", registerSaveDTO.getQueArea()); |
| | | String area = this.formatGridCode(registerSaveDTO.getQueArea()); |
| | | log.info("xsdgridCode:{}",area); |
| | | log.info("xsdgridCode:{}", area); |
| | | generateQrCodeRequestVo.setGridCode(area); |
| | | caseInfo.setCaseRef(sysClient.getCaseRefByGenerateQrCode(generateQrCodeRequestVo)); |
| | | // 获取调解案号 |
| | | caseInfo.setCaseNo(utilsClient.createCaseNo(ctUnitDTO.getArea())); |
| | | // caseInfo.setCaseNo(utilsClient.createCaseNo(ctUnitDTO.getArea())); |
| | | caseInfo.setVisitWay(CaseBaseConstsEnum.getVisitWayByCanal(caseInfo.getCanal()).getIndex()); |
| | | caseInfo.setVisitWayName(CaseBaseConstsEnum.getVisitWayByCanal(caseInfo.getCanal()).getDes()); |
| | | if (caseInfo.getCanal().equals(CaseBaseConstsEnum.CASE_CANAL_3.getIndex())) { |
| | |
| | | caseInfoDTO.setTcqk(caseInfoUnfold.getTcqk()); |
| | | } |
| | | ThGridCitizenEvent thGridCitizenEvent = thGridCitizenEventService.getByCaseId(caseId); |
| | | if(thGridCitizenEvent!=null){ |
| | | if (thGridCitizenEvent != null) { |
| | | caseInfoDTO.setCityCode(thGridCitizenEvent.getCitizenEventCode()); |
| | | } |
| | | } else { |
| | |
| | | generateQrCodeRequestVo.setGridCode(area); |
| | | caseInfo.setCaseRef(sysClient.getCaseRefByGenerateQrCode(generateQrCodeRequestVo)); |
| | | // 生产调解案号 |
| | | caseInfo.setCaseNo(utilsClient.createCaseNo(caseInfo.getQueArea())); |
| | | // caseInfo.setCaseNo(utilsClient.createCaseNo(caseInfo.getQueArea())); |
| | | log.info("xsdcaseInfo:{}", caseInfo); |
| | | caseInfoUnfold.setId(caseInfo.getId()); |
| | | caseInfoUnfold.setCreateTime(nowDate); |
| | |
| | | return caseOverviewDetailDTOs; |
| | | } |
| | | |
| | | public CaseStatisticsBaseDTO ledger(Map<String, Object> terms, String userId,String ledgerType) throws IOException { |
| | | public CaseStatisticsBaseDTO ledger(Map<String, Object> terms, String userId, String ledgerType) throws IOException { |
| | | terms.put("statistics", "1"); |
| | | |
| | | CtUnitDTO ctUnitDTO = null; |
| | |
| | | List<CaseStatisticsAreaDTO> areaList = new ArrayList<>(); |
| | | |
| | | //本系统或者全部的时候才去查询数据 |
| | | if(ObjectUtils.isEmpty(ledgerType) || "1".equals(ledgerType)){ |
| | | if (ObjectUtils.isEmpty(ledgerType) || "1".equals(ledgerType)) { |
| | | caseStatisticsBaseDTO = statisticsProcess(terms); |
| | | |
| | | //区域数据统计 |
| | |
| | | } |
| | | |
| | | // 获取调解案号 |
| | | caseInfo.setCaseNo(utilsClient.createCaseNo(ctUnitDTO.getArea())); |
| | | // caseInfo.setCaseNo(utilsClient.createCaseNo(ctUnitDTO.getArea())); |
| | | caseInfo.setVisitWay(CaseBaseConstsEnum.VISIT_WAY_4.getIndex()); |
| | | caseInfo.setVisitWayName(CaseBaseConstsEnum.VISIT_WAY_4.getDes()); |
| | | if (StringUtils.isEmpty(caseInfo.getCanal())) { |
| | |
| | | .insert(5, "-") |
| | | .toString(); |
| | | } |
| | | |
| | | public R<String> createCaseNo(String userId) { |
| | | CtUnitDTO unitByUserId = custClient.getUnitByUserId(userId); |
| | | return R.ok(utilsClient.createCaseNo(unitByUserId.getArea())); |
| | | } |
| | | } |