xuhy
2025-11-12 4f78db00a0aa292655e216c507589df8dd65d7b7
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TOldsterWarningServiceImpl.java
@@ -33,27 +33,13 @@
    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;
    }
}