|
|
@@ -16,6 +16,7 @@ import com.nb.im.room.ImRoomOperatorManager;
|
|
|
import com.nb.im.service.dto.ImRoomDto;
|
|
|
import com.nb.im.utils.ImUtils;
|
|
|
import com.nb.im.ws.PubMsgInfo;
|
|
|
+import com.nb.web.api.feign.IPatientClient;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -38,6 +39,10 @@ public class LocalImRoomService extends BaseService<ImRoomMapper, ImRoomEntity,S
|
|
|
@Lazy
|
|
|
private LocalImRoomUserService chatRoomUserService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ @Lazy
|
|
|
+ private IPatientClient patientClient;
|
|
|
+
|
|
|
@Autowired
|
|
|
@Lazy
|
|
|
private ImUtils imUtils;
|
|
|
@@ -80,6 +85,7 @@ public class LocalImRoomService extends BaseService<ImRoomMapper, ImRoomEntity,S
|
|
|
result.setPatientSex(source.getPatientSex());
|
|
|
result.setDoctorId(source.getDoctorId());
|
|
|
result.setSponsorType(source.getSponsorType());
|
|
|
+ result.setManageType(patientClient.getManageType(source.getPatientId()));
|
|
|
result.setTotalCount(0);
|
|
|
//等待医生确认
|
|
|
result.setStatus(source.getStatus());
|