/** * @see this#single(String, Object) */ public static QueryParamEntity of(String field, Object value) { return empty().where(field, value); }
@Override public List<String> parse(DimensionContext context, StrategyConfig config) { String type = config.getConfig("tree") .map(String::valueOf) .map("-"::concat) .orElse(""); return userService.select( empty().noPaging() //https://github.com/hs-web/hsweb-framework/tree/master/hsweb-system/hsweb-system-organizational#sql条件 .where("id", "user-in-org" + type, config.getIdList())) .stream() .map(UserEntity::getId) .collect(Collectors.toList()); } }
@Override public List<String> parse(DimensionContext context,StrategyConfig config) { String type = config.getConfig("tree") .map(String::valueOf) .map("-"::concat) .orElse(""); return userService.select( empty().noPaging() //https://github.com/hs-web/hsweb-framework/tree/master/hsweb-system/hsweb-system-organizational#sql条件 .where("id", "user-in-department" + type, config.getIdList())) .stream() .map(UserEntity::getId) .collect(Collectors.toList()); } }
@Override public List<String> parse(DimensionContext context, StrategyConfig config) { String type = config.getConfig("tree") .map(String::valueOf) .map("-"::concat) .orElse(""); return userService.select( empty().noPaging() //https://github.com/hs-web/hsweb-framework/tree/master/hsweb-system/hsweb-system-organizational#sql条件 .where("id", "user-in-position"+type, config.getIdList())) .stream() .map(UserEntity::getId) .collect(Collectors.toList()); } }
.where(RecordCreationEntity.creatorId, userId)
@Override public List<String> parse(DimensionContext context, StrategyConfig config) { String type = config.getConfig("tree") .map(String::valueOf) .map("-"::concat) .orElse(""); return userService.select( empty().noPaging() //https://github.com/hs-web/hsweb-framework/tree/master/hsweb-system/hsweb-system-organizational#sql条件 .where("id", "user-in-position"+type, config.getIdList())) .stream() .map(UserEntity::getId) .collect(Collectors.toList()); } }
@Override public List<String> parse(DimensionContext context, StrategyConfig config) { String type = config.getConfig("tree") .map(String::valueOf) .map("-"::concat) .orElse(""); return userService.select( empty().noPaging() //https://github.com/hs-web/hsweb-framework/tree/master/hsweb-system/hsweb-system-organizational#sql条件 .where("id", "user-in-org" + type, config.getIdList())) .stream() .map(UserEntity::getId) .collect(Collectors.toList()); } }
@Override public List<String> parse(DimensionContext context,StrategyConfig config) { String type = config.getConfig("tree") .map(String::valueOf) .map("-"::concat) .orElse(""); return userService.select( empty().noPaging() //https://github.com/hs-web/hsweb-framework/tree/master/hsweb-system/hsweb-system-organizational#sql条件 .where("id", "user-in-department" + type, config.getIdList())) .stream() .map(UserEntity::getId) .collect(Collectors.toList()); } }
.where(RecordCreationEntity.creatorId, userId)