添加根据用户id查询企业信息

This commit is contained in:
赵辉
2025-12-15 17:15:16 +08:00
parent 51b5ae5d13
commit 21157b70ed
7 changed files with 40 additions and 0 deletions
@@ -52,4 +52,6 @@ public interface UserDriverEnterpriseService extends IService<UserDriverEnterpri
List<UserDriverEnterprisePo> queryCaptainList(UserDriverEnterpriseDo userDriverEnterpriseDo);
UserDriverEnterprisePo getEnterpriseByUserId(Long userId);
UserDriverEnterprisePo getEnterpriseByUserIds(Long userId);
}
@@ -35,4 +35,6 @@ public interface UserDriverEnterpriseMapper extends BaseMapper<UserDriverEnterpr
List<UserDriverEnterprisePo> queryCaptainList(@Param("userDriverEnterpriseDo") UserDriverEnterpriseDo userDriverEnterpriseDo);
UserDriverEnterprisePo getEnterpriseByUserId(@Param("userId") Long userId);
UserDriverEnterprisePo getEnterpriseByUserIds(@Param("userId") Long userId);
}
@@ -111,4 +111,9 @@ public class UserDriverEnterpriseImpl extends ServiceImpl<UserDriverEnterpriseMa
public UserDriverEnterprisePo getEnterpriseByUserId(Long userId) {
return userDriverEnterpriseMapper.getEnterpriseByUserId(userId);
}
@Override
public UserDriverEnterprisePo getEnterpriseByUserIds(Long userId) {
return userDriverEnterpriseMapper.getEnterpriseByUserIds(userId);
}
}
@@ -154,4 +154,8 @@ public class UserDriverEnterpriseDomainService {
.eq(UserDriverEnterprise::getUserId, userId)
.update();
}
public UserDriverEnterprisePo getEnterpriseByUserIds(Long userId) {
return userDriverEnterpriseService.getEnterpriseByUserIds(userId);
}
}