联查name和code

This commit is contained in:
2025-07-21 10:45:55 +08:00
parent b23808d23c
commit 887e273528
8 changed files with 51 additions and 3 deletions

View File

@@ -22,4 +22,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
SELECT * FROM wms_order_detail WHERE order_id = #{orderId} AND del_flag = 0
</select>
<!-- 分页联查产品名称和编码支持Wrapper动态条件返回Page<WmsOrderDetailVo> -->
<select id="selectVoPagePlus" resultType="com.klp.domain.vo.WmsOrderDetailVo">
SELECT
d.*,
p.product_name AS productName,
p.product_code AS productCode
FROM wms_order_detail d
LEFT JOIN wms_product p ON d.product_id = p.product_id
${ew.customSqlSegment}
</select>
</mapper>