| | |
| | | return maintainService.getUnSubmitData(tableName, pageNo, pageSize, whereSegment); |
| | | } |
| | | |
| | | @RequestMapping(value = "{tableName}/unflow/{pageNo}", method = RequestMethod.GET) |
| | | public Result unflow(@PathVariable String tableName, @PathVariable Integer pageNo, HttpServletRequest request) throws UnsupportedEncodingException { |
| | | String pageSize = request.getParameter("pageSize"); |
| | | String whereSegment = request.getParameter("whereSegment"); |
| | | |
| | | if (StringUtils.isEmpty(whereSegment)) { |
| | | whereSegment = Constant.WHERE_DEFAULT; |
| | | }else { |
| | | whereSegment = URLDecoder.decode(whereSegment, "UTF-8"); |
| | | } |
| | | if (StringUtils.isEmpty(pageSize)) { |
| | | return maintainService.getInvalidVerionData(tableName, whereSegment, pageNo, null); |
| | | } else { |
| | | return maintainService.getInvalidVerionData(tableName, whereSegment, pageNo, Integer.valueOf(pageSize)); |
| | | } |
| | | } |
| | | |
| | | @RequestMapping(value = "/history/{tableName}", method = RequestMethod.GET) |
| | | public Result getHistory(@PathVariable String tableName) { |
| | | |
| | |
| | | return Result.error(CodeMsg.SELECT_ERROR_NOTFOUND); |
| | | } |
| | | |
| | | List<String> result = maintainList.stream() |
| | | .map(maintain -> maintain.getVersion()) |
| | | List<Maintain> result = maintainList.stream() |
| | | .filter(maintain -> !StringUtils.isEmpty(maintain.getFlowId())) |
| | | .filter(maintain -> flowsService.selectById(maintain.getFlowId()).getStatus().equals(ActivitiStatus.open)) |
| | | .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(); |