洪城义警-正式版后台
zengh
2021-11-05 b39cc2beacc1ec2e37cff349cae42e420105c8a6
src/main/java/org/springblade/modules/chatrecords/controller/ChatRecordsController.java
@@ -7,7 +7,7 @@
import org.springblade.modules.chatrecords.entity.ChatRecords;
import org.springblade.modules.chatrecords.service.ChatRecordsService;
import org.springblade.modules.system.entity.User;
import org.springblade.modules.system.feign.IUserClient;
import org.springblade.modules.system.service.IUserService;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
@@ -27,7 +27,7 @@
@RequestMapping("/chat-records")
public class ChatRecordsController {
   private final IUserClient iUserClient;
   private final IUserService iUserService;
   private final ChatRecordsService chatRecordsService;
@@ -44,7 +44,7 @@
      crossDomain(response);
      Map<String, Object> map = new HashMap<>(2);
      //查询单聊人的信息
      List<User> user = Arrays.asList(iUserClient.userInfoById(chatRecords.getSenderId()).getData(), iUserClient.userInfoById(chatRecords.getRecipientId()).getData());
      List<User> user = Arrays.asList(iUserService.getById(chatRecords.getSenderId()), iUserService.getById(chatRecords.getRecipientId()));
      //查询单聊记录信息
      if (null==query.getCurrent()){
         map.put("chatRecordsIPage",chatRecordsService.selectChatlist(chatRecords));