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}