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);