master
ck 5 years ago
parent b30ae3ddcd
commit e387ff7d93

@ -14,4 +14,6 @@ public interface CaseContentMapper extends CommonMapper<CaseContent> {
, @Param("level1Id") Long level1Id
, @Param("level2Id") Long level2Id
, @Param("level3Id") Long level3Id);
List<CaseContent> getAllContentList();
}

@ -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;
}

@ -26,4 +26,8 @@
and a.`content_title` LIKE CONCAT('%',#{name},'%')
</if>
</select>
<select id="getAllContentList" resultType="com.bsd.cases.model.CaseContent">
select cc.`id`,cc.`content_title` from case_content cc where cc.state = 1
</select>
</mapper>

Loading…
Cancel
Save