ReplenishmentOrderLineMapper.xml 3.33 KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.lframework.xingyun.sc.mappers.ReplenishmentOrderLineMapper">

    <resultMap id="ReplenishmentOrderLine" type="com.lframework.xingyun.sc.entity.ReplenishmentOrderLine">
        <id column="id" property="id"/>
        <result column="replenishment_order_id" property="replenishmentOrderId"/>
        <result column="purchase_order_line_id" property="purchaseOrderLineId"/>
        <result column="brand" property="brand"/>
        <result column="thickness" property="thickness"/>
        <result column="thickness_tol_pos" property="thicknessTolPos"/>
        <result column="thickness_tol_neg" property="thicknessTolNeg"/>
        <result column="width" property="width"/>
        <result column="width_tol_pos" property="widthTolPos"/>
        <result column="width_tol_neg" property="widthTolNeg"/>
        <result column="length" property="length"/>
        <result column="length_tol_pos" property="lengthTolPos"/>
        <result column="length_tol_neg" property="lengthTolNeg"/>
        <result column="status" property="status"/>
        <result column="quantity" property="quantity"/>
        <result column="shipped_quantity" property="shippedQuantity"/>
        <result column="supplementary_quantity" property="supplementaryQuantity"/>
        <result column="confirmed_delivery_date" property="confirmedDeliveryDate"/>
        <result column="remarks" property="remarks"/>
        <result column="sales_price" property="salesPrice"/>
        <result column="packaging_fee" property="packagingFee"/>
        <result column="create_by_id" property="createById"/>
        <result column="create_by" property="createBy"/>
        <result column="update_by_id" property="updateById"/>
        <result column="update_by" property="updateBy"/>
        <result column="create_time" property="createTime"/>
        <result column="update_time" property="updateTime"/>
    </resultMap>

    <sql id="ReplenishmentOrderLine_sql">
        SELECT tb.id,
               tb.replenishment_order_id,
               tb.purchase_order_line_id,
               tb.brand,
               tb.thickness,
               tb.thickness_tol_pos,
               tb.thickness_tol_neg,
               tb.width,
               tb.width_tol_pos,
               tb.width_tol_neg,
               tb.length,
               tb.length_tol_pos,
               tb.length_tol_neg,
               tb.status,
               tb.quantity,
               tb.shipped_quantity,
               tb.supplementary_quantity,
               tb.confirmed_delivery_date,
               tb.remarks,
               tb.show_order,
               tb.sales_price,
               tb.packaging_fee,
               tb.create_by_id,
               tb.create_by,
               tb.update_by_id,
               tb.update_by,
               tb.create_time,
               tb.update_time
        FROM tbl_replenishment_order_line AS tb
    </sql>

    <select id="query" resultMap="ReplenishmentOrderLine">
        <include refid="ReplenishmentOrderLine_sql"/>
        <where>
            <if test="vo.replenishmentOrderId != null and vo.replenishmentOrderId != ''">
                AND tb.replenishment_order_id = #{vo.replenishmentOrderId}
            </if>
        </where>
    </select>
</mapper>