bugfix: parentId结果返回;
This commit is contained in:
@@ -730,6 +730,8 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
|||||||
private Long getParentIdByElementIdAndElementType(Long elementId, String elementType) {
|
private Long getParentIdByElementIdAndElementType(Long elementId, String elementType) {
|
||||||
QueryWrapper<CollectionSort> qw = new QueryWrapper<>();
|
QueryWrapper<CollectionSort> qw = new QueryWrapper<>();
|
||||||
qw.lambda().eq(CollectionSort::getRelationId, elementId);
|
qw.lambda().eq(CollectionSort::getRelationId, elementId);
|
||||||
|
|
||||||
|
elementType = transElementType(elementType);
|
||||||
qw.lambda().eq(CollectionSort::getRelationType, elementType);
|
qw.lambda().eq(CollectionSort::getRelationType, elementType);
|
||||||
List<CollectionSort> collectionSortList = collectionSortMapper.selectList(qw);
|
List<CollectionSort> collectionSortList = collectionSortMapper.selectList(qw);
|
||||||
if (CollectionUtils.isEmpty(collectionSortList)) {
|
if (CollectionUtils.isEmpty(collectionSortList)) {
|
||||||
@@ -743,6 +745,16 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
|||||||
return collectionSort.getParentId();
|
return collectionSort.getParentId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String transElementType(String elementType) {
|
||||||
|
if (elementType.equals("DesignOutfit")) {
|
||||||
|
return CollectionType.DESIGN.getValue();
|
||||||
|
}else if (elementType.equals("ToProductImage")) {
|
||||||
|
return CollectionType.TO_PRODUCT_IMAGE.getValue();
|
||||||
|
}else {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private MagicToolResultVO processFluxResult(String fluxImgMinioPath, ToProductImageResult toProductImageResult, String taskId){
|
private MagicToolResultVO processFluxResult(String fluxImgMinioPath, ToProductImageResult toProductImageResult, String taskId){
|
||||||
toProductImageResult.setUrl(fluxImgMinioPath);
|
toProductImageResult.setUrl(fluxImgMinioPath);
|
||||||
toProductImageResultMapper.updateById(toProductImageResult);
|
toProductImageResultMapper.updateById(toProductImageResult);
|
||||||
|
|||||||
Reference in New Issue
Block a user