From 7d0d460e5c065cd46b02bac734e6e2fe63d33f15 Mon Sep 17 00:00:00 2001 From: shahaibo <1023316923@qq.com> Date: Sun, 6 Oct 2024 14:33:31 +0800 Subject: [PATCH] bugfix:redesign bug; --- .../java/com/ai/da/service/impl/DesignServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java b/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java index b3bc5505..1ea15c14 100644 --- a/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java @@ -299,14 +299,14 @@ public class DesignServiceImpl extends ServiceImpl impleme collectionId = collectionService.saveCollection(userInfo.getId(), designDTO.getTimeZone(), designDTO.getMoodTemplateId(), designDTO.getMoodboardPostion()); }else { collectionId = collectionIdParam; - Collection byId = collectionService.getById(collectionIdParam); +// Collection byId = collectionService.getById(collectionIdParam); // if (!designDTO.getMoodboardPostion().equals(byId.getMoodboardPosition())) { // byId.setMoodboardPosition(designDTO.getMoodboardPostion()); // } - if (!designDTO.getMoodTemplateId().equals(byId.getMoodTemplateId())) { - byId.setMoodTemplateId(designDTO.getMoodTemplateId()); - } - collectionService.updateById(byId); +// if (!designDTO.getMoodTemplateId().equals(byId.getMoodTemplateId())) { +// byId.setMoodTemplateId(designDTO.getMoodTemplateId()); +// } +// collectionService.updateById(byId); } List elementIds = getElementId(elementVO); //批量关联element 到 collection