|
@@ -302,7 +302,7 @@ public class ScanOmrTaskServiceImpl extends ServiceImpl<ScanOmrTaskMapper, ScanO
|
|
private List<ScanOmrTask> getByStudent(ConditionType c, Long studentId) {
|
|
private List<ScanOmrTask> getByStudent(ConditionType c, Long studentId) {
|
|
QueryWrapper<ScanOmrTask> wrapper = new QueryWrapper<>();
|
|
QueryWrapper<ScanOmrTask> wrapper = new QueryWrapper<>();
|
|
LambdaQueryWrapper<ScanOmrTask> lw = wrapper.lambda();
|
|
LambdaQueryWrapper<ScanOmrTask> lw = wrapper.lambda();
|
|
- lw.eq(ScanOmrTask::getConditions, c);
|
|
|
|
|
|
+ lw.eq(ScanOmrTask::getConditions, c.toString());
|
|
lw.eq(ScanOmrTask::getStudentId, studentId);
|
|
lw.eq(ScanOmrTask::getStudentId, studentId);
|
|
return baseMapper.selectList(wrapper);
|
|
return baseMapper.selectList(wrapper);
|
|
}
|
|
}
|
|
@@ -310,7 +310,7 @@ public class ScanOmrTaskServiceImpl extends ServiceImpl<ScanOmrTaskMapper, ScanO
|
|
private void delete(ConditionType c, Long studentId, Long paperId) {
|
|
private void delete(ConditionType c, Long studentId, Long paperId) {
|
|
UpdateWrapper<ScanOmrTask> wrapper = new UpdateWrapper<>();
|
|
UpdateWrapper<ScanOmrTask> wrapper = new UpdateWrapper<>();
|
|
LambdaUpdateWrapper<ScanOmrTask> lw = wrapper.lambda();
|
|
LambdaUpdateWrapper<ScanOmrTask> lw = wrapper.lambda();
|
|
- lw.eq(ScanOmrTask::getConditions, c);
|
|
|
|
|
|
+ lw.eq(ScanOmrTask::getConditions, c.toString());
|
|
lw.eq(ScanOmrTask::getStudentId, studentId);
|
|
lw.eq(ScanOmrTask::getStudentId, studentId);
|
|
lw.eq(ScanOmrTask::getPaperId, paperId);
|
|
lw.eq(ScanOmrTask::getPaperId, paperId);
|
|
this.baseMapper.delete(wrapper);
|
|
this.baseMapper.delete(wrapper);
|
|
@@ -319,7 +319,7 @@ public class ScanOmrTaskServiceImpl extends ServiceImpl<ScanOmrTaskMapper, ScanO
|
|
private void delete(ConditionType c, Long studentId) {
|
|
private void delete(ConditionType c, Long studentId) {
|
|
UpdateWrapper<ScanOmrTask> wrapper = new UpdateWrapper<>();
|
|
UpdateWrapper<ScanOmrTask> wrapper = new UpdateWrapper<>();
|
|
LambdaUpdateWrapper<ScanOmrTask> lw = wrapper.lambda();
|
|
LambdaUpdateWrapper<ScanOmrTask> lw = wrapper.lambda();
|
|
- lw.eq(ScanOmrTask::getConditions, c);
|
|
|
|
|
|
+ lw.eq(ScanOmrTask::getConditions, c.toString());
|
|
lw.eq(ScanOmrTask::getStudentId, studentId);
|
|
lw.eq(ScanOmrTask::getStudentId, studentId);
|
|
this.baseMapper.delete(wrapper);
|
|
this.baseMapper.delete(wrapper);
|
|
}
|
|
}
|