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