|
|
@ -70,7 +70,7 @@ public class TestServiceImpl extends ServiceImpl<TestMapper, TestEntity> impleme |
|
|
|
TestEntity test = getTestByCode(testEntity.getCode()); |
|
|
|
TestEntity test = getTestByCode(testEntity.getCode()); |
|
|
|
// 获取姓名数组
|
|
|
|
// 获取姓名数组
|
|
|
|
String people = test.getPeopleName(); |
|
|
|
String people = test.getPeopleName(); |
|
|
|
String[] person = people.split(",|,"); |
|
|
|
String[] person = people.split(","); |
|
|
|
// 新增参考人员成绩数据
|
|
|
|
// 新增参考人员成绩数据
|
|
|
|
List<TestScoreEntity> scoreList = getReferenceTestScore(test, person); |
|
|
|
List<TestScoreEntity> scoreList = getReferenceTestScore(test, person); |
|
|
|
return R.status(testScoreService.saveBatch(scoreList)); |
|
|
|
return R.status(testScoreService.saveBatch(scoreList)); |
|
|
@ -169,7 +169,7 @@ public class TestServiceImpl extends ServiceImpl<TestMapper, TestEntity> impleme |
|
|
|
boolean removeByIds = testScoreService.removeByIds(scoreIds); |
|
|
|
boolean removeByIds = testScoreService.removeByIds(scoreIds); |
|
|
|
// 若删除成功,新增新的考试成绩数据
|
|
|
|
// 若删除成功,新增新的考试成绩数据
|
|
|
|
if (removeByIds) { |
|
|
|
if (removeByIds) { |
|
|
|
String[] person = testEntity.getPeopleName().split(",|,"); |
|
|
|
String[] person = testEntity.getPeopleName().split(","); |
|
|
|
// 新增参考人员成绩数据
|
|
|
|
// 新增参考人员成绩数据
|
|
|
|
List<TestScoreEntity> scoreList = getReferenceTestScore(testEntity, person); |
|
|
|
List<TestScoreEntity> scoreList = getReferenceTestScore(testEntity, person); |
|
|
|
return testScoreService.saveBatch(scoreList); |
|
|
|
return testScoreService.saveBatch(scoreList); |
|
|
|