|
@@ -28,8 +28,10 @@ public class BookCategoryServiceImpl extends ServiceImpl<BookCategoryMapper, Boo
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
|
if(null != bookCategory.getId()){
|
|
|
bookCategoryMapper.updateById(bookCategory);
|
|
|
+ msg.data = bookCategory;
|
|
|
}else{
|
|
|
bookCategoryMapper.insert(bookCategory);
|
|
|
+ msg.data = bookCategory;
|
|
|
}
|
|
|
return msg;
|
|
|
}
|