|
|
@@ -187,14 +187,14 @@ public class LocalAssistantUserBindService extends BaseService<AssistantUserBind
|
|
|
Boolean isDefault=false;
|
|
|
if(source.getAgree()){
|
|
|
//判断是否重复绑定
|
|
|
- AssistantUserBindEntity existBind = this.getOne(new QueryWrapper<AssistantUserBindEntity>()
|
|
|
- .lambda()
|
|
|
- .eq(AssistantUserBindEntity::getPatientId, userBind.getPatientId())
|
|
|
- .eq(AssistantUserBindEntity::getStatus, BindEnum.SUCCESS)
|
|
|
- .last("limit 1"));
|
|
|
- if(existBind!=null){
|
|
|
- throw new CustomException("该用户已被看护,请勿重复绑定");
|
|
|
- }
|
|
|
+// AssistantUserBindEntity existBind = this.getOne(new QueryWrapper<AssistantUserBindEntity>()
|
|
|
+// .lambda()
|
|
|
+// .eq(AssistantUserBindEntity::getPatientId, userBind.getPatientId())
|
|
|
+// .eq(AssistantUserBindEntity::getStatus, BindEnum.SUCCESS)
|
|
|
+// .last("limit 1"));
|
|
|
+// if(existBind!=null){
|
|
|
+// throw new CustomException("该用户已被看护,请勿重复绑定");
|
|
|
+// }
|
|
|
//判断当前看护是否可设置为默认看护
|
|
|
String assistId = userBind.getAssistId();
|
|
|
AssistantUserBindEntity defaultAssistant = this.getOne(new QueryWrapper<AssistantUserBindEntity>()
|