get方法bug 修订

This commit is contained in:
wujj 2021-03-15 14:31:22 +08:00
parent 8efd355808
commit 67a944a584
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>net.mingsoft</groupId> <groupId>net.mingsoft</groupId>
<artifactId>ms-mcms</artifactId> <artifactId>ms-mcms</artifactId>
<version>5.2.0.RELEASE</version> <version>5.2.1-SNAPSHOT</version>
<name>ms-mcms</name> <name>ms-mcms</name>
<!-- 打包war包 --> <!-- 打包war包 -->
<!-- <packaging>war</packaging>--> <!-- <packaging>war</packaging>-->

View File

@ -285,7 +285,7 @@ public class ContentAction extends BaseAction {
if(!StringUtil.checkLength(content.getContentUrl()+"", 0, 200)){ if(!StringUtil.checkLength(content.getContentUrl()+"", 0, 200)){
return ResultData.build().error(getResString("err.length", this.getResString("content.url"), "0", "200")); return ResultData.build().error(getResString("err.length", this.getResString("content.url"), "0", "200"));
} }
contentBiz.updateEntity(content); contentBiz.saveOrUpdate(content);
return ResultData.build().success(content); return ResultData.build().success(content);
} }

View File

@ -71,7 +71,7 @@ public class ContentAop extends BaseAop {
if(content.getId()==null) { if(content.getId()==null) {
return pjp.proceed(); return pjp.proceed();
} }
content = (ContentEntity)contentBiz.getEntity(Integer.parseInt(content.getId())); content = contentBiz.getById(content.getId());
//如果文章不存在则直接发行 //如果文章不存在则直接发行
if(content == null){ if(content == null){
return pjp.proceed(); return pjp.proceed();