| | |
| | | queryWrapper.like(StringUtils.isNotBlank(flowInstanceBo.getFlowCode()), "fd.flow_code", flowInstanceBo.getFlowCode()); |
| | | if (StringUtils.isNotBlank(flowInstanceBo.getCategory())) { |
| | | List<Long> categoryIds = flwCategoryMapper.selectCategoryIdsByParentId(Convert.toLong(flowInstanceBo.getCategory())); |
| | | queryWrapper.in("fd.category", categoryIds); |
| | | queryWrapper.in("fd.category", StreamUtils.toList(categoryIds, Convert::toStr)); |
| | | } |
| | | queryWrapper.eq(StringUtils.isNotBlank(flowInstanceBo.getBusinessId()), "fi.business_id", flowInstanceBo.getBusinessId()); |
| | | queryWrapper.in(CollUtil.isNotEmpty(flowInstanceBo.getCreateByIds()), "fi.create_by", flowInstanceBo.getCreateByIds()); |
| | |
| | | * @param instanceId 实例id |
| | | */ |
| | | @Override |
| | | public Map<String, Object> instanceVariable(String instanceId) { |
| | | public Map<String, Object> instanceVariable(Long instanceId) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | FlowInstance flowInstance = flowInstanceMapper.selectById(instanceId); |
| | | Map<String, Object> variableMap = flowInstance.getVariableMap(); |