|
@@ -77,7 +77,9 @@ public class CourseInfoController {
|
|
|
param.put("majorId", req.getParameter("majorId"));
|
|
param.put("majorId", req.getParameter("majorId"));
|
|
|
param.put("courseType", req.getParameter("courseType"));
|
|
param.put("courseType", req.getParameter("courseType"));
|
|
|
//排序类型,0最新,1热门
|
|
//排序类型,0最新,1热门
|
|
|
- param.put("sortflag", req.getParameter("sortflag"));
|
|
|
|
|
|
|
+ String sortflag="0";
|
|
|
|
|
+ if(StringUtils.isNotEmpty(req.getParameter("sortflag")))sortflag=req.getParameter("sortflag");
|
|
|
|
|
+ param.put("sortflag", sortflag);
|
|
|
|
|
|
|
|
Page<Map<String,Object>> list=courseInfoService.queryList(param);
|
|
Page<Map<String,Object>> list=courseInfoService.queryList(param);
|
|
|
return CommonResult.data(list);
|
|
return CommonResult.data(list);
|