委托方添加时候检验信用;

This commit is contained in:
王奎兴
2026-06-17 13:43:56 +08:00
parent d1d02b7bc4
commit 81a7e2ae20
@@ -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<>();