傅行帆 5 лет назад
Родитель
Сommit
ff7b2d2e11

+ 1
- 1
src/main/java/com/huiju/estateagents/controller/TaPersonController.java Просмотреть файл

@@ -555,7 +555,7 @@ public class TaPersonController extends BaseController {
555 555
                     channelPerson.setStatus(CommConstant.STATUS_NORMAL);
556 556
                     taChannelPersonService.save(channelPerson);
557 557
                 }else {
558
-                    responseBean.addError("渠道码错误");
558
+                    return ResponseBean.error("渠道码错误", ResponseBean.ERROR_UNAVAILABLE);
559 559
                 }
560 560
 
561 561
             }else {

+ 1
- 3
src/main/resources/mapper/TaChatMapper.xml Просмотреть файл

@@ -86,9 +86,7 @@
86 86
         FROM
87 87
             ta_chat t
88 88
         WHERE
89
-            ( t.send_person = #{personId}
90
-          OR t.receive_person = #{personId}
91
-        )
89
+           t.receive_person = #{personId}
92 90
         AND IFNULL(t.is_read, 0) = 0
93 91
     </select>
94 92
 </mapper>