|
|
|
@ -141,14 +141,14 @@ public class RehearsalRecordServiceImpl extends ServiceImpl<RehearsalRecordMappe
|
|
|
|
|
public void exportRehearsalRecordData(Long id, HttpServletResponse response) { |
|
|
|
|
RehearsalRecordDetailVO rehearsalRecordDetailVO = this.getRecordDetailVOById(id); |
|
|
|
|
// 数据处理
|
|
|
|
|
// 图片
|
|
|
|
|
// 时间
|
|
|
|
|
if (StringUtils.isNotEmpty(rehearsalRecordDetailVO.getActualStartTime())){ |
|
|
|
|
rehearsalRecordDetailVO.setActualStartTime(TimeUtils.format(rehearsalRecordDetailVO.getActualStartTime())); |
|
|
|
|
} |
|
|
|
|
if (StringUtils.isNotEmpty(rehearsalRecordDetailVO.getActualEndTime())){ |
|
|
|
|
rehearsalRecordDetailVO.setActualEndTime(TimeUtils.format(rehearsalRecordDetailVO.getActualEndTime())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 图片
|
|
|
|
|
List<ImageEntity> list = new ArrayList<>(); |
|
|
|
|
if (StringUtils.isNotEmpty(rehearsalRecordDetailVO.getImgPath())) { |
|
|
|
|
String[] imgArr = rehearsalRecordDetailVO.getImgPath().split(","); |
|
|
|
@ -162,6 +162,12 @@ public class RehearsalRecordServiceImpl extends ServiceImpl<RehearsalRecordMappe
|
|
|
|
|
list.add(new ImageEntity()); |
|
|
|
|
} |
|
|
|
|
rehearsalRecordDetailVO.setImages(list); |
|
|
|
|
// 记录:换行符使用\r\n
|
|
|
|
|
String standardRecord = rehearsalRecordDetailVO.getRecord().replaceAll("\n", "\r\n"); |
|
|
|
|
rehearsalRecordDetailVO.setRecord(standardRecord); |
|
|
|
|
// 评价:换行符使用\r\n
|
|
|
|
|
String standardComment = rehearsalRecordDetailVO.getComment().replaceAll("\n", "\r\n"); |
|
|
|
|
rehearsalRecordDetailVO.setComment(standardComment); |
|
|
|
|
// 表头年月
|
|
|
|
|
String code = rehearsalRecordDetailVO.getCode(); |
|
|
|
|
rehearsalRecordDetailVO.setYear(code.substring(4, 8)); |
|
|
|
|