2025-07-18 09:39:09 +08:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
|
<!DOCTYPE mapper
|
2025-07-18 10:12:48 +08:00
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
|
<mapper namespace="com.klp.mapper.WmsOrderDetailMapper">
|
2025-07-18 09:39:09 +08:00
|
|
|
|
|
2025-07-18 10:12:48 +08:00
|
|
|
|
<resultMap type="com.klp.domain.WmsOrderDetail" id="WmsOrderDetailResult">
|
|
|
|
|
|
<result property="detailId" column="detail_id"/>
|
2025-07-18 09:39:09 +08:00
|
|
|
|
<result property="orderId" column="order_id"/>
|
2025-07-18 10:12:48 +08:00
|
|
|
|
<result property="productId" column="product_id"/>
|
|
|
|
|
|
<result property="quantity" column="quantity"/>
|
|
|
|
|
|
<result property="unit" column="unit"/>
|
2025-07-18 09:39:09 +08:00
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
|
|
<result property="delFlag" column="del_flag"/>
|
|
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
|
|
<result property="updateBy" column="update_by"/>
|
2025-08-12 16:15:24 +08:00
|
|
|
|
<result property="taxPrice" column="tax_price"/>
|
|
|
|
|
|
<result property="noTaxPrice" column="no_tax_price"/>
|
2025-08-25 17:27:35 +08:00
|
|
|
|
<result property="groupId" column="group_id"/>
|
2025-07-18 09:39:09 +08:00
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
2025-07-18 11:40:29 +08:00
|
|
|
|
<select id="selectVoListByOrderId" resultType="com.klp.domain.vo.WmsOrderDetailVo">
|
|
|
|
|
|
SELECT * FROM wms_order_detail WHERE order_id = #{orderId} AND del_flag = 0
|
|
|
|
|
|
</select>
|
2025-07-18 09:39:09 +08:00
|
|
|
|
|
2025-07-21 10:45:55 +08:00
|
|
|
|
<!-- 分页联查产品名称和编码,支持Wrapper动态条件,返回Page<WmsOrderDetailVo> -->
|
|
|
|
|
|
<select id="selectVoPagePlus" resultType="com.klp.domain.vo.WmsOrderDetailVo">
|
|
|
|
|
|
SELECT
|
2025-08-12 16:15:24 +08:00
|
|
|
|
d.*,
|
2025-07-21 10:45:55 +08:00
|
|
|
|
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>
|
|
|
|
|
|
|
2025-07-18 09:39:09 +08:00
|
|
|
|
</mapper>
|