|
@@ -109,11 +109,11 @@ public class LocalAppDoctorUserService extends BaseService<AppDoctorUserMapper,
|
|
|
}
|
|
}
|
|
|
String username = entity.getUsername();
|
|
String username = entity.getUsername();
|
|
|
try {
|
|
try {
|
|
|
- AppDoctorUserEntity doctor = CompletableFuture.supplyAsync(()->
|
|
|
|
|
- this.getOne(new QueryWrapper<AppDoctorUserEntity>()
|
|
|
|
|
- .lambda().eq(AppDoctorUserEntity::getUsername, username)
|
|
|
|
|
- .last("limit 1"))
|
|
|
|
|
- ).get();
|
|
|
|
|
|
|
+ AppDoctorUserEntity doctor =baseMapper.getOneByUsername(username);
|
|
|
|
|
+// AppDoctorUserEntity doctor = this.getOne(new QueryWrapper<AppDoctorUserEntity>()
|
|
|
|
|
+// .lambda()
|
|
|
|
|
+// .eq(AppDoctorUserEntity::getUsername, username)
|
|
|
|
|
+// .last("limit 1"));
|
|
|
if(entity.getStatus()==null){
|
|
if(entity.getStatus()==null){
|
|
|
entity.setStatus(StatusEnum.YES);
|
|
entity.setStatus(StatusEnum.YES);
|
|
|
}
|
|
}
|