|
@@ -166,9 +166,8 @@ public class TmProjectServiceImpl extends ServiceImpl<ITmProjectMapper, TmProjec
|
|
|
if(caseEntity ==null){
|
|
|
throw new BusinessException(ResultCode.CASE_NOT_EXITS);
|
|
|
}
|
|
|
- ProjectRandCodeVo vo = new ProjectRandCodeVo(RandomUtil.randomString(4));
|
|
|
- redisUtil.set(redisKey, JSONObject.toJSONString(vo));
|
|
|
- return vo;
|
|
|
+ redisUtil.set(redisKey, RandomUtil.randomString(4));
|
|
|
+ return RandomUtil.randomString(4);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -185,9 +184,7 @@ public class TmProjectServiceImpl extends ServiceImpl<ITmProjectMapper, TmProjec
|
|
|
}
|
|
|
|
|
|
String value = redisUtil.get(redisKey);
|
|
|
- ProjectRandCodeVo projectRandCodeVo = JSONObject.parseObject(value, ProjectRandCodeVo.class);
|
|
|
- projectRandCodeVo.setRandCode(projectRandCodeDto.getRandCode());
|
|
|
- redisUtil.set(redisKey,JSONObject.toJSONString(projectRandCodeVo),RedisKeyUtil.projectRandCodeKeyTime);
|
|
|
+ redisUtil.set(redisKey,value,RedisKeyUtil.projectRandCodeKeyTime);
|
|
|
}
|
|
|
|
|
|
@Override
|