|
@@ -162,9 +162,9 @@ public class TmProjectServiceImpl extends ServiceImpl<ITmProjectMapper, TmProjec
|
|
|
redisUtil.expire(redisKey,RedisKeyUtil.projectRandCodeKeyTime);
|
|
|
return redisUtil.get(redisKey);
|
|
|
}
|
|
|
- TmProject tmProject = this.getById(caseId);
|
|
|
- if(tmProject ==null){
|
|
|
- throw new BusinessException(ResultCode.PROJECT_NOT_EXITS);
|
|
|
+ CaseEntity caseEntity = caseService.getById(caseId);
|
|
|
+ if(caseEntity ==null){
|
|
|
+ throw new BusinessException(ResultCode.CASE_NOT_EXITS);
|
|
|
}
|
|
|
ProjectRandCodeVo vo = new ProjectRandCodeVo(RandomUtil.randomString(4));
|
|
|
redisUtil.set(redisKey, JSONObject.toJSONString(vo));
|