|
|
@ -190,6 +190,7 @@ public class PatientService implements IPatientService{ |
|
|
|
//添加结束时间和分数
|
|
|
|
Object o = redisUtil.get(Constant.Redis.RECORD_SCORE + param.getId()); |
|
|
|
Object o1 = redisUtil.get(Constant.Redis.RECORD_TIMES + param.getId()); |
|
|
|
log.info("redis内查询分数--{}和次数--{}",o,o1); |
|
|
|
int score = ObjectUtil.isNotNull(o) ? (int) o : 0; |
|
|
|
int times = ObjectUtil.isNotNull(o1) ? (int) o1 : 0; |
|
|
|
log.info("{}训练的分数:{}--次数:{}",recipeRecord.getId(),score,times); |
|
|
@ -217,6 +218,9 @@ public class PatientService implements IPatientService{ |
|
|
|
//删除redis内的分数
|
|
|
|
redisUtil.del(Constant.Redis.RECORD_SCORE + recipeRecord.getId()); |
|
|
|
redisUtil.del(Constant.Redis.RECORD_TIMES + recipeRecord.getId()); |
|
|
|
Object d = redisUtil.get(Constant.Redis.RECORD_SCORE + recipeRecord.getId()); |
|
|
|
Object d1 = redisUtil.get(Constant.Redis.RECORD_TIMES + recipeRecord.getId()); |
|
|
|
log.info("结束后删除分数--{}和次数--{}",d,d1); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|