|
@ -58,6 +58,7 @@ public class ZjxlArticleContentController extends BaseController {
|
|
|
@ApiParam(name = "articleContentTitle", value = "文章标题", required = false) @RequestParam(value = "articleContentTitle", required = false)String articleContentTitle,
|
|
|
@ApiParam(name = "articleContentCover", value = "封面", required = false) @RequestParam(value = "articleContentCover", required = false)String articleContentCover,
|
|
|
@ApiParam(name = "articleContentAbstract", value = "摘要", required = false) @RequestParam(value = "articleContentAbstract", required = false) String articleContentAbstract,
|
|
|
@ApiParam(name = "articleContentContent", value = "内容", required = false) @RequestParam(value = "articleContentContent", required = false) String articleContentContent,
|
|
|
@ApiParam(name = "articleContentType", value = "内容类型 1-产品与服务 2-公司案例 3-新闻中心 4-关于我们", required = false) @RequestParam(value = "articleContentType", required = false)Integer articleContentType,
|
|
|
@ApiParam(name = "articleContentClassify", value = "分类", required = false) @RequestParam(value = "articleContentClassify", required = false)String articleContentClassify,
|
|
|
@ApiParam(name = "articleContentSubclassify", value = "子分类", required = false) @RequestParam(value = "articleContentSubclassify", required = false)String articleContentSubclassify,
|
|
@ -73,6 +74,7 @@ public class ZjxlArticleContentController extends BaseController {
|
|
|
articleContent.setArticleContentSubclassify(articleContentSubclassify);
|
|
|
articleContent.setArticleContentSort(articleContentSort);
|
|
|
articleContent.setArticleContentIsLine(articleContentIsLine);
|
|
|
articleContent.setArticleContentContent(articleContentContent);
|
|
|
|
|
|
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
|
|
|
articleContent.setArticleContentCreateTime(df.format(new Date()));// new Date()为获取当前系统时间
|
|
@ -173,4 +175,21 @@ public class ZjxlArticleContentController extends BaseController {
|
|
|
return write(-1,"操作失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/findNewsList", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "查询新闻中心列表")
|
|
|
public String findNewsList(@ApiParam(name = "id", value = "文章id", required = false) @RequestParam(value = "id", required = false)String id,
|
|
|
// @ApiParam(name = "articleContentTitle", value = "文章标题", required = false) @RequestParam(value = "articleContentTitle", required = false)String articleContentTitle,
|
|
|
// @ApiParam(name = "systemDictType", value = "内容类型 1-产品与服务 2-公司案例 3-新闻中心 4-关于我们", required = false, defaultValue = "3") @RequestParam(value = "systemDictType", required = false)Integer systemDictType,
|
|
|
@ApiParam(name = "articleContentClassify", value = "分类: 公司动态 媒体报道 参观交流", defaultValue = "公司动态") @RequestParam(value = "articleContentClassify") String articleContentClassify,
|
|
|
@ApiParam(name = "pageNo", value = "第几页", defaultValue = "1") @RequestParam(value = "pageNo", required = false) Integer pageNo,
|
|
|
@ApiParam(name = "pageSize", value = "分页大小", defaultValue = "10") @RequestParam(value = "pageSize", required = false) Integer pageSize){
|
|
|
try {
|
|
|
List<ZjxlArticleContent> articleContentList = articleContentService.findNewsList(id,articleContentClassify,3,pageNo-1,pageSize);
|
|
|
return write(200,"查询成功","data", PageUtil.getPage(articleContentList,pageNo,pageSize,articleContentService.allNewsCount(articleContentClassify)));
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return write(-1,"查询失败");
|
|
|
}
|
|
|
}
|
|
|
}
|