Commit 16cd0105 authored by unset's avatar unset

影像图库新增批量上下架以及删除接口

parent 82075acc
......@@ -867,7 +867,7 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
case IMAGE_STORAGE:
ImageInfoRelation imageInfoRelation = imageInfoRelationBiz.selectById(itemInfoDto.getId());
if (imageInfoRelation != null) {
ImageImgStorage imageImgStorage = imageImgStorageBiz.getDetail(itemInfoDto.getId().intValue()).getData();
ImageImgStorage imageImgStorage = imageImgStorageBiz.getDetail(imageInfoRelation.getRelationId()).getData();
if (imageImgStorage != null) {
List<ImageInfoRelation> imageInfoRelationList = new ArrayList<>();
imageInfoRelationList.add(imageInfoRelation);
......@@ -880,7 +880,7 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
orderItem.setName(imageImgStorage.getName());
orderItem.setItemPic(imageImgStorage.getCoverImg());
orderItem.setDetailJson(JSONObject.toJSONString(imageImgStorage));
orderItem.setDetailId(Long.valueOf(imageImgStorage.getId()));
orderItem.setDetailId(Long.valueOf(imageInfoRelation.getId()));
orderItemList.add(orderItem);
}
}
......@@ -977,16 +977,10 @@ public class OrderInfoBiz extends BaseBiz<OrderInfoMapper, OrderInfo> {
imageInfoRelationList.stream().forEach(imageInfoRelation -> {
ItemInfoVo itemInfoVo = new ItemInfoVo();
itemInfoVo.setName(imageImgStorage.getName() + " 尺寸:(" + imageInfoRelation.getFileWidth()+ ")");
itemInfoVo.setId(Long.parseLong(String.valueOf(imageImgStorage.getId())));
itemInfoVo.setId(Long.parseLong(String.valueOf(imageInfoRelation.getId())));
itemInfoVo.setType(ItemTypeEnum.IMAGE_STORAGE.getType());
itemInfoVoList.add(itemInfoVo);
});
} else {
ItemInfoVo itemInfoVo = new ItemInfoVo();
itemInfoVo.setName(imageImgStorage.getName());
itemInfoVo.setId(Long.parseLong(String.valueOf(imageImgStorage.getId())));
itemInfoVo.setType(ItemTypeEnum.IMAGE_STORAGE.getType());
itemInfoVoList.add(itemInfoVo);
}
});
}
......
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