|
@@ -48,6 +48,9 @@ public class StudentPracticeRecordServiceImpl implements StudentPracticeRecordSe
|
|
@Resource
|
|
@Resource
|
|
private MajorService majorService;
|
|
private MajorService majorService;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ StudentService studentService;
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public Long createStudentPracticeRecord(StudentPracticeRecordSaveReqVO createReqVO) {
|
|
public Long createStudentPracticeRecord(StudentPracticeRecordSaveReqVO createReqVO) {
|
|
// 插入
|
|
// 插入
|
|
@@ -120,6 +123,11 @@ public class StudentPracticeRecordServiceImpl implements StudentPracticeRecordSe
|
|
SchoolOrganizationDO schoolClass = schoolOrganizationService.getSchoolOrganization(resp.getStudent().getSchoolClassId());
|
|
SchoolOrganizationDO schoolClass = schoolOrganizationService.getSchoolOrganization(resp.getStudent().getSchoolClassId());
|
|
resp.getStudent().setSchoolClass(BeanUtils.toBean(schoolClass, SchoolOrganizationRespVO.class));
|
|
resp.getStudent().setSchoolClass(BeanUtils.toBean(schoolClass, SchoolOrganizationRespVO.class));
|
|
resp.getStudent().setMajor(BeanUtils.toBean(majorService.getMajor(resp.getStudent().getMajorId()), MajorRespVO.class));
|
|
resp.getStudent().setMajor(BeanUtils.toBean(majorService.getMajor(resp.getStudent().getMajorId()), MajorRespVO.class));
|
|
|
|
+
|
|
|
|
+ if( resp.getJob().getId().equals(resp.getStudent().getInternshipJobId())){
|
|
|
|
+ resp.setInternshipEnterprise(true);
|
|
|
|
+ }
|
|
|
|
+
|
|
});
|
|
});
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
@@ -186,4 +194,9 @@ public class StudentPracticeRecordServiceImpl implements StudentPracticeRecordSe
|
|
public PageResult<StudentPracticeRecordDetailRespVO> page(StudentPracticeRecordSchoolPageReqVO reqVO) {
|
|
public PageResult<StudentPracticeRecordDetailRespVO> page(StudentPracticeRecordSchoolPageReqVO reqVO) {
|
|
return mapper.page(reqVO);
|
|
return mapper.page(reqVO);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void saveInternshipEnterprise(Long userId, Long enterpriseId,Long internshipJobId) {
|
|
|
|
+ studentService.saveInternshipEnterprise(userId, enterpriseId,internshipJobId);
|
|
|
|
+ }
|
|
}
|
|
}
|