BUGFIX:moodboard edit;
This commit is contained in:
@@ -399,7 +399,7 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
|
|||||||
if (!reDesignDTO.getMoodboardPosition().equals(collection.getMoodboardPosition())) {
|
if (!reDesignDTO.getMoodboardPosition().equals(collection.getMoodboardPosition())) {
|
||||||
collection.setMoodboardPosition(reDesignDTO.getMoodboardPosition());
|
collection.setMoodboardPosition(reDesignDTO.getMoodboardPosition());
|
||||||
}
|
}
|
||||||
if (null != reDesignDTO.getMoodTemplateId() && reDesignDTO.getMoodTemplateId().equals(collection.getMoodTemplateId())) {
|
if (null != reDesignDTO.getMoodTemplateId() && !reDesignDTO.getMoodTemplateId().equals(collection.getMoodTemplateId())) {
|
||||||
collection.setMoodTemplateId(reDesignDTO.getMoodTemplateId());
|
collection.setMoodTemplateId(reDesignDTO.getMoodTemplateId());
|
||||||
}
|
}
|
||||||
collectionService.updateById(collection);
|
collectionService.updateById(collection);
|
||||||
|
|||||||
Reference in New Issue
Block a user