|  | @ -4,9 +4,11 @@ import cn.stylefeng.guns.zjxl.model.ZjxlArticleContent;
 | 
	
		
			
				|  |  | import cn.stylefeng.guns.zjxl.service.ZjxlArticleContentService;
 | 
	
		
			
				|  |  | import cn.stylefeng.guns.zjxlUtil.BaseController;
 | 
	
		
			
				|  |  | import cn.stylefeng.guns.zjxlUtil.PageUtil;
 | 
	
		
			
				|  |  | import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  | import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  | import io.swagger.annotations.ApiOperation;
 | 
	
		
			
				|  |  | import io.swagger.annotations.ApiParam;
 | 
	
		
			
				|  |  | import jdk.nashorn.internal.ir.WithNode;
 | 
	
		
			
				|  |  | import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  | import org.slf4j.Logger;
 | 
	
		
			
				|  |  | import org.slf4j.LoggerFactory;
 | 
	
	
		
			
				|  | @ -217,4 +219,40 @@ public class ZjxlArticleContentController extends BaseController {
 | 
	
		
			
				|  |  |             return write(-1,"查询失败");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     @RequestMapping(value = "updateArticleAllInfo",method = RequestMethod.POST)
 | 
	
		
			
				|  |  |     @ApiOperation("修改文章信息")
 | 
	
		
			
				|  |  |     public String updateArticleAllInfo(@ApiParam(name="id",value = "文章id",required = true)@RequestParam(value = "id",required = true)String id,
 | 
	
		
			
				|  |  |                                        @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,
 | 
	
		
			
				|  |  |                                        @ApiParam(name = "articleContentSort", value = "排序", required = false) @RequestParam(value = "articleContentSort", required = false)Integer articleContentSort,
 | 
	
		
			
				|  |  |                                        @ApiParam(name = "articleContentIsLine", value = "是否上线", required = false, defaultValue = "0") @RequestParam(value = "articleContentIsLine", required = false)Integer articleContentIsLine){
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             ZjxlArticleContent zjxlArticleContent = new ZjxlArticleContent();
 | 
	
		
			
				|  |  |             zjxlArticleContent.setArticleContentId(id);
 | 
	
		
			
				|  |  |             zjxlArticleContent.setArticleContentTitle(articleContentTitle);
 | 
	
		
			
				|  |  |             zjxlArticleContent.setArticleContentCover(articleContentCover);
 | 
	
		
			
				|  |  |             zjxlArticleContent.setArticleContentAbstract(articleContentAbstract);
 | 
	
		
			
				|  |  |             zjxlArticleContent.setArticleContentContent(articleContentContent);
 | 
	
		
			
				|  |  |             zjxlArticleContent.setArticleContentType(articleContentType);
 | 
	
		
			
				|  |  |             zjxlArticleContent.setArticleContentClassify(articleContentClassify);
 | 
	
		
			
				|  |  |             zjxlArticleContent.setArticleContentSubclassify(articleContentSubclassify);
 | 
	
		
			
				|  |  |             zjxlArticleContent.setArticleContentSort(articleContentSort);
 | 
	
		
			
				|  |  |             zjxlArticleContent.setArticleContentIsLine(articleContentIsLine);
 | 
	
		
			
				|  |  |             JSONObject result = articleContentService.updateArticleAllInfo(zjxlArticleContent);
 | 
	
		
			
				|  |  |             if (result.getInteger("status")==-1){
 | 
	
		
			
				|  |  |                 return write(-1,"修改失败");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             return write(200,"修改成功","data",result.getJSONObject("articleInfo"));
 | 
	
		
			
				|  |  |         }catch (Exception e){
 | 
	
		
			
				|  |  |             e.printStackTrace();
 | 
	
		
			
				|  |  |             return write(-1,"修改失败");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | }
 |