记得上下班打卡 | git大法好,push需谨慎

Commit cee358ed authored by 胡佳晨's avatar 胡佳晨

提交 权限bug

parent c9c003c2
...@@ -350,6 +350,17 @@ public class MongoSlimeUtils { ...@@ -350,6 +350,17 @@ public class MongoSlimeUtils {
dao.setTimeSell(timeSell); dao.setTimeSell(timeSell);
dao.setTimeStop(timeStop); dao.setTimeStop(timeStop);
if (item.getMerchantId().equals(performancePartnerListParam.getMerchantId()) || redisSlimeUtils.superAccount(performancePartnerListParam.getMerchantId())) {
dao.setPermissionId(new ArrayList<String>() {{
add(SlimeAuthorizationConst.PerformancePermission.READ.getId());
add(SlimeAuthorizationConst.PerformancePermission.EDIT.getId());
add(SlimeAuthorizationConst.PerformancePermission.LINE.getId());
add(SlimeAuthorizationConst.PerformancePermission.SALES.getId());
add(SlimeAuthorizationConst.PerformancePermission.CHECK.getId());
add(SlimeAuthorizationConst.PerformancePermission.GRANT.getId());
}});
}
for (SlimeAuthorizationPerformanceVo permission : permissionVoList) { for (SlimeAuthorizationPerformanceVo permission : permissionVoList) {
if (item.getMerchantId().equals(performancePartnerListParam.getMerchantId()) || redisSlimeUtils.superAccount(performancePartnerListParam.getMerchantId())) { if (item.getMerchantId().equals(performancePartnerListParam.getMerchantId()) || redisSlimeUtils.superAccount(performancePartnerListParam.getMerchantId())) {
dao.setPermissionId(new ArrayList<String>() {{ dao.setPermissionId(new ArrayList<String>() {{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment