Commit f097de578b543cf780acb824c5e3ddd85a940ab2
1 parent
0ed9fb08
去除冗余代码
Showing
1 changed file
with
1 additions
and
7 deletions
src/main/java/com/cnlive/shenhe/controller/VideosController.java
| ... | ... | @@ -98,13 +98,7 @@ public class VideosController { |
| 98 | 98 | public Object getListVideos(Model model, String video_title, String start_date, String end_date, Integer state, Boolean receive, Integer page, Integer pageSize, String video_priority, String orderByClause, HttpSession session) { |
| 99 | 99 | SessionUser sessionUser = (SessionUser) session.getAttribute(SessionUser.getSessionKey()); |
| 100 | 100 | Integer spid = sessionUser.getSpid(); |
| 101 | - String userId = null; | |
| 102 | - //如果是我的待审则获取本人id | |
| 103 | - if (CommonUtils.isNotNull(receive)) { | |
| 104 | - if (receive == true) { | |
| 105 | - userId = sessionUser.getUserId(); | |
| 106 | - } | |
| 107 | - } | |
| 101 | + String userId = sessionUser.getUserId(); | |
| 108 | 102 | if (CommonUtils.isNull(page)) page = 1; |
| 109 | 103 | if (CommonUtils.isNull(pageSize)) pageSize = 10; |
| 110 | 104 | if (spid == 0) spid = null; | ... | ... |