|
|
@@ -2,6 +2,7 @@ package com.xjrsoft.module.internship.controller;
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.xjrsoft.common.annotation.XjrLog;
|
|
|
import com.xjrsoft.common.model.result.RT;
|
|
|
@@ -50,9 +51,8 @@ public class InternshipPlanManageParticipantController {
|
|
|
@ApiOperation(value="实习计划参与人表列表(分页)")
|
|
|
@SaCheckPermission("internshipplanmanageparticipant:detail")
|
|
|
@XjrLog(value = "实习计划参与人表列表(分页)")
|
|
|
- public RT<PageOutput<BaseStudentInfoPageVo>> page(@Valid InternshipPlanManageParticipantPageDto dto){
|
|
|
- Page<BaseStudentInfoPageVo> teamStudentPage = internshipPlanManageParticipantService.getTeamStudentPage(new Page<>(dto.getLimit(), dto.getSize()), dto);
|
|
|
- PageOutput<BaseStudentInfoPageVo> pageOutput = ConventPage.getPageOutput(teamStudentPage, BaseStudentInfoPageVo.class);
|
|
|
+ public RT<PageOutput<InternshipPlanManageParticipantPageVo>> page(@Valid InternshipPlanManageParticipantPageDto dto){
|
|
|
+ PageOutput<InternshipPlanManageParticipantPageVo> pageOutput = internshipPlanManageParticipantService.getTeamStudentPage(new Page<>(dto.getLimit(), dto.getSize()), dto);
|
|
|
return RT.ok(pageOutput);
|
|
|
}
|
|
|
|
|
|
@@ -101,7 +101,11 @@ public class InternshipPlanManageParticipantController {
|
|
|
@SaCheckPermission("internshipplanmanageparticipant:evaluate")
|
|
|
@XjrLog(value = "评价学生实习")
|
|
|
public RT<Boolean> evaluate(@Valid @RequestBody EvaluateInternshipPlanManageParticipantDto dto){
|
|
|
- InternshipPlanManageParticipant participant = internshipPlanManageParticipantService.getById(dto.getId());
|
|
|
+ InternshipPlanManageParticipant participant = internshipPlanManageParticipantService.getOne(
|
|
|
+ new QueryWrapper<InternshipPlanManageParticipant>().lambda()
|
|
|
+ .eq(InternshipPlanManageParticipant::getInternshipPlanManageId, dto.getInternshipPlanManageId())
|
|
|
+ .eq(InternshipPlanManageParticipant::getParticipantUserId, dto.getId())
|
|
|
+ );
|
|
|
participant.setResult(dto.getResult());
|
|
|
internshipPlanManageParticipantService.updateById(participant);
|
|
|
return RT.ok(true);
|