| | |
| | | @Override |
| | | public StateProjectNoticeVO getStateProjectNoticeVO(String noticeId) { |
| | | StateProjectNotice byId = this.getById(noticeId); |
| | | StateProjectNoticeVO stateProjectNoticeVO = StateProjectConvert.INSTANCE.entityToStateProjectNoticeVO(byId); |
| | | // if (byId != null) { |
| | | // String fileUrl = byId.getFileUrl(); |
| | | // String imgUrl = byId.getImgUrl(); |
| | | // |
| | | // if (fileUrl != null && !fileUrl.isEmpty()) { |
| | | // stateProjectNoticeVO.setFileUrlList(Arrays.asList(fileUrl.split(","))); |
| | | // } else { |
| | | // stateProjectNoticeVO.setFileUrlList(Collections.emptyList()); // 或根据需求设置其他默认值 |
| | | // } |
| | | // |
| | | // if (imgUrl != null && !imgUrl.isEmpty()) { |
| | | // stateProjectNoticeVO.setImgUrlList(Arrays.asList(imgUrl.split(","))); |
| | | // } else { |
| | | // stateProjectNoticeVO.setImgUrlList(Collections.emptyList()); // 或根据需求设置其他默认值 |
| | | // } |
| | | // } |
| | | return stateProjectNoticeVO; |
| | | return StateProjectConvert.INSTANCE.entityToStateProjectNoticeVO(byId); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | return list.stream().collect(Collectors.groupingBy(StateProjectNotice::getProjectId)); |
| | | } |
| | | |
| | | |
| | | } |