成绩管理:虚拟仿真实验成绩管理

hehai
rong.liu 4 years ago
parent 17adf2bfea
commit 4c1bd6d6f7
  1. 2
      src/main/java/com/msdw/tms/api/AchievementManagementApi.java
  2. 11
      src/main/java/com/msdw/tms/controller/AchievementManagementController.java
  3. 3
      src/main/java/com/msdw/tms/dao/AchievementManagementDao.java
  4. 3
      src/main/java/com/msdw/tms/service/AchievementManagementService.java
  5. 7
      src/main/java/com/msdw/tms/service/impl/AchievementManagementServiceImpl.java
  6. 9
      src/main/resources/mapper/tms/AchievementManagementDao.xml

@ -83,4 +83,6 @@ public interface AchievementManagementApi {
R deleteReportByProjectId(@ApiParam(value = "项目id",required = true) Integer projectId); R deleteReportByProjectId(@ApiParam(value = "项目id",required = true) Integer projectId);
@ApiOperation(value = "成绩管理:虚拟仿真实验成绩管理", notes = "成绩管理:虚拟仿真实验成绩管理")
R getImitationAchievement(@ApiParam(value = "projectId", required = false) Integer projectId);
} }

@ -3,6 +3,7 @@ package com.msdw.tms.controller;
import com.msdw.tms.api.AchievementManagementApi; import com.msdw.tms.api.AchievementManagementApi;
import com.msdw.tms.common.utils.R; import com.msdw.tms.common.utils.R;
import com.msdw.tms.entity.*; import com.msdw.tms.entity.*;
import com.msdw.tms.entity.vo.AchievementManagementVO;
import com.msdw.tms.entity.vo.ResultsVo; import com.msdw.tms.entity.vo.ResultsVo;
import com.msdw.tms.service.AchievementManagementService; import com.msdw.tms.service.AchievementManagementService;
import com.msdw.tms.service.ProjectRecordService; import com.msdw.tms.service.ProjectRecordService;
@ -276,4 +277,14 @@ public class AchievementManagementController implements AchievementManagementApi
public R deleteReportByProjectId(@RequestParam Integer projectId) { public R deleteReportByProjectId(@RequestParam Integer projectId) {
return service.deleteReportByProjectId(projectId); return service.deleteReportByProjectId(projectId);
} }
/**
* 成绩管理:虚拟仿真实验成绩管理
*/
@Override
@GetMapping("/getImitationAchievement")
public R getImitationAchievement(@RequestParam(required = true) Integer projectId) {
List<AchievementManagementVO> result = service.getImitationAchievement(projectId);
return R.ok().put("data", result);
}
} }

@ -74,4 +74,7 @@ public interface AchievementManagementDao extends BaseMapper<ExperimentalReportE
void updateSignatrue(Integer isSignature,Integer signatureId,Integer reportId,String comment); void updateSignatrue(Integer isSignature,Integer signatureId,Integer reportId,String comment);
void deleteReportById(Integer projectId); void deleteReportById(Integer projectId);
//虚拟仿真成绩管理查询
List<AchievementManagementVO> getImitationAchievement(Integer projectId);
} }

@ -6,6 +6,7 @@ import com.msdw.tms.entity.ExperimentalReportEntity;
import com.msdw.tms.entity.ExperimentalTeachingEntity; import com.msdw.tms.entity.ExperimentalTeachingEntity;
import com.msdw.tms.entity.ReportEntity; import com.msdw.tms.entity.ReportEntity;
import com.msdw.tms.entity.ResultsEntity; import com.msdw.tms.entity.ResultsEntity;
import com.msdw.tms.entity.vo.AchievementManagementVO;
import com.msdw.tms.entity.vo.ResultsVo; import com.msdw.tms.entity.vo.ResultsVo;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
@ -44,4 +45,6 @@ public interface AchievementManagementService extends IService<ExperimentalRepor
void updateSignatrue(ExperimentalReportEntity entity); void updateSignatrue(ExperimentalReportEntity entity);
R deleteReportByProjectId(Integer projectId); R deleteReportByProjectId(Integer projectId);
List<AchievementManagementVO> getImitationAchievement(Integer projectId);
} }

@ -292,4 +292,11 @@ public class AchievementManagementServiceImpl extends ServiceImpl<AchievementMan
} }
@Override
public List<AchievementManagementVO> getImitationAchievement(Integer projectId) {
List<AchievementManagementVO> list = achievementManagementDao.getImitationAchievement(projectId);
return list;
}
} }

@ -482,4 +482,13 @@
WHERE hr_project_management.projectId = #{projectId} WHERE hr_project_management.projectId = #{projectId}
</update> </update>
<select id="getImitationAchievement" resultType="com.msdw.tms.entity.vo.AchievementManagementVO">
SELECT r.recordId, schoolName, userName, workNumber, score, submitTime
from tms_project_record r
inner join student s on s.userId = r.userId
inner join hr_user_info u on u.userId = r.userId
inner join school sch on sch.schoolId = u.schoolId
WHERE r.projectId = #{projectId};
</select>
</mapper> </mapper>
Loading…
Cancel
Save