This commit is contained in:
wangjinlei
2023-09-28 16:28:34 +08:00
parent 4849defaef
commit fb7016d471
5 changed files with 30 additions and 35 deletions

View File

@@ -139,10 +139,10 @@ public class BookChapterController {
@RequestMapping("/updateBookChapter")
public R updateBookChapter(@RequestBody BookChapterEntity bookChapter){
BookChapterEntity old_info = bookChapterService.getById(bookChapter.getId());
if(!old_info.getContent().equals(bookChapter.getContent())){
bookChapter.setVoices(""); // 设置voices字段为空
}
// BookChapterEntity old_info = bookChapterService.getById(bookChapter.getId());
// if(!old_info.getContent().equals(bookChapter.getContent())){
// bookChapter.setVoices(""); // 设置voices字段为空
// }
bookChapterService.updateById(bookChapter);
return R.ok();
}