ReplenishmentOrderLineMapper.xml
3.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?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>