【修改】开始考试进入监控不从缓存获取,修改文字段落考点
This commit is contained in:
@@ -141,14 +141,20 @@ public class MonitorServiceImpl implements MonitorService {
|
||||
@Override
|
||||
public long getStuMonitor(StuMonitorPaperVo stuMonitorPaperVo) throws RuntimeException {
|
||||
String key = "userCache:" + stuMonitorPaperVo.getTaskId() + ":" + stuMonitorPaperVo.getStuId();
|
||||
MonitorDO info = JsonUtils.parseObject(stringRedisTemplate.opsForValue().get(key), MonitorDO.class);
|
||||
if (info == null) {
|
||||
info=monitorMapper.selectOne(
|
||||
new QueryWrapper<MonitorDO>()
|
||||
.eq("task_id", stuMonitorPaperVo.getTaskId())
|
||||
.eq("stu_id", stuMonitorPaperVo.getStuId())
|
||||
);
|
||||
}
|
||||
// MonitorDO info = JsonUtils.parseObject(stringRedisTemplate.opsForValue().get(key), MonitorDO.class);
|
||||
// if (info == null) {
|
||||
// info=monitorMapper.selectOne(
|
||||
// new QueryWrapper<MonitorDO>()
|
||||
// .eq("task_id", stuMonitorPaperVo.getTaskId())
|
||||
// .eq("stu_id", stuMonitorPaperVo.getStuId())
|
||||
// );
|
||||
// }
|
||||
MonitorDO info =monitorMapper.selectOne(
|
||||
new QueryWrapper<MonitorDO>()
|
||||
.eq("task_id", stuMonitorPaperVo.getTaskId())
|
||||
.eq("stu_id", stuMonitorPaperVo.getStuId())
|
||||
);
|
||||
|
||||
//获取属性 判断 专业/课程点位
|
||||
Long loginTenantId = SecurityFrameworkUtils.getLoginTenantId();
|
||||
|
||||
@@ -406,6 +412,7 @@ public class MonitorServiceImpl implements MonitorService {
|
||||
MonitorDO monitorDO = null;
|
||||
if (info != null) {
|
||||
monitorDO = monitorMapper.selectById(info.getMonitorId());
|
||||
System.out.println(monitorDO);
|
||||
info.setScore(String.valueOf(score));
|
||||
if (StringUtils.isNotBlank(monitorDO.getScore())) {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user