From 8b6a558f031c86f4ad4fd5d09ae6d7ebeb832c9d Mon Sep 17 00:00:00 2001 From: chen-xin-zhi <3588068430@qq.com> Date: Tue, 18 Mar 2025 14:29:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0https?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/cultural/heritage/controller/good/GoodController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/cultural/heritage/controller/good/GoodController.java b/src/main/java/com/cultural/heritage/controller/good/GoodController.java index e28a81d..2b636c1 100644 --- a/src/main/java/com/cultural/heritage/controller/good/GoodController.java +++ b/src/main/java/com/cultural/heritage/controller/good/GoodController.java @@ -164,6 +164,8 @@ public class GoodController { } Good good = new Good(); BeanUtils.copyProperties(goodAddRequest, good); + String url = festivalService.getUrlByFestivalName(good.getFestivalName()); + good.setFestivalName(good.getFestivalName() + ";" + url); // 校验 goodService.validGood(good, false); boolean save = goodService.save(good);