BUGFIX:moodboard edit;
This commit is contained in:
@@ -61,6 +61,6 @@ public class DesignCollectionDTO {
|
|||||||
@ApiModelProperty("python端design进程ID")
|
@ApiModelProperty("python端design进程ID")
|
||||||
private String processId;
|
private String processId;
|
||||||
|
|
||||||
private String moodboardPostion;
|
private String moodboardPosition;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,12 +48,12 @@ public class CollectionServiceImpl extends ServiceImpl<CollectionMapper, Collect
|
|||||||
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@Override
|
@Override
|
||||||
public Long saveCollection(Long accountId, String timeZone, String moodTemplateId, String moodboardPostion) {
|
public Long saveCollection(Long accountId, String timeZone, String moodTemplateId, String moodboardPosition) {
|
||||||
Collection collection = new Collection();
|
Collection collection = new Collection();
|
||||||
collection.setAccountId(accountId);
|
collection.setAccountId(accountId);
|
||||||
collection.setCreateDate(DateUtil.getByTimeZone(timeZone));
|
collection.setCreateDate(DateUtil.getByTimeZone(timeZone));
|
||||||
collection.setMoodTemplateId(moodTemplateId);
|
collection.setMoodTemplateId(moodTemplateId);
|
||||||
collection.setMoodboardPosition(moodboardPostion);
|
collection.setMoodboardPosition(moodboardPosition);
|
||||||
if (collectionMapper.insert(collection) <= 0) {
|
if (collectionMapper.insert(collection) <= 0) {
|
||||||
throw new BusinessException("save.collection.failed");
|
throw new BusinessException("save.collection.failed");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -296,7 +296,7 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
|
|||||||
//保存collection
|
//保存collection
|
||||||
Long collectionId;
|
Long collectionId;
|
||||||
if (null == collectionIdParam) {
|
if (null == collectionIdParam) {
|
||||||
collectionId = collectionService.saveCollection(userInfo.getId(), designDTO.getTimeZone(), designDTO.getMoodTemplateId(), designDTO.getMoodboardPostion());
|
collectionId = collectionService.saveCollection(userInfo.getId(), designDTO.getTimeZone(), designDTO.getMoodTemplateId(), designDTO.getMoodboardPosition());
|
||||||
}else {
|
}else {
|
||||||
collectionId = collectionIdParam;
|
collectionId = collectionIdParam;
|
||||||
// Collection byId = collectionService.getById(collectionIdParam);
|
// Collection byId = collectionService.getById(collectionIdParam);
|
||||||
|
|||||||
Reference in New Issue
Block a user