From 59879729676f8e5d25838752e6796bf5ff3aa5ae Mon Sep 17 00:00:00 2001 From: ly19960718 <1622779752@qq.com> Date: Fri, 7 May 2021 14:42:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=90=8D=E5=AD=97=E6=AE=B5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/apply/impl/ApplyServiceImpl.java | 19 ++++++++++--------- .../mybatis/mapper/apply/apply-mapper.xml | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/main/java/cn/com/tenlion/service/apply/impl/ApplyServiceImpl.java b/src/main/java/cn/com/tenlion/service/apply/impl/ApplyServiceImpl.java index ec5d743..51f4032 100644 --- a/src/main/java/cn/com/tenlion/service/apply/impl/ApplyServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/apply/impl/ApplyServiceImpl.java @@ -72,15 +72,16 @@ public class ApplyServiceImpl extends DefaultBaseService implements IApplyServic } PageHelper.startPage(page.getPage(), page.getRows()); List applyDTOs = list(page.getParams()); - for (ApplyDTO applyDTO : applyDTOs) { - DistributionCardDTO distributionCardDTO = distributionCardService.get(applyDTO.getApplyId()); - if(distributionCardDTO == null){ - applyDTO.setDistributionCardState(0); - }else{ - applyDTO.setDistributionCardState(1); - applyDTO.setDistributionCardCode(distributionCardDTO.getDistributionCardPictures()); - } - } + //查询准考证生成信息 +// for (ApplyDTO applyDTO : applyDTOs) { +// DistributionCardDTO distributionCardDTO = distributionCardService.get(applyDTO.getApplyId()); +// if(distributionCardDTO == null){ +// applyDTO.setDistributionCardState(0); +// }else{ +// applyDTO.setDistributionCardState(1); +// applyDTO.setDistributionCardCode(distributionCardDTO.getDistributionCardPictures()); +// } +// } PageInfo pageInfo = new PageInfo<>(applyDTOs); return new SuccessResultList<>(applyDTOs, pageInfo.getPageNum(), pageInfo.getTotal()); } diff --git a/src/main/resources/mybatis/mapper/apply/apply-mapper.xml b/src/main/resources/mybatis/mapper/apply/apply-mapper.xml index 131512d..b166ec8 100644 --- a/src/main/resources/mybatis/mapper/apply/apply-mapper.xml +++ b/src/main/resources/mybatis/mapper/apply/apply-mapper.xml @@ -469,7 +469,7 @@ AND t1.apply_institution_id = #{applyInstitutionId} - + AND t1.creator = #{creator}