mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-06 09:26:48 +08:00
放开注释
This commit is contained in:
@@ -327,7 +327,7 @@ public class StudyCourseApi extends ApiBaseController{
|
|||||||
StudyCourseItem item = studyService.checkHas(sci.getStudyId(),sci.getContentId());
|
StudyCourseItem item = studyService.checkHas(sci.getStudyId(),sci.getContentId());
|
||||||
|
|
||||||
// 20240815 特训营结营考试 临时代码
|
// 20240815 特训营结营考试 临时代码
|
||||||
if(redisTemplate.opsForValue().get(item.getId())==null){
|
if(item != null && redisTemplate.opsForValue().get(item.getId())==null){
|
||||||
redisTemplate.opsForValue().set(item.getId(),item.getId());
|
redisTemplate.opsForValue().set(item.getId(),item.getId());
|
||||||
//设置过期时间为1天
|
//设置过期时间为1天
|
||||||
redisTemplate.expire(item.getId(), 60, TimeUnit.SECONDS);
|
redisTemplate.expire(item.getId(), 60, TimeUnit.SECONDS);
|
||||||
@@ -419,7 +419,7 @@ public class StudyCourseApi extends ApiBaseController{
|
|||||||
if(item!=null) {
|
if(item!=null) {
|
||||||
//如果记录存在,但是进度不到100,未完成情况,就更新进度,一期不会有这种情况
|
//如果记录存在,但是进度不到100,未完成情况,就更新进度,一期不会有这种情况
|
||||||
// 20240815 特训营结营考试 临时代码
|
// 20240815 特训营结营考试 临时代码
|
||||||
if(redisTemplate.opsForValue().get(item.getId())==null){
|
if(item != null && redisTemplate.opsForValue().get(item.getId())==null){
|
||||||
redisTemplate.opsForValue().set(item.getId(),item.getId());
|
redisTemplate.opsForValue().set(item.getId(),item.getId());
|
||||||
//设置过期时间为1天
|
//设置过期时间为1天
|
||||||
redisTemplate.expire(item.getId(), 60, TimeUnit.SECONDS);
|
redisTemplate.expire(item.getId(), 60, TimeUnit.SECONDS);
|
||||||
@@ -532,7 +532,7 @@ public class StudyCourseApi extends ApiBaseController{
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
// 20240815 特训营结营考试 临时代码
|
// 20240815 特训营结营考试 临时代码
|
||||||
if(redisTemplate.opsForValue().get(itemId)==null){
|
if(itemId != null && redisTemplate.opsForValue().get(itemId)==null){
|
||||||
redisTemplate.opsForValue().set(itemId,itemId);
|
redisTemplate.opsForValue().set(itemId,itemId);
|
||||||
//设置过期时间为1天
|
//设置过期时间为1天
|
||||||
redisTemplate.expire(itemId, 60, TimeUnit.SECONDS);
|
redisTemplate.expire(itemId, 60, TimeUnit.SECONDS);
|
||||||
|
|||||||
Reference in New Issue
Block a user