You've already forked FrameTour-BE
bug修复
This commit is contained in:
@ -73,6 +73,9 @@ public class TemplateRepository {
|
||||
return JSONObject.parseObject(redisTemplate.opsForValue().get(String.format(TEMPLATE_CACHE_KEY, templateId)), TemplateRespVO.class);
|
||||
}
|
||||
TemplateRespVO template = templateMapper.getById(templateId);
|
||||
if (template == null) {
|
||||
return null;
|
||||
}
|
||||
if (null == template.getPid() || template.getPid() == 0) {
|
||||
template.setChildren(templateMapper.getByPid(templateId));
|
||||
redisTemplate.opsForValue().set(String.format(TEMPLATE_CACHE_KEY, templateId), JSONObject.toJSONString(template));
|
||||
|
Reference in New Issue
Block a user