Commit e4b5c37d authored by 刘基明's avatar 刘基明

文本查重

parent f040f118
......@@ -209,8 +209,8 @@ public class ThemeManager {
// 校验参数
checkAttachment(req.getContent());
// 文本查重
if (themeTextCheckService.checkDuplicate(ConvertUtil.convertThemeText(JsonUtil.toJson(req.getContent())))) {
// 文本查重,编辑不查
if (StringUtils.isBlank(req.getEditThemeId()) && themeTextCheckService.checkDuplicate(ConvertUtil.convertThemeText(JsonUtil.toJson(req.getContent())))) {
return CommonResp.error(ErrorCodeConstant.THEME_TEXT_DUPLICATE.getCode(),ErrorCodeConstant.THEME_TEXT_DUPLICATE.getMsg());
}
// 保存主题表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment