| | |
| | | return Result.error(CodeMsg.SELECT_ERROR_NOTFOUND); |
| | | } |
| | | |
| | | List<String> result = maintainList.stream() |
| | | List<Maintain> result = maintainList.stream() |
| | | .filter(maintain -> !StringUtils.isEmpty(maintain.getFlowId())) |
| | | .filter(maintain -> flowsService.selectById(maintain.getFlowId()).getStatus().equals(ActivitiStatus.open)) |
| | | .map(maintain -> maintain.getVersion()) |
| | | .collect(Collectors.toList()); |
| | | |
| | | return Result.success(result); |
| | |
| | | result = maintainService.selectPage(maintainPage); |
| | | } else { |
| | | Wrapper<Maintain> tableNameWrapper = new EntityWrapper<Maintain>().eq("table_name", tableName); |
| | | tableNameWrapper.orderBy("version desc"); |
| | | tableNameWrapper.orderBy("order_no desc"); |
| | | result = maintainService.selectPage(maintainPage, tableNameWrapper); |
| | | } |
| | | List<Maintain> records = result.getRecords(); |