员工修改报错修复
This commit is contained in:
@@ -66,7 +66,7 @@ public class ShopStaffServiceImpl extends ServiceImpl<ShopStaffMapper, ShopStaff
|
|||||||
BeanUtil.copyProperties(shopStaffEditDTO, shopStaff);
|
BeanUtil.copyProperties(shopStaffEditDTO, shopStaff);
|
||||||
updateById(shopStaff);
|
updateById(shopStaff);
|
||||||
|
|
||||||
if (!shopStaffEditDTO.getShopPermissionIds().isEmpty()) {
|
if (shopStaffEditDTO.getShopPermissionIds() != null && !shopStaffEditDTO.getShopPermissionIds().isEmpty()) {
|
||||||
shopStaffPermissionService.updateChain().eq(ShopStaffPermission::getStaffId, shopStaff.getId())
|
shopStaffPermissionService.updateChain().eq(ShopStaffPermission::getStaffId, shopStaff.getId())
|
||||||
.eq(ShopStaffPermission::getShopId, StpKit.USER.getShopId()).eq(ShopStaffPermission::getUserId, shopStaff.getId()).remove();
|
.eq(ShopStaffPermission::getShopId, StpKit.USER.getShopId()).eq(ShopStaffPermission::getUserId, shopStaff.getId()).remove();
|
||||||
// 权限添加
|
// 权限添加
|
||||||
|
|||||||
Reference in New Issue
Block a user