|
@@ -117,9 +117,9 @@ public class PatientMonitorController {
|
|
|
@PostMapping("/invite/code")
|
|
@PostMapping("/invite/code")
|
|
|
@ApiOperation(value = "患者看护邀请码,默认失效失效(7天)")
|
|
@ApiOperation(value = "患者看护邀请码,默认失效失效(7天)")
|
|
|
public R<InviteCodeResult> inviteCode(@RequestAttribute("tenantId")@ApiParam(hidden = true) String tenantId, @RequestBody@Validated InviteCodeVo resource) {
|
|
public R<InviteCodeResult> inviteCode(@RequestAttribute("tenantId")@ApiParam(hidden = true) String tenantId, @RequestBody@Validated InviteCodeVo resource) {
|
|
|
- if(userBindClient.haveBindByPatientCode(resource.getPatientCode(),tenantId)){
|
|
|
|
|
- throw new CustomException("该病人已被看护");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if(userBindClient.haveBindByPatientCode(resource.getPatientCode(),tenantId)){
|
|
|
|
|
+// throw new CustomException("该病人已被看护");
|
|
|
|
|
+// }
|
|
|
return R.success(patientClient.generateInviteCode(tenantId,resource.getPatientCode(),resource.getDoctorId(),resource.getDoctorName(),resource.getManage()));
|
|
return R.success(patientClient.generateInviteCode(tenantId,resource.getPatientCode(),resource.getDoctorId(),resource.getDoctorName(),resource.getManage()));
|
|
|
}
|
|
}
|
|
|
|
|
|