Commit a03759b9 authored by shiyu's avatar shiyu

藏馆订单

parent d864e9dd
...@@ -77,7 +77,7 @@ public interface DistributionOrderMapper { ...@@ -77,7 +77,7 @@ public interface DistributionOrderMapper {
/** /**
* 统计分销商各状态的订单数量 * 统计分销商各状态的订单数量
* @param distributorId * @param userId
* @return * @return
*/ */
List<DistributionOrderNum> countGroupByStateForCollector(@Param("sellerId")Long userId); List<DistributionOrderNum> countGroupByStateForCollector(@Param("sellerId")Long userId);
......
...@@ -155,7 +155,7 @@ public class SelfPageServiceImpl implements SelfPageService { ...@@ -155,7 +155,7 @@ public class SelfPageServiceImpl implements SelfPageService {
selfPageInfoVo.setAvatarUrl(cacheUtil.appletUserInfoCache.get(dto.getUserId()).get().getAvatar()); selfPageInfoVo.setAvatarUrl(cacheUtil.appletUserInfoCache.get(dto.getUserId()).get().getAvatar());
selfPageInfoVo.setProfile(cacheUtil.appletUserInfoCache.get(dto.getUserId()).get().getProfile()); selfPageInfoVo.setProfile(cacheUtil.appletUserInfoCache.get(dto.getUserId()).get().getProfile());
selfPageInfoVo.setBackground(cacheUtil.appletUserInfoCache.get(dto.getUserId()).get().getBackground()); selfPageInfoVo.setBackground(cacheUtil.appletUserInfoCache.get(dto.getUserId()).get().getBackground());
List<DistributionOrderNum> distributionOrderNumList = distributionOrderDao.countGroupByStateForDistributor(dto.getUserId()); List<DistributionOrderNum> distributionOrderNumList = distributionOrderDao.countGroupByStateForCollector(dto.getUserId());
distributionOrderNumList.forEach(distributionOrderNum -> { distributionOrderNumList.forEach(distributionOrderNum -> {
distributionOrderNum.setStateName(DistributionEnum.DistributionOrderStateEnum.getNameByCode(distributionOrderNum.getState())); distributionOrderNum.setStateName(DistributionEnum.DistributionOrderStateEnum.getNameByCode(distributionOrderNum.getState()));
}); });
......
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