|
|
@@ -13,6 +13,7 @@ import com.nb.app.doctor.controller.vo.ChangeManageVo;
|
|
|
import com.nb.app.doctor.controller.vo.InviteCodeVo;
|
|
|
import com.nb.app.doctor.controller.vo.UpdateBindPatientVo;
|
|
|
import com.nb.app.doctor.service.dto.PatientMonitorConsultResult;
|
|
|
+import com.nb.auth.bean.LoginUser;
|
|
|
import com.nb.auth.utils.SecurityUtil;
|
|
|
import com.nb.common.websocket.WebSocketSessionLifeCycleManage;
|
|
|
import com.nb.core.annotation.Log;
|
|
|
@@ -118,7 +119,8 @@ public class PatientMonitorController {
|
|
|
// if(userBindClient.haveBindByPatientCode(resource.getPatientCode(),tenantId)){
|
|
|
// throw new CustomException("该病人已被看护");
|
|
|
// }
|
|
|
- return R.success(patientClient.generateInviteCode(tenantId,resource.getPatientCode(),resource.getDoctorId(),resource.getDoctorName(),resource.getManage()));
|
|
|
+ LoginUser loginUser = SecurityUtil.getLoginUser();
|
|
|
+ return R.success(patientClient.generateInviteCode(tenantId,resource.getPatientCode(),String.valueOf(loginUser.getId()),loginUser.getNickName(),resource.getManage()));
|
|
|
}
|
|
|
|
|
|
|