|
|
|
@ -109,16 +109,19 @@ public class ConferenceRecordServiceImpl extends ServiceImpl<ConferenceRecordMap
|
|
|
|
|
conferenceRecordDetailVO.setYear(code.substring(4, 8)); |
|
|
|
|
conferenceRecordDetailVO.setMonth(code.substring(8, 10)); |
|
|
|
|
// 图片
|
|
|
|
|
List<ImageEntity> list = new ArrayList<>(); |
|
|
|
|
if (StringUtils.isNotEmpty(conferenceRecordDetailVO.getImgPath())) { |
|
|
|
|
String[] imgArr = conferenceRecordDetailVO.getImgPath().split(","); |
|
|
|
|
List<ImageEntity> list = new ArrayList<>(); |
|
|
|
|
for (String img : imgArr) { |
|
|
|
|
ImageEntity imageEntity = new ImageEntity(BaseUtil.imgToByte(savePath + |
|
|
|
|
BaseUtil.downloadFileByUrl(img, savePath)), 180, 150); |
|
|
|
|
list.add(imageEntity); |
|
|
|
|
} |
|
|
|
|
conferenceRecordDetailVO.setImages(list); |
|
|
|
|
} else { |
|
|
|
|
// 添加空的ImageEntity,防止数据填入时显示"{{"
|
|
|
|
|
list.add(new ImageEntity()); |
|
|
|
|
} |
|
|
|
|
conferenceRecordDetailVO.setImages(list); |
|
|
|
|
Map<String, Object> params = BaseUtil.obj2Map(conferenceRecordDetailVO); |
|
|
|
|
String templateFile = "template/会议记录表" + SafeProductConstant.DOCX_SUFFIX; |
|
|
|
|
String wordPath = savePath + "/会议记录表" + SafeProductConstant.DOCX_SUFFIX; |
|
|
|
|