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) {