|
|
@ -17,6 +17,8 @@ |
|
|
|
|
|
|
|
package com.epmet.service.impl; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.epmet.commons.mybatis.entity.DataScope; |
|
|
@ -228,7 +230,7 @@ public class StaffRoleServiceImpl extends BaseServiceImpl<StaffRoleDao, StaffRol |
|
|
|
rolesByDB.forEach(l -> { |
|
|
|
map.put(l.getRoleKey(), l.getRoleName()); |
|
|
|
}); |
|
|
|
dto.setRoles(map.toString()); |
|
|
|
dto.setRoles(map); |
|
|
|
staffRoleRedis.setRole(customerId, staffId, dto); |
|
|
|
return dto; |
|
|
|
} |
|
|
@ -259,7 +261,7 @@ public class StaffRoleServiceImpl extends BaseServiceImpl<StaffRoleDao, StaffRol |
|
|
|
list.forEach(l -> { |
|
|
|
map.put(l.getRoleKey(), l.getRoleName()); |
|
|
|
}); |
|
|
|
dto.setRoles(map.toString()); |
|
|
|
dto.setRoles(map); |
|
|
|
staffRoleRedis.setRole(customerId, userId, dto); |
|
|
|
}); |
|
|
|
} |
|
|
|