Commit c7f73a9b0d2c0aad0cf20108f4bccdac89d2b1e0
1 parent
31f62975
update
Showing
2 changed files
with
5 additions
and
14 deletions
src/main/java/com/cnlive/shenhe/controller/VideosController.java
| ... | ... | @@ -292,19 +292,12 @@ public class VideosController extends BaseController { |
| 292 | 292 | * @param response |
| 293 | 293 | */ |
| 294 | 294 | @GetMapping("excel") |
| 295 | - public void getExcel(String video_title, String start_date, String end_date, Integer state, Integer receive, String video_priority, String sp_Id,Integer source,String video_user_id,String sp_desc,String orderByClause, HttpSession session, HttpServletResponse response) { | |
| 295 | + public void getExcel(String video_title, String start_date, String end_date, Integer state, Integer receive, String video_priority, Integer source,String video_user_id,String orderByClause, HttpSession session, HttpServletResponse response) { | |
| 296 | 296 | SessionUser sessionUser = (SessionUser) session.getAttribute(SessionUser.getSessionKey()); |
| 297 | 297 | Integer spid = sessionUser.getSpid(); |
| 298 | 298 | String userId = sessionUser.getUserId(); |
| 299 | - if (CommonUtils.isNotEmpty(sp_desc) && spid == 0) { | |
| 300 | - ShySites shySite = sitesService.findspidBySpdesc(sp_desc); | |
| 301 | - if (CommonUtils.isNotNull(shySite)) { | |
| 302 | - spid = shySite.getSpid(); | |
| 303 | - } | |
| 304 | - } else if (CommonUtils.isEmpty(sp_desc) && spid == 0) { | |
| 305 | - spid = null; | |
| 306 | - } | |
| 307 | - List<ShyVideos> shyVideosList = videosService.findByCondition(video_title, start_date, end_date, state, receive, video_priority, orderByClause, spid, userId,sp_Id, source, video_user_id); | |
| 299 | + if (spid == 0) spid = null; | |
| 300 | + List<ShyVideos> shyVideosList = videosService.findByCondition(video_title, start_date, end_date, state, receive, video_priority, orderByClause, spid, userId, source, video_user_id); | |
| 308 | 301 | String fileName = "点播数据"; |
| 309 | 302 | String updater = "";//审核员名字 |
| 310 | 303 | String state1 = "";//审核状态 1已审核 2审核拒绝 0未审核 | ... | ... |
src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
| ... | ... | @@ -265,7 +265,7 @@ public class VideosServiceImpl { |
| 265 | 265 | * @param userId |
| 266 | 266 | * @return |
| 267 | 267 | */ |
| 268 | - public List<ShyVideos> findByCondition(String video_title, String start_date, String end_date, Integer state, Integer receive, String video_priority, String orderByClause, Integer spid, String userId, String sp_Id,Integer source,String video_user_id) { | |
| 268 | + public List<ShyVideos> findByCondition(String video_title, String start_date, String end_date, Integer state, Integer receive, String video_priority, String orderByClause, Integer spid, String userId,Integer source,String video_user_id) { | |
| 269 | 269 | Example example = new Example(ShyVideos.class); |
| 270 | 270 | Example.Criteria criteria = example.createCriteria(); |
| 271 | 271 | Example.Criteria criteria2 = example.createCriteria(); |
| ... | ... | @@ -299,7 +299,7 @@ public class VideosServiceImpl { |
| 299 | 299 | if (CommonUtils.isNotEmpty(video_priority)) { |
| 300 | 300 | criteria.andEqualTo("video_priority", video_priority); |
| 301 | 301 | } |
| 302 | - if (CommonUtils.isNotNull(video_user_id)) { | |
| 302 | + if (CommonUtils.isNotEmpty(video_user_id)) { | |
| 303 | 303 | criteria.andEqualTo("video_user_id", video_user_id); |
| 304 | 304 | } |
| 305 | 305 | |
| ... | ... | @@ -309,8 +309,6 @@ public class VideosServiceImpl { |
| 309 | 309 | |
| 310 | 310 | if (CommonUtils.isNotNull(spid)) { |
| 311 | 311 | criteria.andEqualTo("spid", spid); |
| 312 | - } else if(CommonUtils.isNotEmpty(sp_Id)) { | |
| 313 | - criteria.andEqualTo("spid", sp_Id); | |
| 314 | 312 | } |
| 315 | 313 | |
| 316 | 314 | if (CommonUtils.isNotNull(receive)) { | ... | ... |