Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/main/java/com/bsd/cases/service/impl/CaseContentServiceImpl.java
master
ck 5 years ago
commit 2480acf169

@ -261,4 +261,21 @@ public class CaseContentController {
}
return ajaxResult;
}
/**
* id
* @return
*/
@RequestMapping("/get-all-content")
public AjaxResult getAllContent() {
AjaxResult ajaxResult = new AjaxResult();
try {
ajaxResult = caseContentService.getAllContentList();
} catch (Exception e) {
e.printStackTrace();
ajaxResult.setRetmsg("操作失败:" + e.getMessage());
ajaxResult.setRetcode(AjaxResult.FAILED);
}
return ajaxResult;
}
}

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

@ -37,4 +37,10 @@ public interface CaseContentService<CaseContent> extends BaseService<CaseContent
*
*/
AjaxResult forwardContent(Long contentId);
/**
*
* @return
*/
AjaxResult getAllContentList();
}

@ -53,6 +53,7 @@ public class CaseContentServiceImpl extends BaseServiceImpl<CaseContentMapper, C
@Resource
private CaseContentForwardMapper caseContentForwardMapper;
private Logger logger = LogUtils.getPlatformLogger();
/**
*
*
@ -192,9 +193,8 @@ public class CaseContentServiceImpl extends BaseServiceImpl<CaseContentMapper, C
Long contentId = jsonObject.getLong("contentId");
JSONArray contentAttachmentJson = jsonObject.getJSONArray("contentAttachmentJson");
JSONArray contentMaterialJson = jsonObject.getJSONArray("contentMaterialJson");
logger.info("CKTEST"+ jsonObject.toJSONString());
System.out.println("CKTEST"+ jsonObject.toJSONString());
if (null == contentId) {
System.out.println("CKTEST"+jsonObject.toJSONString());
logger.info("CKTEST"+jsonObject.toJSONString());if (null == contentId) {
//新增
if (StringUtils.isBlank(contentTitle)) {
ajaxResult.setRetcode(AjaxResult.FAILED);

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