Commit e459622ef8ca5a25be5ecc104755c67bd0674c9a
1 parent
c16b1bbd
打印
Showing
2 changed files
with
2 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/job/UsersSiteJob.java
| @@ -64,7 +64,7 @@ public class UsersSiteJob { | @@ -64,7 +64,7 @@ public class UsersSiteJob { | ||
| 64 | logger.info("httpUrl===" + httpUrl); | 64 | logger.info("httpUrl===" + httpUrl); |
| 65 | Map<String, String> resultMap = HttpUtil.init().post(httpUrl); | 65 | Map<String, String> resultMap = HttpUtil.init().post(httpUrl); |
| 66 | JSONObject result = JSON.parseObject(resultMap.get("result")); | 66 | JSONObject result = JSON.parseObject(resultMap.get("result")); |
| 67 | - logger.error("请求用户云结果,result:{}", result); | 67 | + logger.info("请求用户云结果,result:{}", result); |
| 68 | String errorCode = result.getString("errorCode"); | 68 | String errorCode = result.getString("errorCode"); |
| 69 | if ("0".equals(errorCode)) { | 69 | if ("0".equals(errorCode)) { |
| 70 | JSONArray data = result.getJSONArray("data"); | 70 | JSONArray data = result.getJSONArray("data"); |
src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
| @@ -152,6 +152,7 @@ public class VideosServiceImpl { | @@ -152,6 +152,7 @@ public class VideosServiceImpl { | ||
| 152 | //默认按上传时间倒序排序 | 152 | //默认按上传时间倒序排序 |
| 153 | example.setOrderByClause("video_upload_time desc"); | 153 | example.setOrderByClause("video_upload_time desc"); |
| 154 | PageHelper.startPage(page, pageSize, true); | 154 | PageHelper.startPage(page, pageSize, true); |
| 155 | + logger.info("example:"+example); | ||
| 155 | List<ShyVideos> shyVideosList = shyVideosMapper.selectByExample(example); | 156 | List<ShyVideos> shyVideosList = shyVideosMapper.selectByExample(example); |
| 156 | PageInfo<ShyVideos> pageInfo = new PageInfo<>(shyVideosList); | 157 | PageInfo<ShyVideos> pageInfo = new PageInfo<>(shyVideosList); |
| 157 | return pageInfo; | 158 | return pageInfo; |