Commit 715652b8 authored by unset's avatar unset

完善接口信息

parent 78de4310
......@@ -39,7 +39,7 @@ public class NewsTypeBiz extends BaseBiz<NewsTypeMapper, NewsType> {
}
if (StringUtils.isNotBlank(newsType.getNameCn())) {
NewsType nameValue = getOneByName(newsType.getNameCn());
if (nameValue != null) {
if (nameValue != null && !nameValue.getId().equals(newsType.getId())) {
return ObjectRestResponse.createFailedResult(ResultCode.FAILED_CODE, "新闻分类名称已存在!");
}
}
......
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