Commit 225dfc60 by Administrator

Merge branch 'feature/1006275' into 'master'

feat:[1006275]应用共享

See merge request rays/pcloud-book!1496
parents 17d07d2f f7d5017e
...@@ -1374,6 +1374,9 @@ public class ResourcePageBizImpl implements ResourcePageBiz { ...@@ -1374,6 +1374,9 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
BigDecimal price = appPriceMap.get(serveId).getRetailPrice(); BigDecimal price = appPriceMap.get(serveId).getRetailPrice();
itemVO.setPrice(null == price?Double.valueOf(0d):price.doubleValue()); itemVO.setPrice(null == price?Double.valueOf(0d):price.doubleValue());
} }
//标记应用共享状态
itemVO.setAppCreateUser(appDto.getCreatedUser());
itemVO.setShareState(appDto.getShareState());
} else if (ResourcePageConstants.ServeTypeEnum.PRODUCT.getValue().equals(serveType) } else if (ResourcePageConstants.ServeTypeEnum.PRODUCT.getValue().equals(serveType)
&& !MapUtils.isEmpty(productDtoMap) && productDtoMap.containsKey(serveId)) { && !MapUtils.isEmpty(productDtoMap) && productDtoMap.containsKey(serveId)) {
ProductDto productDto = productDtoMap.get(itemVO.getServeId()); ProductDto productDto = productDtoMap.get(itemVO.getServeId());
......
...@@ -129,4 +129,9 @@ public class ResourcePageItemVO extends BaseDto{ ...@@ -129,4 +129,9 @@ public class ResourcePageItemVO extends BaseDto{
@ApiModelProperty("简介") @ApiModelProperty("简介")
private String selfSmallPic; private String selfSmallPic;
@ApiModelProperty("共享状态")
private Integer shareState;
private Long appCreateUser;
} }
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