From 3e08ceff34cd7c4d031b2b10514088801a9d0aac Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Tue, 25 May 2021 11:31:07 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ApplyStudentsServiceImpl.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/java/cn/com/tenlion/service/applystudents/impl/ApplyStudentsServiceImpl.java b/src/main/java/cn/com/tenlion/service/applystudents/impl/ApplyStudentsServiceImpl.java index a7869f7..b2a2d33 100644 --- a/src/main/java/cn/com/tenlion/service/applystudents/impl/ApplyStudentsServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/applystudents/impl/ApplyStudentsServiceImpl.java @@ -20,6 +20,8 @@ import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import ink.wgink.common.base.DefaultBaseService; import ink.wgink.exceptions.ParamsException; +import ink.wgink.module.dictionary.pojo.dtos.DataDTO; +import ink.wgink.module.dictionary.service.IDataService; import ink.wgink.pojo.ListPage; import ink.wgink.pojo.result.SuccessResultList; import ink.wgink.util.UUIDUtil; @@ -53,6 +55,8 @@ public class ApplyStudentsServiceImpl extends DefaultBaseService implements IApp private IExamApplyService examApplyService; @Autowired private IWorkTypeService workTypeService; + @Autowired + private IDataService dataService; public String saveRelationReturnId(ApplyStudentsVO applyStudentsVO){ @@ -222,6 +226,18 @@ public class ApplyStudentsServiceImpl extends DefaultBaseService implements IApp continue; } } + DataDTO dataDTO = dataService.get(applyStudentsDTO.getApplySex()); + if(null != dataDTO) { + applyStudentsDTO.setApplySex(dataDTO.getDataName()); + } + dataDTO = dataService.get(applyStudentsDTO.getApplyCultureLevel()); + if(null != dataDTO) { + applyStudentsDTO.setApplyCultureLevel(dataDTO.getDataName()); + } + dataDTO = dataService.get(applyStudentsDTO.getApplyPhysicalState()); + if(null != dataDTO) { + applyStudentsDTO.setApplyPhysicalState(dataDTO.getDataName()); + } ClassPlanDTO classPlanDTO = classPlanService.get(applyStudentsDTO.getApplyClassId()); applyStudentsDTO.setClassPlanDTO(classPlanDTO); /*if(null != classPlanDTO) {