Commit ea0055c5ee3ad1335741576ed223c435bb6c8b44
1 parent
f46c37d3
主账号权限修改
Showing
2 changed files
with
4 additions
and
6 deletions
src/main/java/com/cnlive/shenhe/controller/CommentsController.java
| ... | ... | @@ -52,7 +52,7 @@ public class CommentsController { |
| 52 | 52 | Integer page, Integer pageSize, String orderByClause, HttpSession session) { |
| 53 | 53 | SessionUser sessionUser = (SessionUser) session.getAttribute(SessionUser.getSessionKey()); |
| 54 | 54 | Integer spid = sessionUser.getSpid(); |
| 55 | - if (spid == 0) spid = 82; | |
| 55 | + if (spid == 0) spid = null; | |
| 56 | 56 | if (CommonUtils.isNull(page)) page = 1; |
| 57 | 57 | if (CommonUtils.isNull(pageSize)) pageSize = 10; |
| 58 | 58 | Date sDate = null; | ... | ... |
src/main/java/com/cnlive/shenhe/controller/VideosController.java
| ... | ... | @@ -93,9 +93,7 @@ public class VideosController { |
| 93 | 93 | Integer spid = sessionUser.getSpid(); |
| 94 | 94 | if (CommonUtils.isNull(page)) page = 1; |
| 95 | 95 | if (CommonUtils.isNull(pageSize)) pageSize = 10; |
| 96 | - if (CommonUtils.isNotNull(spid) && spid == 0) { | |
| 97 | - spid = 82; | |
| 98 | - } | |
| 96 | + if (spid == 0) spid = null; | |
| 99 | 97 | PageInfo<ShyVideos> videoPage = videosService.getListContent(video_title, start_date, end_date, state, page, pageSize, video_priority, orderByClause, spid); |
| 100 | 98 | List<ShyVideos> list = videoPage.getList(); |
| 101 | 99 | if (!list.isEmpty()) { |
| ... | ... | @@ -108,8 +106,8 @@ public class VideosController { |
| 108 | 106 | user.setUser_id(auditor_id); |
| 109 | 107 | user = usersService.select(user); |
| 110 | 108 | if (CommonUtils.isNotNull(user)) { |
| 111 | - String userName = CommonUtils.isEmpty(user.getUsername())?"":user.getUsername(); | |
| 112 | - String email = CommonUtils.isEmpty(user.getEmail())?"":user.getEmail(); | |
| 109 | + String userName = CommonUtils.isEmpty(user.getUsername()) ? "" : user.getUsername(); | |
| 110 | + String email = CommonUtils.isEmpty(user.getEmail()) ? "" : user.getEmail(); | |
| 113 | 111 | auditor = userName + email; |
| 114 | 112 | } |
| 115 | 113 | } | ... | ... |