【修改】 运行异常,删除多余方法
This commit is contained in:
@@ -1,13 +1,11 @@
|
|||||||
package com.example.exam.exam.service.stupaperscore;
|
package com.example.exam.exam.service.stupaperscore;
|
||||||
|
|
||||||
import com.example.exam.exam.dal.StuPaperScoreDO;
|
import com.example.exam.exam.dal.StuPaperScoreDO;
|
||||||
import com.example.exam.exam.mapper.EducationPaperMapper;
|
|
||||||
import com.example.exam.exam.mapper.StuPaperScoreMapper;
|
import com.example.exam.exam.mapper.StuPaperScoreMapper;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -21,8 +19,6 @@ public class StuPaperScoreServiceImpl implements StuPaperScoreService {
|
|||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private StuPaperScoreMapper stuPaperScoreMapper;
|
private StuPaperScoreMapper stuPaperScoreMapper;
|
||||||
@Resource
|
|
||||||
private EducationPaperMapper educationPaperMapper;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<StuPaperScoreDO> findByStuIDAndPaperId(Long stuId, String paperId, String temporaryId) {
|
public List<StuPaperScoreDO> findByStuIDAndPaperId(Long stuId, String paperId, String temporaryId) {
|
||||||
@@ -33,19 +29,4 @@ public class StuPaperScoreServiceImpl implements StuPaperScoreService {
|
|||||||
public void insertStuPaperScore(StuPaperScoreDO stuPaperScoreDO) {
|
public void insertStuPaperScore(StuPaperScoreDO stuPaperScoreDO) {
|
||||||
stuPaperScoreMapper.insert(stuPaperScoreDO);
|
stuPaperScoreMapper.insert(stuPaperScoreDO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void updateStuPaperScore(StuPaperScoreDO stuPaperScoreDO) {
|
|
||||||
stuPaperScoreMapper.updateById(stuPaperScoreDO);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public StuPaperScoreDO getStuScoreByPaperIdAndQuid(Long stuId, String paperId, String quId) {
|
|
||||||
return stuPaperScoreMapper.findByStuIdAndPaperIdAndQuestionId(stuId, paperId, quId);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void deleteStuPaperScore(Long stuId, String paperId) {
|
|
||||||
stuPaperScoreMapper.deleteByStuIdAndPaperId(stuId, paperId);
|
|
||||||
}
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user