Commit cf65ec1e authored by unset's avatar unset

添加通知信息

parent 34a1520a
...@@ -123,5 +123,5 @@ public class ImageImgStorage implements Serializable { ...@@ -123,5 +123,5 @@ public class ImageImgStorage implements Serializable {
//相似图像 //相似图像
@Transient @Transient
List<ImageInfoRelation> similarImageList; List<ImageImgStorage> similarImageList;
} }
...@@ -120,13 +120,27 @@ public class ImageImgStorageBiz extends BaseBiz<ImageImgStorageMapper,ImageImgSt ...@@ -120,13 +120,27 @@ public class ImageImgStorageBiz extends BaseBiz<ImageImgStorageMapper,ImageImgSt
imageImgStorage.setImageInfoRelationList(imageInfoRelationList); imageImgStorage.setImageInfoRelationList(imageInfoRelationList);
} }
if (StringUtils.isNotBlank(imageImgStorage.getRelatedIds())) { if (StringUtils.isNotBlank(imageImgStorage.getRelatedIds())) {
imageImgStorage.setSimilarImageList(imageInfoRelationBiz.getAllByIds(imageImgStorage.getRelatedIds())); imageImgStorage.setSimilarImageList(getListByIds(imageImgStorage.getRelatedIds()));
} }
}); });
} }
return ObjectRestResponse.succ(pageDataVO); return ObjectRestResponse.succ(pageDataVO);
} }
public List<ImageImgStorage> getListByIds(String ids) {
List<ImageImgStorage> list = new ArrayList<>();
String[] arr = ids.split(",");
if (arr != null) {
for (String id : arr) {
ImageImgStorage imageImgStorage = getDetail(Integer.valueOf(id)).getData();
if (imageImgStorage != null) {
list.add(imageImgStorage);
}
}
}
return list;
}
/** /**
* 查询详情信息 * 查询详情信息
* @param id * @param id
...@@ -152,7 +166,7 @@ public class ImageImgStorageBiz extends BaseBiz<ImageImgStorageMapper,ImageImgSt ...@@ -152,7 +166,7 @@ public class ImageImgStorageBiz extends BaseBiz<ImageImgStorageMapper,ImageImgSt
imageImgStorage.setImageInfoRelationList(imageInfoRelationList); imageImgStorage.setImageInfoRelationList(imageInfoRelationList);
} }
if (StringUtils.isNotBlank(imageImgStorage.getRelatedIds())) { if (StringUtils.isNotBlank(imageImgStorage.getRelatedIds())) {
imageImgStorage.setSimilarImageList(imageInfoRelationBiz.getAllByIds(imageImgStorage.getRelatedIds())); imageImgStorage.setSimilarImageList(getListByIds(imageImgStorage.getRelatedIds()));
} }
return ObjectRestResponse.succ(imageImgStorage); return ObjectRestResponse.succ(imageImgStorage);
} }
...@@ -176,7 +190,7 @@ public class ImageImgStorageBiz extends BaseBiz<ImageImgStorageMapper,ImageImgSt ...@@ -176,7 +190,7 @@ public class ImageImgStorageBiz extends BaseBiz<ImageImgStorageMapper,ImageImgSt
imageImgStorage.setImageInfoRelationList(imageInfoRelationList); imageImgStorage.setImageInfoRelationList(imageInfoRelationList);
} }
if (StringUtils.isNotBlank(imageImgStorage.getRelatedIds())) { if (StringUtils.isNotBlank(imageImgStorage.getRelatedIds())) {
imageImgStorage.setSimilarImageList(imageInfoRelationBiz.getAllByIds(imageImgStorage.getRelatedIds())); imageImgStorage.setSimilarImageList(getListByIds(imageImgStorage.getRelatedIds()));
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment