| | |
| | | List subList = (List) list.stream().skip(page.getBeginRecordNo_1()).limit(page.getPageSize()).collect(Collectors.toList()); |
| | | result.fluentPut("pages", page.getPageCount()); |
| | | result.fluentPut("current", pageNo); |
| | | result.fluentPut("passiveQueueSize", pageSize); |
| | | result.fluentPut("size", pageSize); |
| | | result.fluentPut("total", page.getRecordCount()); |
| | | result.fluentPut("list", subList); |
| | | |
| | |
| | | List<Object> subList = list.stream().skip(page.getBeginRecordNo_1()).limit(page.getPageSize()).collect(Collectors.toList()); |
| | | result.fluentPut("pages", page.getPageCount()); |
| | | result.fluentPut("current", pageNo); |
| | | result.fluentPut("passiveQueueSize", pageSize); |
| | | result.fluentPut("size", pageSize); |
| | | result.fluentPut("total", page.getRecordCount()); |
| | | result.fluentPut("list", subList); |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public SysField getOneFieldByMaintain(String maintainId, String field) { |
| | | List<SysField> fieldByMaintain = getFieldByMaintain(maintainId); |
| | | if (fieldByMaintain == null || fieldByMaintain.isEmpty()) { |
| | | return null; |
| | | } |
| | | for (SysField sysField : fieldByMaintain) { |
| | | if (sysField.getField().equalsIgnoreCase(field)) { |
| | | return sysField; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public List<SysField> getFieldByMaintainField(String maintainId) { |
| | | if (StringUtils.isEmpty(maintainId)) { |
| | | return null; |