소스 검색

微信移动端支付

guomengjiao 1 개월 전
부모
커밋
df61a250cd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      modules/report/src/main/java/com/jeesite/modules/report/service/ResearchReportService.java

+ 2 - 2
modules/report/src/main/java/com/jeesite/modules/report/service/ResearchReportService.java

@@ -962,7 +962,7 @@ public class ResearchReportService extends CrudService<ResearchReportDao, Resear
 						where.setReportRegion(dto.getReportRegion());
 						ResearchReport researchReport = dao.getByEntity(where);
 						if (researchReport != null) {
-							researchReport.setMarketScale(String.format(Constants.textFormat, dto.getMarketScale()));
+							researchReport.setMarketScale(String.format(Constants.textFormat, dto.getMarketScale()).replaceAll("\\n", "<br/>"));
 							saveCount += dao.update(researchReport);
 						} else {
 							msg.append("第"+(i+1)+"行,研究报告对应为空!");
@@ -1018,7 +1018,7 @@ public class ResearchReportService extends CrudService<ResearchReportDao, Resear
 						where.setReportRegion(dto.getReportRegion());
 						ResearchReport researchReport = dao.getByEntity(where);
 						if (researchReport != null) {
-							researchReport.setMarketDriven(String.format(Constants.textFormat, dto.getMarketDriven()));
+							researchReport.setMarketDriven(String.format(Constants.textFormat, dto.getMarketDriven()).replaceAll("\\n", "<br/>"));
 							saveCount += dao.update(researchReport);
 						} else {
 							msg.append("第"+(i+1)+"行,研究报告对应为空!");