Commit b7a828a79b6e96271baab7d44d118c5010c77985
1 parent
9b997e71
Exists in
master
1
Showing
3 changed files
with
2 additions
and
1 deletions
Show diff stats
src/main/java/com/sincere/student/controller/AdminController.java
@@ -278,7 +278,6 @@ public class AdminController { | @@ -278,7 +278,6 @@ public class AdminController { | ||
278 | @RequestMapping(value = "/video/getList" , method = RequestMethod.POST) | 278 | @RequestMapping(value = "/video/getList" , method = RequestMethod.POST) |
279 | public BaseDto<Page<Video>> getVideoList(@RequestBody VideoSearchDto videoSearchDto){ | 279 | public BaseDto<Page<Video>> getVideoList(@RequestBody VideoSearchDto videoSearchDto){ |
280 | BaseDto<Page<Video>> result = new BaseDto<>() ; | 280 | BaseDto<Page<Video>> result = new BaseDto<>() ; |
281 | - videoSearchDto.setStatus(1); | ||
282 | Page<Video> page = videoService.getList(videoSearchDto); | 281 | Page<Video> page = videoService.getList(videoSearchDto); |
283 | result.setData(page); | 282 | result.setData(page); |
284 | System.out.println("result:"+result.toString()+"----------page:"+page.toString()); | 283 | System.out.println("result:"+result.toString()+"----------page:"+page.toString()); |
src/main/java/com/sincere/student/controller/AppController.java
@@ -280,6 +280,7 @@ public class AppController { | @@ -280,6 +280,7 @@ public class AppController { | ||
280 | @RequestMapping(value = "/video/getList" , method = RequestMethod.POST) | 280 | @RequestMapping(value = "/video/getList" , method = RequestMethod.POST) |
281 | public BaseDto<Page<Video>> getVideoList(@RequestBody VideoSearchDto videoSearchDto){ | 281 | public BaseDto<Page<Video>> getVideoList(@RequestBody VideoSearchDto videoSearchDto){ |
282 | BaseDto<Page<Video>> result = new BaseDto<>() ; | 282 | BaseDto<Page<Video>> result = new BaseDto<>() ; |
283 | + videoSearchDto.setStatus(1); | ||
283 | Page<Video> page = videoService.getUniversityList(videoSearchDto); | 284 | Page<Video> page = videoService.getUniversityList(videoSearchDto); |
284 | result.setData(page); | 285 | result.setData(page); |
285 | return result ; | 286 | return result ; |
src/main/resources/mapper/VideoMapper.xml
@@ -67,6 +67,7 @@ | @@ -67,6 +67,7 @@ | ||
67 | and 1 = 1 | 67 | and 1 = 1 |
68 | </if> | 68 | </if> |
69 | </where> | 69 | </where> |
70 | + order by v.sort | ||
70 | </select> | 71 | </select> |
71 | 72 | ||
72 | <select id="getListCount" parameterType="com.sincere.student.dto.VideoSearchDto" resultType="java.lang.Integer"> | 73 | <select id="getListCount" parameterType="com.sincere.student.dto.VideoSearchDto" resultType="java.lang.Integer"> |