feat(oa): 根据订单号查询退换货信息

- 在 GearReturnExchangeBo 中添加 orderId 字段
- 在 GearReturnExchangeMapper 中添加 selectVoPagePlus 方法
- 在 GearReturnExchangeServiceImpl 中实现根据订单号查询退换货信息的逻辑
- 在 GearReturnExchangeVo 中添加与退换货相关的额外字段
This commit is contained in:
2025-09-03 10:57:41 +08:00
parent 0425cd7be8
commit 04a68e86c0
5 changed files with 154 additions and 6 deletions

View File

@@ -58,5 +58,8 @@ public class GearReturnExchangeBo extends BaseEntity {
*/
private BigDecimal amount;
//订单id
private Long orderId;
}

View File

@@ -1,17 +1,15 @@
package com.gear.oa.domain.vo;
import java.math.BigDecimal;
import java.util.Date;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.gear.common.annotation.ExcelDictFormat;
import com.gear.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
/**
* 退换货管理视图对象 gear_return_exchange
*
@@ -37,6 +35,12 @@ public class GearReturnExchangeVo {
@ExcelProperty(value = "关联订单明细ID")
private Long orderDetailId;
/**
* 订单ID
*/
@ExcelProperty(value = "订单ID")
private Long orderId;
/**
* 客户ID
*/
@@ -67,5 +71,83 @@ public class GearReturnExchangeVo {
@ExcelProperty(value = "涉及金额")
private BigDecimal amount;
/**
* 删除标志0=正常1=已删除)
*/
private Integer delFlag;
/**
* 创建时间
*/
@ExcelProperty(value = "创建时间")
private Date createTime;
/**
* 创建人
*/
@ExcelProperty(value = "创建人")
private String createBy;
/**
* 更新时间
*/
@ExcelProperty(value = "更新时间")
private Date updateTime;
/**
* 更新人
*/
@ExcelProperty(value = "更新人")
private String updateBy;
/**
* 产品ID
*/
@ExcelProperty(value = "产品ID")
private Long productId;
/**
* 产品编号
*/
@ExcelProperty(value = "产品编号")
private String productCode;
/**
* 产品名称
*/
@ExcelProperty(value = "产品名称")
private String productName;
/**
* 产品分类ID
*/
@ExcelProperty(value = "产品分类ID")
private Long categoryId;
/**
* 明细数量
*/
@ExcelProperty(value = "明细数量")
private BigDecimal quantity;
/**
* 明细单位
*/
@ExcelProperty(value = "明细单位")
private String detailUnit;
/**
* 含税单价
*/
@ExcelProperty(value = "含税单价")
private BigDecimal taxPrice;
/**
* 无税单价
*/
@ExcelProperty(value = "无税单价")
private BigDecimal noTaxPrice;
//客户名称
@ExcelProperty(value = "客户名称")
private String customerName;
}