Commit 2a9fc677 authored by luzhuang's avatar luzhuang

修改

parent 3e14381e
...@@ -453,11 +453,10 @@ public class BChapterServiceImpl implements BChapterService { ...@@ -453,11 +453,10 @@ public class BChapterServiceImpl implements BChapterService {
} }
b.setPid(model.getPid()); b.setPid(model.getPid());
b.setSort(sort+i++); b.setSort(sort+i++);
bChapterRepository.updateByPrimaryKeySelective(b); line = bChapterRepository.updateByPrimaryKeySelective(b);
} }
}else{ }else{
bChapterRepository.updateByPrimaryKeySelective(model); line = bChapterRepository.updateByPrimaryKeySelective(model);
} }
//更新修改之前 章中节的sort //更新修改之前 章中节的sort
reSort(bChapter.getPid(), bChapter.getLessonId()); reSort(bChapter.getPid(), bChapter.getLessonId());
......
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