|
|
|
@ -501,7 +501,7 @@ public class CourseInfoService extends CoreBaseService<CourseInfo>{
|
|
|
|
|
|
|
|
|
|
buildCourseInfoResources(courseInfoList);
|
|
|
|
|
|
|
|
|
|
courseInfoList.sort((o1, o2) -> defaultIfNull(o1.getOrderIndex(), ZERO).compareTo(defaultIfNull(o2.getOrderIndex(), ZERO)));
|
|
|
|
|
courseInfoList.sort(Comparator.comparing(o -> defaultIfNull(o.getOrderIndex(), ZERO)));
|
|
|
|
|
|
|
|
|
|
return courseInfoList;
|
|
|
|
|
}
|
|
|
|
@ -1230,7 +1230,7 @@ public class CourseInfoService extends CoreBaseService<CourseInfo>{
|
|
|
|
|
if (calcedOrder != null) {
|
|
|
|
|
// 改变排序记录值
|
|
|
|
|
CourseInfo updatePO = new CourseInfo();
|
|
|
|
|
updatePO.setCourseInfoId(mergeCourseInfo.getCourseInfoId());
|
|
|
|
|
updatePO.setCourseInfoId(id);
|
|
|
|
|
updatePO.setOrderIndex(BigDecimal.valueOf(calcedOrder));
|
|
|
|
|
updateTemplate(updatePO);
|
|
|
|
|
flushCache(id);
|
|
|
|
@ -1324,7 +1324,7 @@ public class CourseInfoService extends CoreBaseService<CourseInfo>{
|
|
|
|
|
// 最后更新排序值
|
|
|
|
|
if (clacedOrder != null) {
|
|
|
|
|
CourseInfo updatePO = new CourseInfo();
|
|
|
|
|
updatePO.setCourseInfoId(selfElement.getCourseInfoId());
|
|
|
|
|
updatePO.setCourseInfoId(id);
|
|
|
|
|
updatePO.setOrderIndex(clacedOrder);
|
|
|
|
|
updateTemplate(updatePO);
|
|
|
|
|
flushCache(id);
|
|
|
|
|