bugfix:redesign bug;
This commit is contained in:
@@ -299,14 +299,14 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
|
|||||||
collectionId = collectionService.saveCollection(userInfo.getId(), designDTO.getTimeZone(), designDTO.getMoodTemplateId(), designDTO.getMoodboardPostion());
|
collectionId = collectionService.saveCollection(userInfo.getId(), designDTO.getTimeZone(), designDTO.getMoodTemplateId(), designDTO.getMoodboardPostion());
|
||||||
}else {
|
}else {
|
||||||
collectionId = collectionIdParam;
|
collectionId = collectionIdParam;
|
||||||
Collection byId = collectionService.getById(collectionIdParam);
|
// Collection byId = collectionService.getById(collectionIdParam);
|
||||||
// if (!designDTO.getMoodboardPostion().equals(byId.getMoodboardPosition())) {
|
// if (!designDTO.getMoodboardPostion().equals(byId.getMoodboardPosition())) {
|
||||||
// byId.setMoodboardPosition(designDTO.getMoodboardPostion());
|
// byId.setMoodboardPosition(designDTO.getMoodboardPostion());
|
||||||
// }
|
// }
|
||||||
if (!designDTO.getMoodTemplateId().equals(byId.getMoodTemplateId())) {
|
// if (!designDTO.getMoodTemplateId().equals(byId.getMoodTemplateId())) {
|
||||||
byId.setMoodTemplateId(designDTO.getMoodTemplateId());
|
// byId.setMoodTemplateId(designDTO.getMoodTemplateId());
|
||||||
}
|
// }
|
||||||
collectionService.updateById(byId);
|
// collectionService.updateById(byId);
|
||||||
}
|
}
|
||||||
List<Long> elementIds = getElementId(elementVO);
|
List<Long> elementIds = getElementId(elementVO);
|
||||||
//批量关联element 到 collection
|
//批量关联element 到 collection
|
||||||
|
|||||||
Reference in New Issue
Block a user