From d151a03d608cd2faddbc2a8ef2096cfbfef76286 Mon Sep 17 00:00:00 2001 From: hu177768073 <177768073@qq.com> Date: Wed, 25 Sep 2024 11:28:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bweb/src/main/java/com/bweb/controller/CmsController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {