Commit 559d1004d9f019439868a0179c92acedf55cf46f

Authored by liwei2917
1 parent fc1a1cbc

修改api

src/main/java/com/cnlive/shenhe/api/TopicControllerApi.java
@@ -77,9 +77,9 @@ public class TopicControllerApi { @@ -77,9 +77,9 @@ public class TopicControllerApi {
77 77
78 boolean YorN = topicService.updateshyTopic(shyTopic1); 78 boolean YorN = topicService.updateshyTopic(shyTopic1);
79 if (YorN == true) { 79 if (YorN == true) {
80 - return new ResponseBean(ErrorEnum.SUCCESS);  
81 - } else {  
82 return new ResponseBean(ErrorEnum.ERROR); 80 return new ResponseBean(ErrorEnum.ERROR);
  81 + } else {
  82 + return new ResponseBean(ErrorEnum.SUCCESS);
83 } 83 }
84 } 84 }
85 //如果不存在直接插入 85 //如果不存在直接插入
@@ -96,9 +96,9 @@ public class TopicControllerApi { @@ -96,9 +96,9 @@ public class TopicControllerApi {
96 shyTopic.setCreate_date(CommonUtils.getCurrentTime());//送审时间 96 shyTopic.setCreate_date(CommonUtils.getCurrentTime());//送审时间
97 boolean YorN = topicService.impotshyTopic(shyTopic); 97 boolean YorN = topicService.impotshyTopic(shyTopic);
98 if (YorN == true) { 98 if (YorN == true) {
99 - return new ResponseBean(ErrorEnum.SUCCESS);  
100 - } else {  
101 return new ResponseBean(ErrorEnum.ERROR); 99 return new ResponseBean(ErrorEnum.ERROR);
  100 + } else {
  101 + return new ResponseBean(ErrorEnum.SUCCESS);
102 } 102 }
103 } 103 }
104 104