mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 12:52:07 +08:00
1、禅道#907、#910、#912、#913问题修复;2、模板保存、导入提示优化;3、新增系统管理部分数字入参相关校验;
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
+3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user