报表基础模块:新增保存/修改/复制时校验xml、新增页眉页脚不支持的表达式提示

This commit is contained in:
gaoqr
2025-01-24 11:13:06 +08:00
parent f470af4e89
commit 530c6b074a
@@ -57,7 +57,6 @@ import com.cf.imes.module.report.dal.mysql.datasource.ReportDatasourceMapper;
import com.cf.imes.module.report.dal.mysql.template.ReportTemplateMapper; import com.cf.imes.module.report.dal.mysql.template.ReportTemplateMapper;
import com.cf.imes.module.report.enums.template.ReportTemplateTypeEnum; import com.cf.imes.module.report.enums.template.ReportTemplateTypeEnum;
import com.cf.imes.module.report.utils.TenantParamsUtils; import com.cf.imes.module.report.utils.TenantParamsUtils;
import jodd.util.StringUtil;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@@ -190,7 +189,7 @@ public class ReportTemplateServiceImpl implements ReportTemplateService {
copyTemplateDO.setCreateTime(null); copyTemplateDO.setCreateTime(null);
// 解析xml // 解析xml
String content = copyTemplateDO.getContent(); String content = copyTemplateDO.getContent();
if (StringUtil.isNotEmpty(content)) { if (StringUtils.isNotEmpty(content)) {
// 解析xml // 解析xml
new ReportParser().parse(new ByteArrayInputStream(content.getBytes()), createReqVO.getName()); new ReportParser().parse(new ByteArrayInputStream(content.getBytes()), createReqVO.getName());
} }