mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 20:36:50 +08:00
首页课程排行榜排序问题
This commit is contained in:
@@ -148,13 +148,12 @@ public class PortalIndexApi extends ApiBaseController{
|
|||||||
}
|
}
|
||||||
|
|
||||||
//去重并添加
|
//去重并添加
|
||||||
|
|
||||||
for (Course c:coursePageList.getList()) {
|
for (Course c:coursePageList.getList()) {
|
||||||
for (Course c1:courses) {
|
|
||||||
if(pageList.getList().size()<=6){
|
if(pageList.getList().size()<=6){
|
||||||
pageList.getList().add(c);
|
pageList.getList().add(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//计算下标,
|
//计算下标,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user