Commit 3a7fcd65b0fd649444d06e3b4456d3186431ec94
1 parent
2ab8bb89
数美送审时间改为10点到23点
Showing
2 changed files
with
1 additions
and
2 deletions
src/main/java/com/cnlive/shenhe/job/VideosJob.java
| @@ -54,7 +54,7 @@ public class VideosJob { | @@ -54,7 +54,7 @@ public class VideosJob { | ||
| 54 | /** | 54 | /** |
| 55 | * 定时发送数美检测视频 | 55 | * 定时发送数美检测视频 |
| 56 | */ | 56 | */ |
| 57 | - @Scheduled(cron="0 0/1 7-23 * * ? ")//每天7点到23点执行,每分钟一次 | 57 | + @Scheduled(cron="0 0/1 10-23 * * ? ")//每天10点到23点执行,每分钟一次 |
| 58 | public void videofilter() { | 58 | public void videofilter() { |
| 59 | ShyVideos shyVideos = new ShyVideos(); | 59 | ShyVideos shyVideos = new ShyVideos(); |
| 60 | shyVideos.setShenhe_type(CommonConst.AUDIT_TYPE_MACHANE);//审核类型为机审 | 60 | shyVideos.setShenhe_type(CommonConst.AUDIT_TYPE_MACHANE);//审核类型为机审 |
src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
| @@ -164,7 +164,6 @@ public class VideosServiceImpl { | @@ -164,7 +164,6 @@ public class VideosServiceImpl { | ||
| 164 | //默认按上传时间倒序排序 | 164 | //默认按上传时间倒序排序 |
| 165 | example.setOrderByClause("video_upload_time desc"); | 165 | example.setOrderByClause("video_upload_time desc"); |
| 166 | PageHelper.startPage(page, pageSize, true); | 166 | PageHelper.startPage(page, pageSize, true); |
| 167 | - logger.info("example{}:"+example); | ||
| 168 | List<ShyVideos> shyVideosList = shyVideosMapper.selectByExample(example); | 167 | List<ShyVideos> shyVideosList = shyVideosMapper.selectByExample(example); |
| 169 | PageInfo<ShyVideos> pageInfo = new PageInfo<>(shyVideosList); | 168 | PageInfo<ShyVideos> pageInfo = new PageInfo<>(shyVideosList); |
| 170 | return pageInfo; | 169 | return pageInfo; |