update 标签管理报错
This commit is contained in:
@@ -6,6 +6,7 @@ import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.common.constant.CommonConstant;
|
||||
import com.jero.common.constant.enums.LanguageEnum;
|
||||
import com.jero.common.exception.JeroBootException;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.common.util.MessageUtils;
|
||||
import com.jero.modules.enums.FixedFieldEnum;
|
||||
@@ -129,7 +130,7 @@ public class LawsTagController extends JeroController<LawsTag, ILawsTagService>
|
||||
}
|
||||
}else{
|
||||
//中英切换提示语
|
||||
return Result.error(MessageUtils.getMessage("tag.edit.属性已存在,请检查"));
|
||||
throw new JeroBootException("tag.edit.属性已存在,请检查");
|
||||
}
|
||||
}else {
|
||||
lawsTagService.add(lawsTag);
|
||||
@@ -197,7 +198,7 @@ public class LawsTagController extends JeroController<LawsTag, ILawsTagService>
|
||||
}
|
||||
//有未删数据,报错
|
||||
} else {
|
||||
return Result.error(MessageUtils.getMessage("tag.edit.属性已存在,请检查"));
|
||||
throw new JeroBootException("tag.edit.属性已存在,请检查");
|
||||
}
|
||||
}
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user