Commit fc2a8478 authored by jiawei's avatar jiawei

审核学习内容添加排序字段的值

parent 9d277eb8
......@@ -525,7 +525,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
learningContentBoardQueryWrapper.select("max(sortorder) as sortorder");
LearningContentBoard one1 = learningContentBoardService.getOne(learningContentBoardQueryWrapper);
if (one1 != null && one1.getSortorder() != null) {
learningContentBoard.setSortorder(one.getSortorder() + 1);
learningContentBoard.setSortorder(one1.getSortorder() + 1);
} else {
learningContentBoard.setSortorder(1);
}
......
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