master
ck 5 years ago
parent c3be246c2a
commit bb4040a990

@ -131,7 +131,10 @@ public class CaseContentServiceImpl extends BaseServiceImpl<CaseContentMapper, C
CaseContent caseContent = caseContentMapper.selectByPrimaryKey(contentId);
CaseContentDetailVo caseContentDetailVo = new CaseContentDetailVo();
caseContentDetailVo.setId(contentId);
String content = new String(caseContent.getContent(), "utf8");
String content = null;
if (null != caseContent.getContent()){
content = new String(caseContent.getContent(), "utf8");
}
caseContentDetailVo.setContent(content);
caseContentDetailVo.setCategoryId(caseContent.getCategoryId());
CaseCategory caseCategory = caseCategoryMapper.selectByPrimaryKey(caseContent.getCategoryId());

Loading…
Cancel
Save