@Override public List<Long> disable(Collection<Long> ids) { List<Friender> list = this.selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.DISABLE.getValue())); this.updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<ResourcesView> selectUserResourcesView(long userId) throws Exception { List<Resources> list = this.selectUserResources(userId); return Optional.ofNullable(selectResourcesView(list)).orElse(Lists.newArrayList()) .stream() .filter(x -> EnableEnum.ENABLED.getLabel().equals(x.getEnabled())) .collect(Collectors.toList()); }
@Nullable @Override public EnableEnum convert(String value) { if (StringUtils.isBlank(value)) { return null; } return EnableEnum.valueOf(value.toUpperCase()); }
@Override public List<EnableEnum> valueList() { return Lists.newArrayList(values()); }
@Override public List<Long> disable(Collection<Long> ids) { List<Resources> list = selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.DISABLE.getValue())); updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> disable(Collection<Long> ids) { List<DimTemplet> list = this.selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.DISABLE.getValue())); this.updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> disable(Collection<Long> ids) { List<Person> list = selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.DISABLE.getValue())); updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> disable(Collection<Long> ids) { List<PersonRole> list = selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.DISABLE.getValue())); updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> enable(Collection<Long> ids) { List<Comment> list = this.selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.ENABLED.getValue())); this.updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> disable(Collection<Long> ids) { List<Comment> list = this.selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.DISABLE.getValue())); this.updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> enable(Collection<Long> ids) { List<Visitor> list = this.selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.ENABLED.getValue())); this.updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> enable(Collection<Long> ids) { List<FsFile> list = this.selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.ENABLED.getValue())); this.updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> disable(Collection<Long> ids) { List<FsFile> list = this.selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.DISABLE.getValue())); this.updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> enable(Collection<Long> ids) { List<Support> list = this.selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.ENABLED.getValue())); this.updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> disable(Collection<Long> ids) { List<Support> list = this.selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.DISABLE.getValue())); this.updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> disable(Collection<Long> ids) { List<DimCondition> list = this.selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.DISABLE.getValue())); this.updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> enable(Collection<Long> ids) { List<Datum> list = this.selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.ENABLED.getValue())); this.updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> disable(Collection<Long> ids) { List<DimLocation> list = this.selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.DISABLE.getValue())); this.updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> enable(Collection<Long> ids) { List<CouponHandoutConfig> list = this.selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.ENABLED.getValue())); this.updateBatchById(list); } return Lists.newArrayList(ids); }
@Override public List<Long> disable(Collection<Long> ids) { List<CouponHandoutConfig> list = this.selectBatchIds(ids); if(CollectionUtils.isNotEmpty(list)){ list.stream().forEach(x -> x.setEnabled(EnableEnum.DISABLE.getValue())); this.updateBatchById(list); } return Lists.newArrayList(ids); }