报名字段修改

This commit is contained in:
ly19960718 2021-05-07 14:42:21 +08:00
parent c4205186fd
commit 5987972967
2 changed files with 11 additions and 10 deletions

View File

@ -72,15 +72,16 @@ public class ApplyServiceImpl extends DefaultBaseService implements IApplyServic
} }
PageHelper.startPage(page.getPage(), page.getRows()); PageHelper.startPage(page.getPage(), page.getRows());
List<ApplyDTO> applyDTOs = list(page.getParams()); List<ApplyDTO> applyDTOs = list(page.getParams());
for (ApplyDTO applyDTO : applyDTOs) { //查询准考证生成信息
DistributionCardDTO distributionCardDTO = distributionCardService.get(applyDTO.getApplyId()); // for (ApplyDTO applyDTO : applyDTOs) {
if(distributionCardDTO == null){ // DistributionCardDTO distributionCardDTO = distributionCardService.get(applyDTO.getApplyId());
applyDTO.setDistributionCardState(0); // if(distributionCardDTO == null){
}else{ // applyDTO.setDistributionCardState(0);
applyDTO.setDistributionCardState(1); // }else{
applyDTO.setDistributionCardCode(distributionCardDTO.getDistributionCardPictures()); // applyDTO.setDistributionCardState(1);
} // applyDTO.setDistributionCardCode(distributionCardDTO.getDistributionCardPictures());
} // }
// }
PageInfo<ApplyDTO> pageInfo = new PageInfo<>(applyDTOs); PageInfo<ApplyDTO> pageInfo = new PageInfo<>(applyDTOs);
return new SuccessResultList<>(applyDTOs, pageInfo.getPageNum(), pageInfo.getTotal()); return new SuccessResultList<>(applyDTOs, pageInfo.getPageNum(), pageInfo.getTotal());
} }

View File

@ -469,7 +469,7 @@
AND AND
t1.apply_institution_id = #{applyInstitutionId} t1.apply_institution_id = #{applyInstitutionId}
</if> </if>
<if test="create != null and create != ''"> <if test="creator != null and creator != ''">
AND AND
t1.creator = #{creator} t1.creator = #{creator}
</if> </if>