检测工人

This commit is contained in:
13405411873 2024-11-11 10:22:03 +08:00
parent 8a75e00e26
commit 0e6aa49c68

View File

@ -162,13 +162,13 @@ public class PartnerCustomerInfoServiceImpl extends ServiceImpl<PartnerCustomerI
}
}
// 角色分配
if (!StringUtils.isEmpty(partnerCustomerInfo.getRoleCode())) {
RoleDO sysRole = roleService.queryRole(partnerCustomerInfo.getRoleCode());
Set<Long> ids = new HashSet<>();
ids.add(sysRole.getId());
permissionService.assignUserRole(user.getId(), ids);
}
// // 角色分配
// if (!StringUtils.isEmpty(partnerCustomerInfo.getRoleCode())) {
// RoleDO sysRole = roleService.queryRole(partnerCustomerInfo.getRoleCode());
// Set<Long> ids = new HashSet<>();
// ids.add(sysRole.getId());
// permissionService.assignUserRole(user.getId(), ids);
// }
// 车辆信息处理
List<ShopUserCar> userCarList = partnerCustomerInfo.getUserCarList();
@ -271,6 +271,7 @@ public class PartnerCustomerInfoServiceImpl extends ServiceImpl<PartnerCustomerI
} else {
// 保存新用户车辆信息
userCarService.save(userCar);
userCarService.save(userCar);
}
}