diff --git a/bweb/src/main/java/com/bweb/controller/CmsController.java b/bweb/src/main/java/com/bweb/controller/CmsController.java index 832f708..d2ead99 100644 --- a/bweb/src/main/java/com/bweb/controller/CmsController.java +++ b/bweb/src/main/java/com/bweb/controller/CmsController.java @@ -54,7 +54,7 @@ public class CmsController { throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR); } CmsContent cmsContent = null; - if (body.getId() == null) { + if (body.getId() != null) { // 查询内容 cmsContent = cmsContentService.getDetail(body.getId()); if (cmsContent == null) {