接口加入sellerId
This commit is contained in:
@@ -187,6 +187,7 @@ public class ListingMallServiceImpl extends ServiceImpl<ListingMallMapper, Listi
|
||||
vo.setDesignFor(entity.getDesignFor());
|
||||
vo.setProductCategory(entity.getProductCategory());
|
||||
vo.setAvatar(minioUtil.processMinioResource(designer != null ? designer.getAvatar() : null, CommonConstants.MINIO_PATH_TIMEOUT));
|
||||
vo.setSellerId(entity.getSellerId());
|
||||
return vo;
|
||||
}
|
||||
|
||||
@@ -257,6 +258,7 @@ public class ListingMallServiceImpl extends ServiceImpl<ListingMallMapper, Listi
|
||||
vo.setStatus(entity.getStatus());
|
||||
vo.setProductCategory(entity.getProductCategory());
|
||||
vo.setShopName(designer != null ? designer.getShopName() : null);
|
||||
vo.setSellerId(entity.getSellerId());
|
||||
return vo;
|
||||
})
|
||||
.toList();
|
||||
|
||||
@@ -52,4 +52,7 @@ public class ListingDetailVO implements Serializable {
|
||||
|
||||
/** 店铺头像URL */
|
||||
private String avatar;
|
||||
|
||||
/** 卖家ID */
|
||||
private Long sellerId;
|
||||
}
|
||||
|
||||
@@ -33,4 +33,7 @@ public class ListingMallVO implements Serializable {
|
||||
|
||||
/** 店铺名称 */
|
||||
private String shopName;
|
||||
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long sellerId;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.aida.seller.module.order.service;
|
||||
|
||||
import com.aida.seller.common.constants.CommonConstants;
|
||||
import com.aida.seller.common.context.UserContext;
|
||||
import com.aida.seller.common.exception.BusinessException;
|
||||
import com.aida.seller.module.designer.entity.DesignerEntity;
|
||||
import com.aida.seller.module.designer.mapper.DesignerMapper;
|
||||
@@ -177,6 +178,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
|
||||
vo.setTotalPrice(order.getTotalPrice());
|
||||
vo.setStatus(order.getStatus());
|
||||
vo.setShopName(order.getShopName());
|
||||
vo.setSellerId(order.getSellerId());
|
||||
|
||||
List<OrderItemEntity> items = itemsMap.getOrDefault(order.getId(), Collections.emptyList());
|
||||
List<BuyerOrderItemVO> itemVOs = items.stream().map(item -> {
|
||||
|
||||
@@ -32,6 +32,10 @@ public class BuyerOrderVO implements Serializable {
|
||||
@Schema(description = "店铺名称")
|
||||
private String shopName;
|
||||
|
||||
@Schema(description = "卖家ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long sellerId;
|
||||
|
||||
@Schema(description = "商品明细列表")
|
||||
private List<BuyerOrderItemVO> items;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user