|
@@ -1591,7 +1591,11 @@ public class IotRhDailyReportServiceImpl implements IotRhDailyReportService {
|
|
|
|
|
|
|
|
// 4. 施工动态(仅当施工时间为 0 且动态非空时显示;为空则不显示前面的“,”)
|
|
// 4. 施工动态(仅当施工时间为 0 且动态非空时显示;为空则不显示前面的“,”)
|
|
|
if (isZero && StrUtil.isNotBlank(production)) {
|
|
if (isZero && StrUtil.isNotBlank(production)) {
|
|
|
- sb.append(",").append(production);
|
|
|
|
|
|
|
+ // 过滤掉回车、换行符(\r \n),防止拼接后的格式错乱
|
|
|
|
|
+ String cleanProduction = production.replaceAll("[\\r\\n]", "");
|
|
|
|
|
+ if (StrUtil.isNotBlank(cleanProduction)) {
|
|
|
|
|
+ sb.append(",").append(cleanProduction);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
sb.append("。");
|
|
sb.append("。");
|