Commit 83b617306a5fc7a06566c48f9aaffb76805b09f8
Merge branch 'dev'
Showing
1 changed file
with
0 additions
and
8 deletions
src/main/java/com/cnlive/shenhe/api/ContentControllerApi.java
| ... | ... | @@ -55,12 +55,8 @@ public class ContentControllerApi { |
| 55 | 55 | shyContent.setContent_id(contentId); |
| 56 | 56 | shyContent.setContent_tag(newContentTag); |
| 57 | 57 | //获取审核类型 |
| 58 | - logger.info("查询审核类型之前"); | |
| 59 | 58 | Integer shenheType = contentService.getShenheType(json.getInteger("spId"), newContentTag); |
| 60 | - logger.info("查询审核类型之后 查询对象之前"); | |
| 61 | 59 | List<ShyContent> contentList = contentService.findShyContent(shyContent); |
| 62 | - logger.info("条件查询之后"); | |
| 63 | - logger.info("条件判断之前"); | |
| 64 | 60 | if (contentList.size() > 0) { |
| 65 | 61 | ShyContent shyContent1 = contentList.get(0); |
| 66 | 62 | // 图文存在则更新 |
| ... | ... | @@ -71,7 +67,6 @@ public class ContentControllerApi { |
| 71 | 67 | yorN = saveOrUpdateContent(json, shyContent, shenheType); |
| 72 | 68 | logger.info("图文同步接口保存操作:{}", contentId); |
| 73 | 69 | } |
| 74 | - logger.info("条件判断之后"); | |
| 75 | 70 | if (yorN) { |
| 76 | 71 | return new ResponseBean(ErrorEnum.SUCCESS); |
| 77 | 72 | } else { |
| ... | ... | @@ -89,7 +84,6 @@ public class ContentControllerApi { |
| 89 | 84 | * @return |
| 90 | 85 | */ |
| 91 | 86 | private boolean saveOrUpdateContent(JSONObject json, ShyContent shyContent, Integer shenheType) { |
| 92 | - logger.info("方法执行之前"); | |
| 93 | 87 | //如果不存在直接插入 |
| 94 | 88 | //标题 |
| 95 | 89 | shyContent.setTitle(json.getString("title")); |
| ... | ... | @@ -121,11 +115,9 @@ public class ContentControllerApi { |
| 121 | 115 | //最后一次更新时间 |
| 122 | 116 | shyContent.setLast_update(CommonUtils.getCurrentTime()); |
| 123 | 117 | if (shyContent.getId() == null) { |
| 124 | - logger.info("图文插入"); | |
| 125 | 118 | //id 存在就插入 |
| 126 | 119 | return contentService.impotContent(shyContent); |
| 127 | 120 | } else { |
| 128 | - logger.info("图文修改"); | |
| 129 | 121 | // id不存在就修改 |
| 130 | 122 | return contentService.updateShyContent(shyContent); |
| 131 | 123 | } | ... | ... |