Commit 02603811 by 段启岩

修复博客更新时报错

parent 2631d37b
......@@ -326,7 +326,9 @@ public class BlogServiceImpl extends ServiceImpl<BlogMapper, Blog> implements IB
}
//2.更新博客基本信息
blog.setCategory(blogCategory.getCategory());
if (null != blogCategory) {
blog.setCategory(blogCategory.getCategory());
}
updateById(blog);
//3.更新博客内容
......
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