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

@@ -18,6 +18,37 @@
<result property="updateTime" column="update_time"/>
<result property="updateBy" column="update_by"/>
</resultMap>
<select id="selectVoPagePlus" resultType="com.gear.oa.domain.vo.GearReturnExchangeVo">
SELECT
gre.return_exchange_id,
gre.order_detail_id,
gre.customer_id,
gc.name AS customerName,
gre.type,
gre.reason,
gre.status,
gre.amount,
gre.del_flag,
gre.create_time,
gre.create_by,
gre.update_time,
gre.update_by,
god.order_id,
gp.product_id AS productId,
gp.product_code AS productCode,
gp.product_name AS productName,
gp.category_id AS categoryId,
god.quantity AS quantity,
god.unit AS detail_unit,
god.tax_price AS taxPrice,
god.no_tax_price AS noTaxPrice
FROM gear_return_exchange gre
LEFT JOIN gear_order_detail god ON gre.order_detail_id = god.detail_id
LEFT JOIN gear_product gp ON god.product_id = gp.product_id
LEFT JOIN gear_customer gc ON gre.customer_id = gc.customer_id
${ew.customSqlSegment}
</select>
</mapper>