订单售后退款:添加获取售后订单详情接口

This commit is contained in:
puhui999 2023-08-29 09:54:14 +08:00
parent 0411b3464a
commit d5fe7708ce
2 changed files with 6 additions and 0 deletions

View File

@ -8,12 +8,17 @@ import cn.iocoder.yudao.module.trade.controller.admin.order.vo.TradeOrderItemBas
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.List; import java.util.List;
@Schema(description = "管理后台 - 售后订单的详情 Response VO") @Schema(description = "管理后台 - 售后订单的详情 Response VO")
@Data @Data
public class TradeAfterSaleDetailRespVO extends TradeAfterSaleBaseVO { public class TradeAfterSaleDetailRespVO extends TradeAfterSaleBaseVO {
@Schema(description = "售后编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
@NotNull(message = "售后编号不能为空")
private Long id;
/** /**
* 订单项列表 * 订单项列表
*/ */

View File

@ -74,6 +74,7 @@ public interface TradeAfterSaleConvert {
TradeOrderBaseVO convert(TradeOrderDO order); TradeOrderBaseVO convert(TradeOrderDO order);
@Mapping(target = "id", source = "afterSale.id")
TradeAfterSaleDetailRespVO convert(TradeAfterSaleDO afterSale, List<TradeOrderItemDO> orderItems, List<TradeAfterSaleLogRespVO> logs); TradeAfterSaleDetailRespVO convert(TradeAfterSaleDO afterSale, List<TradeOrderItemDO> orderItems, List<TradeAfterSaleLogRespVO> logs);
default TradeAfterSaleDetailRespVO convert(TradeAfterSaleDO afterSale, TradeOrderDO order, List<TradeOrderItemDO> orderItems, default TradeAfterSaleDetailRespVO convert(TradeAfterSaleDO afterSale, TradeOrderDO order, List<TradeOrderItemDO> orderItems,