委托方添加时候检验信用;
This commit is contained in:
+7
-3
@@ -316,11 +316,15 @@ public class UserShipperApplicationService {
|
||||
if (ObjectUtil.isNull(configSwitch)) {
|
||||
throw new ServiceException("获取组织配置失败");
|
||||
}
|
||||
List<UserEntity> userEntities = userMapper.selectByUserPhone(userShipperDO.getUserAccount());
|
||||
if (userEntities.size()>0){
|
||||
throw new ServiceException("账户名已存在");
|
||||
String userAccount = userShipperDO.getUserAccount();
|
||||
if (StringUtils.isNotBlank(userAccount)) {
|
||||
List<UserEntity> userEntities = userMapper.selectByUserPhone(userAccount);
|
||||
if (userEntities.size()>0){
|
||||
throw new ServiceException("账户名已存在");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user