| | |
| | | * @return |
| | | */ |
| | | public List<SelectTermDTO> superviceUnitChoose(String caseId) { |
| | | try { |
| | | CaseInfoUnfold caseInfoUnfold = getById(caseId); |
| | | List<String> unitIdList = new ArrayList<>(); |
| | | unitIdList.add(caseInfoUnfold.getMediateUnitId()); |
| | | if(StringUtils.isNotBlank(caseInfoUnfold.getAssistUnitId())){ |
| | | unitIdList.addAll(Arrays.stream(caseInfoUnfold.getAssistUnitId().split(",")).map(String::valueOf).collect(Collectors.toList())); |
| | | } |
| | | List<SelectTermDTO> selectTermDTOList = new ArrayList<>(); |
| | | for(String unitId: unitIdList){ |
| | | CtUnitDTO ctUnitDTO = custClient.getUnitById(unitId); |
| | |
| | | selectTermDTOList.add(unitSelectTerm); |
| | | } |
| | | return selectTermDTOList; |
| | | }catch (Exception e){ |
| | | log.error("[CaseInfoUnfoldService.superviceUnitChoose] 调用失败,异常信息:"+e, e); |
| | | throw new ServiceException("CaseInfoUnfoldService.superviceUnitChoose", e); |
| | | } |
| | | } |
| | | } |