BUGFIX:图片分割参数值变更
This commit is contained in:
@@ -1018,7 +1018,7 @@ public class CollectionElementServiceImpl extends ServiceImpl<CollectionElementM
|
||||
resp.add(createCollectionElementVO(accountId, null, null, imageData.getImage_url(), imageData.getClothing_url()));
|
||||
}
|
||||
}
|
||||
} else if (Objects.nonNull(id) && sourceType.equals("library")) {
|
||||
} else if (Objects.nonNull(id) && sourceType.equals("Library")) {
|
||||
library = libraryService.getById(id);
|
||||
// 判断从library中选择的图片是否有分割数据
|
||||
if (Objects.isNull(library)) {
|
||||
@@ -1033,7 +1033,7 @@ public class CollectionElementServiceImpl extends ServiceImpl<CollectionElementM
|
||||
List<String> restoredList = Arrays.asList(library.getSegmentedData().split(","));
|
||||
resp.add(createCollectionElementVO(accountId, id, library.getLevel1Type(), library.getUrl(), restoredList));
|
||||
}
|
||||
} else if (Objects.nonNull(id) && sourceType.equals("upload")) {
|
||||
} else if (Objects.nonNull(id) && sourceType.equals("Upload")) {
|
||||
collectionElement = collectionElementMapper.selectById(id);
|
||||
// 判断id对应的数据是否存在
|
||||
if (Objects.isNull(collectionElement)) {
|
||||
@@ -1064,7 +1064,7 @@ public class CollectionElementServiceImpl extends ServiceImpl<CollectionElementM
|
||||
(imageData.getImage_url(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME), false);
|
||||
redisUtil.addToString(key, new Gson().toJson(imageData), CommonConstant.GENERATE_RESULT_EXPIRE_TIME);
|
||||
resp.add(createCollectionElementVO(accountId, null, null, imageData.getImage_url(), imageData.getClothing_url()));
|
||||
} else if (sourceType.equals("library")){
|
||||
} else if (sourceType.equals("Library")){
|
||||
// 从library中选择的图片需要更新数据库中对应图片的分割数据
|
||||
String segmentedData = String.join(",", imageData.getClothing_url());
|
||||
library.setSegmentedData(segmentedData);
|
||||
|
||||
Reference in New Issue
Block a user