1、禅道#907、#910、#912、#913问题修复;2、模板保存、导入提示优化;3、新增系统管理部分数字入参相关校验;

This commit is contained in:
gaoqr
2024-12-09 16:07:50 +08:00
parent 586e23d3f9
commit 1138c70ec9
13 changed files with 96 additions and 13 deletions
@@ -26,7 +26,7 @@ public class ReportTemplateSaveReqVO {
private Long id;
@Schema(description = "模板名称", example = "生产单模板")
@NotBlank
@NotBlank(message = "模板名称不能为空")
@Length(min = 1, max = 30, message = "模板名称长度不能超过30个字符")
private String name;
@@ -9,6 +9,7 @@ import cn.hutool.core.util.URLUtil;
import cn.hutool.http.ContentType;
import cn.hutool.http.Header;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONException;
import com.alibaba.fastjson.JSONObject;
import com.bstek.common.exception.ReportDesignException;
import com.bstek.designer.bean.PreviewParameters;
@@ -524,6 +525,8 @@ public class ReportTemplateServiceImpl implements ReportTemplateService {
template.setType(ReportTemplateTypeEnum.CUSTOM);
}
templateMapper.insert(template);
} catch (JSONException je) {
throw new ReportException("文件解析失败,请检查文件格式和内容");
} catch (ServiceException sex) {
throw sex;
} catch (Exception ex) {