| | |
| | | |
| | | import java.util.*; |
| | | |
| | | import static cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeConstants.BAD_REQUEST; |
| | | import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
| | | import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.*; |
| | | import static cn.iocoder.yudao.framework.common.util.json.JsonUtils.toJsonString; |
| | |
| | | crmPermission.bizType()[0].getType() : (Integer) expressionValues.get(crmPermission.bizTypeValue()); // 模块类型 |
| | | // 1.2 处理兼容多个 bizId 的情况 |
| | | Object object = expressionValues.get(crmPermission.bizId()); // 模块数据编号 |
| | | if (object == null) { |
| | | throw exception(BAD_REQUEST); |
| | | } |
| | | Set<Long> bizIds = new HashSet<>(); |
| | | if (object instanceof Collection<?>) { |
| | | bizIds.addAll(convertSet((Collection<?>) object, item -> Long.parseLong(item.toString()))); |