|
|
|
@ -8,6 +8,7 @@ import com.bsd.cases.model.*;
|
|
|
|
|
import com.bsd.cases.service.CaseContentService;
|
|
|
|
|
import com.bsd.cases.service.CaseUsersService;
|
|
|
|
|
import com.bsd.cases.util.AjaxResult;
|
|
|
|
|
import com.bsd.cases.util.LogUtils;
|
|
|
|
|
import com.bsd.cases.util.PageAjax;
|
|
|
|
|
import com.bsd.cases.util.PageUtils;
|
|
|
|
|
import com.bsd.cases.vo.CaseContentBakVo;
|
|
|
|
@ -16,6 +17,7 @@ import com.bsd.cases.vo.CaseContentDetailVo;
|
|
|
|
|
import com.bsd.cases.vo.CaseContentVo;
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
@ -51,6 +53,8 @@ public class CaseContentServiceImpl extends BaseServiceImpl<CaseContentMapper, C
|
|
|
|
|
@Resource
|
|
|
|
|
private CaseContentForwardMapper caseContentForwardMapper;
|
|
|
|
|
|
|
|
|
|
private Logger logger = LogUtils.getBussinessLogger();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取文章列表
|
|
|
|
|
*
|
|
|
|
@ -190,7 +194,8 @@ public class CaseContentServiceImpl extends BaseServiceImpl<CaseContentMapper, C
|
|
|
|
|
Long contentId = jsonObject.getLong("contentId");
|
|
|
|
|
JSONArray contentAttachmentJson = jsonObject.getJSONArray("contentAttachmentJson");
|
|
|
|
|
JSONArray contentMaterialJson = jsonObject.getJSONArray("contentMaterialJson");
|
|
|
|
|
|
|
|
|
|
System.out.println("CKTEST"+jsonObject.toJSONString());
|
|
|
|
|
logger.info("CKTEST"+jsonObject.toJSONString());
|
|
|
|
|
if (null == contentId) {
|
|
|
|
|
//新增
|
|
|
|
|
if (StringUtils.isBlank(contentTitle)) {
|
|
|
|
@ -416,9 +421,7 @@ public class CaseContentServiceImpl extends BaseServiceImpl<CaseContentMapper, C
|
|
|
|
|
@Override
|
|
|
|
|
public AjaxResult getAllContentList() {
|
|
|
|
|
AjaxResult ajaxResult = new AjaxResult();
|
|
|
|
|
CaseContent findCaseContent = new CaseContent();
|
|
|
|
|
findCaseContent.setState(Constants.STATE_VALID);
|
|
|
|
|
List<CaseContent> caseContentList = caseContentMapper.select(findCaseContent);
|
|
|
|
|
List<CaseContent> caseContentList = caseContentMapper.getAllContentList();
|
|
|
|
|
ajaxResult.setData(caseContentList);
|
|
|
|
|
return ajaxResult;
|
|
|
|
|
}
|
|
|
|
|