|
|
@ -8,6 +8,7 @@ import com.bsd.cases.model.*;
|
|
|
|
import com.bsd.cases.service.CaseContentService;
|
|
|
|
import com.bsd.cases.service.CaseContentService;
|
|
|
|
import com.bsd.cases.service.CaseUsersService;
|
|
|
|
import com.bsd.cases.service.CaseUsersService;
|
|
|
|
import com.bsd.cases.util.AjaxResult;
|
|
|
|
import com.bsd.cases.util.AjaxResult;
|
|
|
|
|
|
|
|
import com.bsd.cases.util.LogUtils;
|
|
|
|
import com.bsd.cases.util.PageAjax;
|
|
|
|
import com.bsd.cases.util.PageAjax;
|
|
|
|
import com.bsd.cases.util.PageUtils;
|
|
|
|
import com.bsd.cases.util.PageUtils;
|
|
|
|
import com.bsd.cases.vo.CaseContentBakVo;
|
|
|
|
import com.bsd.cases.vo.CaseContentBakVo;
|
|
|
@ -16,6 +17,7 @@ import com.bsd.cases.vo.CaseContentDetailVo;
|
|
|
|
import com.bsd.cases.vo.CaseContentVo;
|
|
|
|
import com.bsd.cases.vo.CaseContentVo;
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
|
@ -50,7 +52,7 @@ public class CaseContentServiceImpl extends BaseServiceImpl<CaseContentMapper, C
|
|
|
|
private CaseContentScoreMapper caseContentScoreMapper;
|
|
|
|
private CaseContentScoreMapper caseContentScoreMapper;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private CaseContentForwardMapper caseContentForwardMapper;
|
|
|
|
private CaseContentForwardMapper caseContentForwardMapper;
|
|
|
|
|
|
|
|
private Logger logger = LogUtils.getPlatformLogger();
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 获取文章列表
|
|
|
|
* 获取文章列表
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -190,7 +192,8 @@ public class CaseContentServiceImpl extends BaseServiceImpl<CaseContentMapper, C
|
|
|
|
Long contentId = jsonObject.getLong("contentId");
|
|
|
|
Long contentId = jsonObject.getLong("contentId");
|
|
|
|
JSONArray contentAttachmentJson = jsonObject.getJSONArray("contentAttachmentJson");
|
|
|
|
JSONArray contentAttachmentJson = jsonObject.getJSONArray("contentAttachmentJson");
|
|
|
|
JSONArray contentMaterialJson = jsonObject.getJSONArray("contentMaterialJson");
|
|
|
|
JSONArray contentMaterialJson = jsonObject.getJSONArray("contentMaterialJson");
|
|
|
|
|
|
|
|
logger.info("CKTEST"+ jsonObject.toJSONString());
|
|
|
|
|
|
|
|
System.out.println("CKTEST"+ jsonObject.toJSONString());
|
|
|
|
if (null == contentId) {
|
|
|
|
if (null == contentId) {
|
|
|
|
//新增
|
|
|
|
//新增
|
|
|
|
if (StringUtils.isBlank(contentTitle)) {
|
|
|
|
if (StringUtils.isBlank(contentTitle)) {
|
|
|
|