| | |
| | | } |
| | | page.setSize(pageSize); |
| | | page.setCurrent(pageNum); |
| | | |
| | | try { |
| | | //关键词为空时需要进行加密,通过加密去检索身份证号筛选高龄认证记录 |
| | | String idCard = AESUtil.encrypt128(pageElderAuthRecordsDTO.getSearchKey(), aesKey); |
| | | pageElderAuthRecordsDTO.setIdCard(idCard); |
| | | }catch (Exception e){ |
| | | log.error("查询高龄认证记录转换身份证号失败"); |
| | | } |
| | | |
| | | IPage<ComElderAuthRecordVO> iPage = comElderAuthRecordsDAO.pageElderAuthRecords(page, pageElderAuthRecordsDTO); |
| | | if (!iPage.getRecords().isEmpty()) { |
| | | iPage.getRecords().forEach(comElderAuthRecordVO -> { |
| | |
| | | public R detailElderAuthRecords(Long authRecordId) { |
| | | ComElderAuthRecordVO comElderAuthRecordVO = comElderAuthRecordsDAO.detailElderAuthRecords(authRecordId); |
| | | comElderAuthRecordVO.setNextIds(comElderAuthRecordsDAO.getNextIds(comElderAuthRecordVO.getCommunityId(),authRecordId)); |
| | | try { |
| | | comElderAuthRecordVO.setAge(IdcardUtil.getAgeByIdCard(comElderAuthRecordVO.getIdCard())); |
| | | }catch (Exception e){ |
| | | log.error("身份证转换失败"); |
| | | } |
| | | return R.ok(comElderAuthRecordVO); |
| | | } |
| | | |