Commit 93d27934 by 田超

Merge branch 'feature/1004412' into 'master'

feat: [1004412] ERP码下权益、收益数据优化及相关问题处理

See merge request rays/pcloud-book!1223
parents d6792782 bca0f885
package com.pcloud.book.book.vo; package com.pcloud.book.book.vo;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -27,4 +29,7 @@ public class QrCodeVO { ...@@ -27,4 +29,7 @@ public class QrCodeVO {
@ApiModelProperty("公众号码id") @ApiModelProperty("公众号码id")
private Long sceneId; private Long sceneId;
@ApiModelProperty("销售额")
private BigDecimal saleMoney;
} }
...@@ -278,4 +278,38 @@ public class TradeConsr { ...@@ -278,4 +278,38 @@ public class TradeConsr {
} }
return new ArrayList<>(); return new ArrayList<>();
} }
/**
* 获取rays码销售额
* @param bookGroupIds
* @return
*/
public Map<Long, BigDecimal> getGroupListSaleInfo(List<Long> bookGroupIds) {
if (CollUtil.isEmpty(bookGroupIds)) {
return new HashMap<>();
}
try {
return ResponseHandleUtil.parseMap(orderFormService.getGroupListSaleInfo(bookGroupIds), Long.class,BigDecimal.class);
} catch (Exception e) {
LOGGER.error("查询rays码销售额失败.[getGroupListSaleInfo]:{}", e.getMessage(), e);
}
return new HashMap<>();
}
/**
* 获取二维码销售额
* @param sceneIds
* @return
*/
public Map<Long, BigDecimal> getSceneListSaleInfo(List<Long> sceneIds) {
if (CollUtil.isEmpty(sceneIds)) {
return new HashMap<>();
}
try {
return ResponseHandleUtil.parseMap(orderFormService.getSceneListSaleInfo(sceneIds), Long.class,BigDecimal.class);
} catch (Exception e) {
LOGGER.error("查询二维码销售额失败.[getSceneListSaleInfo]:{}", e.getMessage(), e);
}
return new HashMap<>();
}
} }
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