mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-25 02:32:57 +08:00
fix: 【FCJDFDXTXS-145】分页查询换成原始sql
This commit is contained in:
@@ -1226,16 +1226,16 @@ public class StudyCourseApi extends ApiBaseController{
|
||||
return error("无课程信息");
|
||||
}
|
||||
try {
|
||||
PageList<StudyCourseItem> rs = studyService.findItemPage(pager.getPageIndex(), pager.getPageSize(), null, contentId, courseId, name, status,aid);
|
||||
// // 换方法
|
||||
// List<String> userIdList;
|
||||
// if (StringUtils.isNotBlank(aid)) {
|
||||
// String[] ids = aid.split(",");
|
||||
// userIdList = Arrays.asList(ids);
|
||||
// } else {
|
||||
// userIdList = new ArrayList<>();
|
||||
// }
|
||||
// PageList<StudyCourseItem> rs = studyService.itemPage(pager.getPageIndex(), pager.getPageSize(), contentId, courseId, status, userIdList);
|
||||
// PageList<StudyCourseItem> rs = studyService.findItemPage(pager.getPageIndex(), pager.getPageSize(), null, contentId, courseId, name, status,aid);
|
||||
// 换方法
|
||||
List<String> userIdList;
|
||||
if (StringUtils.isNotBlank(aid)) {
|
||||
String[] ids = aid.split(",");
|
||||
userIdList = Arrays.asList(ids);
|
||||
} else {
|
||||
userIdList = new ArrayList<>();
|
||||
}
|
||||
PageList<StudyCourseItem> rs = studyService.itemPage(pager.getPageIndex(), pager.getPageSize(), contentId, courseId, status, userIdList);
|
||||
// 25.12.17按照finishTime字段降序排列
|
||||
List<StudyCourseItem> studyCourseItems = rs.getList();
|
||||
if (studyCourseItems != null && !studyCourseItems.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user