Commit e5e733d4 authored by shiyu's avatar shiyu

分销商个人主页订单22

parent e981b51f
......@@ -41,7 +41,7 @@ public class SelfPageInfoVo implements Entity {
private List<DistributionOrderNum> orderNum;
/**
* 商家自己购买的订单各状态数量
* 商家卖出去的商品订单
*/
private List<DistributionOrderNum> orderNumForDistributor;
......
......@@ -61,13 +61,14 @@ public class SelfPageServiceImpl implements SelfPageService {
distributionOrderNumList.forEach(distributionOrderNum -> {
distributionOrderNum.setStateName(DistributionEnum.DistributionOrderStateEnum.getNameByCode(distributionOrderNum.getState()));
});
selfPageInfoVo.setOrderNum(distributionOrderNumList);
//分销商卖出去的商品订单
selfPageInfoVo.setOrderNumForDistributor(distributionOrderNumList);
//分销商自己购买的订单
List<DistributionOrderNum> selfBuyNumList = distributionOrderDao.countGroupByStateForUser(dto.getUserId());
selfBuyNumList.forEach(s -> {
s.setStateName(DistributionEnum.DistributionOrderStateEnum.getNameByCode(s.getState()));
});
selfPageInfoVo.setOrderNumForDistributor(selfBuyNumList);
selfPageInfoVo.setOrderNum(selfBuyNumList);
return Result.success(selfPageInfoVo);
} catch (Exception e) {
logger.error("查询分销商个人主页失败 error : {}", 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