Commit df6056a5 authored by jiawei's avatar jiawei

BUG修改===》》》修改学习内容展板列表排序问题

parent 991c5a7c
......@@ -183,15 +183,15 @@ public class LearningContentBoardController extends BaseController {
return getFailResult("排序展板不存在");
}
//排序字段互换
LearningContentBoard lcbS = theSource.get(0);
LearningContentBoard lcbT = theTarget.get(0);
Integer sortorderSource = theSource.get(0).getSortorder();
Integer sortorderTarget = theTarget.get(0).getSortorder();
theSource.stream().forEach(s -> {
s.setSortorder(lcbT.getSortorder());
s.setSortorder(sortorderTarget);
});
theTarget.stream().forEach(t -> {
t.setSortorder(lcbS.getSortorder());
t.setSortorder(sortorderSource);
});
boolean batch = learningContentBoardService.updateBatchById(theSource);
......
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