From 44b9be9c6f137c4a89fefa94139247e8328fbe3b Mon Sep 17 00:00:00 2001 From: "rong.liu" Date: Thu, 11 Jul 2024 10:41:28 +0800 Subject: [PATCH] =?UTF-8?q?SEO=E6=96=B0=E5=A2=9E=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/huoran/iasf/controller/SeoController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/huoran/iasf/controller/SeoController.java b/src/main/java/com/huoran/iasf/controller/SeoController.java index 182377f..2508c5b 100644 --- a/src/main/java/com/huoran/iasf/controller/SeoController.java +++ b/src/main/java/com/huoran/iasf/controller/SeoController.java @@ -32,7 +32,7 @@ public class SeoController { @PostMapping("/add") @ApiOperation(value = "新增seo") public R addUserGroup(@RequestBody Seo seo) { - Seo one = seoService.getOne(new QueryWrapper().eq("title", seo.getTitle())); + Seo one = seoService.getOne(new QueryWrapper().eq("title", seo.getTitle()).eq("site_id", seo.getSiteId())); if (ObjectUtil.isNotNull(one)) { R.fail("seo已存在"); }