Browse Source

fix: 修复导出时会议记录的内容无法换行的问题

zhongwei
liwen 7 months ago
parent
commit
0113c5767f
  1. 3
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ConferenceRecordServiceImpl.java

3
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/ConferenceRecordServiceImpl.java

@ -116,6 +116,9 @@ public class ConferenceRecordServiceImpl extends ServiceImpl<ConferenceRecordMap
String code = conferenceRecordDetailVO.getCode();
conferenceRecordDetailVO.setYear(code.substring(4, 8));
conferenceRecordDetailVO.setMonth(code.substring(8, 10));
// 内容: 换行符使用\r\n
String standardContent = conferenceRecordDetailVO.getContent().replaceAll("\n", "\r\n");
conferenceRecordDetailVO.setContent(standardContent);
// 图片
List<ImageEntity> list = new ArrayList<>();
if (StringUtils.isNotEmpty(conferenceRecordDetailVO.getImgPath())) {

Loading…
Cancel
Save