Commit e7b9c75b authored by 耿迪迪's avatar 耿迪迪

考试接口问题修改 gengdidi

parent 0b3bcb91
...@@ -165,7 +165,7 @@ public class TTrainCourseController extends BaseController ...@@ -165,7 +165,7 @@ public class TTrainCourseController extends BaseController
* @param courseId 考试id * @param courseId 考试id
* @return List<TTrainUserCourse> * @return List<TTrainUserCourse>
*/ */
@PostMapping(value = "statisticsTrainCourse") @PostMapping(value = "testPersonDetailByCourseId")
public TableDataInfo testPersonDetailByCourseId(Long courseId){ public TableDataInfo testPersonDetailByCourseId(Long courseId){
startPage(); startPage();
List<TTrainUserCourse> persons = tTrainCourseService.testPersonDetailByCourseId(courseId); List<TTrainUserCourse> persons = tTrainCourseService.testPersonDetailByCourseId(courseId);
......
...@@ -197,7 +197,7 @@ public class TTrainCourseServiceImpl implements ITTrainCourseService ...@@ -197,7 +197,7 @@ public class TTrainCourseServiceImpl implements ITTrainCourseService
//新增考试人员 //新增考试人员
List<JSONObject> personList = JSONObject.parseArray(course.getTestPersons(),JSONObject.class); List<JSONObject> personList = JSONObject.parseArray(course.getTestPersons(),JSONObject.class);
List<String> persons = personList.stream().map(item ->(String)item.get("staffId")).collect(Collectors.toList()); List<String> persons = personList.stream().map(item ->(String)item.get("staffId")).collect(Collectors.toList());
tTrainCourseMapper.insertUserCourse(tTrainCourse.getCourseId(),persons); tTrainCourseMapper.insertUserCourse(tTrainCourse.getCourseId(),persons,tTrainCourse.getPersonnelType());
tTrainCourse.setStatus(1); tTrainCourse.setStatus(1);
tTrainCourse.setReleaseTime(new Date()); tTrainCourse.setReleaseTime(new Date());
return tTrainCourseMapper.updateTTrainCourse(tTrainCourse); return tTrainCourseMapper.updateTTrainCourse(tTrainCourse);
......
...@@ -151,9 +151,9 @@ export function statisticsTrainCourse(data) { ...@@ -151,9 +151,9 @@ export function statisticsTrainCourse(data) {
} }
//成绩详情 //成绩详情
export function statisticsTrainCourse(data) { export function testPersonDetailByCourseId(data) {
return request({ return request({
url: '/system/course/statisticsTrainCourse', url: '/system/course/testPersonDetailByCourseId',
method: 'post', method: 'post',
data: data data: data
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment