添加车队长修改
This commit is contained in:
+9
@@ -568,6 +568,15 @@ public class UserDriverEnterpriseApplicationService {
|
|||||||
public Map<String, Object> captainAuth(UserDriverEnterpriseDo userDriverEnterpriseDo) {
|
public Map<String, Object> captainAuth(UserDriverEnterpriseDo userDriverEnterpriseDo) {
|
||||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||||
Map<String, Object> result = new HashMap<>();
|
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. 前置检查:如果用户已存在,检查是否已加入其他车队
|
// 1. 前置检查:如果用户已存在,检查是否已加入其他车队
|
||||||
performPreChecks(userDriverEnterpriseDo);
|
performPreChecks(userDriverEnterpriseDo);
|
||||||
|
|||||||
Reference in New Issue
Block a user