| | |
| | | public PageInfo<TOldsterWarningVO> pageList(OldsterListQuery query) { |
| | | PageInfo<TOldsterWarningVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<TOldsterWarningVO> list = this.baseMapper.pageList(query,pageInfo); |
| | | if(CollectionUtils.isEmpty(list)){ |
| | | return pageInfo; |
| | | } |
| | | for (TOldsterWarningVO oldsterWarningVO : list) { |
| | | int age = IDCardAgeCalculator.calculateAge(oldsterWarningVO.getIdCard()); |
| | | oldsterWarningVO.setOldsterAge(age); |
| | | } |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | | } |
| | | |
| | | @Override |
| | | public List<TOldsterWarningExport> exportOldsterWarning(TCourseOrderQuery query) { |
| | | public List<TOldsterWarningExport> exportOldsterWarning(OldsterListQuery query) { |
| | | List<TOldsterWarningExport> list = this.baseMapper.exportOldsterWarning(query); |
| | | if(CollectionUtils.isEmpty(list)){ |
| | | return new ArrayList<>(); |
| | | } |
| | | for (TOldsterWarningExport oldsterWarningExport : list) { |
| | | int age = IDCardAgeCalculator.calculateAge(oldsterWarningExport.getIdCard()); |
| | | oldsterWarningExport.setOldsterAge(age); |
| | | } |
| | | return list; |
| | | } |
| | | } |