BUGFIX:moodboard合成图 裁剪;

This commit is contained in:
shahaibo
2024-10-14 11:18:18 +08:00
parent e684c4e547
commit 0f4b769d49

View File

@@ -399,7 +399,7 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
if (!reDesignDTO.getMoodboardPosition().equals(collection.getMoodboardPosition())) {
collection.setMoodboardPosition(reDesignDTO.getMoodboardPosition());
}
if (!reDesignDTO.getMoodTemplateId().equals(collection.getMoodTemplateId())) {
if (null != reDesignDTO.getMoodTemplateId() && reDesignDTO.getMoodTemplateId().equals(collection.getMoodTemplateId())) {
collection.setMoodTemplateId(reDesignDTO.getMoodTemplateId());
}
collectionService.updateById(collection);