|
|
|
@ -129,15 +129,34 @@ public class EvaluationRecordController implements EvaluationRecordControllerApi |
|
|
|
|
@Override |
|
|
|
|
@GetMapping("/openExercise") |
|
|
|
|
public R isOpenExercise(Integer userId){ |
|
|
|
|
Integer score = fractionEntityService.queryExerciseRecord(userId); |
|
|
|
|
return R.ok(); |
|
|
|
|
Integer id = fractionEntityService.queryScore(userId); |
|
|
|
|
if (id>0){ |
|
|
|
|
Integer score = fractionEntityService.queryExerciseRecord(userId); |
|
|
|
|
if (score>=60){ |
|
|
|
|
return R.ok("true"); |
|
|
|
|
}else{ |
|
|
|
|
return R.error("false"); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
return R.error("false"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@GetMapping("/openTeaching") |
|
|
|
|
public R isOpenTeaching(Integer userId){ |
|
|
|
|
Integer score = fractionEntityService.queryTeachingRecord(userId); |
|
|
|
|
return R.ok(); |
|
|
|
|
Integer id = fractionEntityService.queryScore(userId); |
|
|
|
|
if (id>0){ |
|
|
|
|
Integer score = fractionEntityService.queryTeachingRecord(userId); |
|
|
|
|
if (score>=60){ |
|
|
|
|
return R.ok("true"); |
|
|
|
|
}else{ |
|
|
|
|
return R.error("false"); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
return R.error("false"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//// @Override
|
|
|
|
|