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已存在"); }