添加车队长修改

This commit is contained in:
赵辉
2026-06-13 16:47:21 +08:00
parent a5af83ff33
commit 1cfed43f59
@@ -568,6 +568,15 @@ public class UserDriverEnterpriseApplicationService {
public Map<String, Object> captainAuth(UserDriverEnterpriseDo userDriverEnterpriseDo) {
LoginUser loginUser = SecurityUtils.getLoginUser();
Map<String, Object> result = new HashMap<>();
if (org.apache.commons.lang3.StringUtils.isBlank(userDriverEnterpriseDo.getUserAccount())) {
throw new ServiceException("用户账号不能为空");
}
if (org.apache.commons.lang3.StringUtils.isBlank(userDriverEnterpriseDo.getUserName())) {
throw new ServiceException("用户姓名不能为空");
}
if (org.apache.commons.lang3.StringUtils.isBlank(userDriverEnterpriseDo.getUserPhone())) {
throw new ServiceException("用户电话不能为空");
}
// 1. 前置检查:如果用户已存在,检查是否已加入其他车队
performPreChecks(userDriverEnterpriseDo);