检测工人

(cherry picked from commit 0e6aa49c68)
This commit is contained in:
13405411873 2024-11-11 10:22:03 +08:00 committed by Vinjor
parent 29939dc277
commit 25987034e1

View File

@ -161,13 +161,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();
@ -270,6 +270,7 @@ public class PartnerCustomerInfoServiceImpl extends ServiceImpl<PartnerCustomerI
} else {
// 保存新用户车辆信息
userCarService.save(userCar);
userCarService.save(userCar);
}
}