|
@@ -460,6 +460,11 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
if("2".equals(commonUser.getLoginFlag())){
|
|
if("2".equals(commonUser.getLoginFlag())){
|
|
DriverInfo driverInfo = driverInfoService.selectOne(new EntityWrapper<DriverInfo>().eq("common_id",userDTO.getId()));
|
|
DriverInfo driverInfo = driverInfoService.selectOne(new EntityWrapper<DriverInfo>().eq("common_id",userDTO.getId()));
|
|
userDTO.setDriverId(driverInfo.getId());
|
|
userDTO.setDriverId(driverInfo.getId());
|
|
|
|
+ userDTO.setStatusFlag(driverInfo.getAuthenticationStatus());
|
|
|
|
+ }
|
|
|
|
+ if ("1".equals(commonUser.getLoginFlag())){
|
|
|
|
+ CargoOwnerInfo cargoOwnerInfo = cargoOwnerInfoService.selectOne(new EntityWrapper<CargoOwnerInfo>().eq("common_id",userDTO.getId()));
|
|
|
|
+ userDTO.setStatusFlag(cargoOwnerInfo.getAuthenticationStatus());
|
|
}
|
|
}
|
|
return userDTO;
|
|
return userDTO;
|
|
}
|
|
}
|
|
@@ -585,6 +590,11 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
|
|
if("2".equals(commonUser.getLoginFlag())){
|
|
if("2".equals(commonUser.getLoginFlag())){
|
|
DriverInfo driverInfo = driverInfoService.selectOne(new EntityWrapper<DriverInfo>().eq("common_id",user.getId()));
|
|
DriverInfo driverInfo = driverInfoService.selectOne(new EntityWrapper<DriverInfo>().eq("common_id",user.getId()));
|
|
user.setDriverId(driverInfo.getId());
|
|
user.setDriverId(driverInfo.getId());
|
|
|
|
+ user.setStatusFlag(driverInfo.getAuthenticationStatus());
|
|
|
|
+ }
|
|
|
|
+ if ("1".equals(commonUser.getLoginFlag())){
|
|
|
|
+ CargoOwnerInfo cargoOwnerInfo = cargoOwnerInfoService.selectOne(new EntityWrapper<CargoOwnerInfo>().eq("common_id",user.getId()));
|
|
|
|
+ user.setStatusFlag(cargoOwnerInfo.getAuthenticationStatus());
|
|
}
|
|
}
|
|
return user;
|
|
return user;
|
|
}
|
|
}
|