Commit 1419c7e5 authored by shiyu's avatar shiyu

创建海报链接加上藏品总个数

parent 55da090c
package com.wwdz.ch.wx.impl.distribution;
import com.github.pagehelper.PageInfo;
import com.wwdz.ch.core.consts.DistributionEnum;
import com.wwdz.ch.core.type.Result;
import com.wwdz.ch.core.util.UUID;
......@@ -49,6 +50,7 @@ public class CollectionShareRecordServiceImpl implements CollectionShareRecordSe
List<String> imageList = new ArrayList<>();
//藏馆分享需要返回海报图片
List<SupplierItem> supplierItemList = supplierItemDao.findByCreatorId(dto.getItemUserId());
PageInfo pageInfo = new PageInfo(supplierItemList);
supplierItemList.forEach(supplierItem -> {
String images = supplierItem.getImages();
if (StringUtils.hasLength(images)) {
......@@ -56,6 +58,7 @@ public class CollectionShareRecordServiceImpl implements CollectionShareRecordSe
}
});
map.put("imageList", imageList);
map.put("count", pageInfo.getTotal());
}
return Result.success(map);
} catch (Exception e) {
......
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