ContractStdProcessingLine.xml
3.94 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?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.ContractStdProcessingLineMapper">
<resultMap id="ContractStdProcessingLine" type="com.lframework.xingyun.sc.entity.ContractStdProcessingLine">
<id column="id" property="id"/>
<result column="contract_id" property="contractId"/>
<result column="raw_product_id" property="rawProductId"/>
<result column="raw_product_grade" property="rawProductGrade"/>
<result column="industry" property="industry"/>
<result column="quality" property="quality"/>
<result column="loss_rate" property="lossRate"/>
<result column="supply_time" property="supplyTime"/>
<result column="material_product_ratio" property="materialProductRatio"/>
<result column="material_product_ratio_remarks" property="materialProductRatioRemarks"/>
<result column="product_id" property="productId"/>
<result column="product_grade" property="productGrade"/>
<result column="product_status" property="productStatus"/>
<result column="product_quantity" property="productQuantity"/>
<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="unit_price" property="unitPrice"/>
<result column="amount_excluding_tax" property="amountExcludingTax"/>
<result column="total_amount" property="totalAmount"/>
<result column="delivery_date" property="deliveryDate"/>
<result column="show_order" property="showOrder"/>
<result column="item_id" property="itemId"/>
<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="ContractStdProcessingLine_sql">
SELECT
tb.id,
tb.contract_id,
tb.raw_product_id,
tb.raw_product_grade,
tb.industry,
tb.quality,
tb.loss_rate,
tb.supply_time,
tb.material_product_ratio,
tb.material_product_ratio_remarks,
tb.product_id,
tb.product_grade,
tb.product_status,
tb.product_quantity,
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.unit_price,
tb.amount_excluding_tax,
tb.total_amount,
tb.delivery_date,
tb.show_order,
tb.item_id,
tb.create_by_id,
tb.create_by,
tb.update_by_id,
tb.update_by,
tb.create_time,
tb.update_time
FROM tbl_contract_std_processing_line AS tb
</sql>
<select id="query" resultMap="ContractStdProcessingLine">
<include refid="ContractStdProcessingLine_sql"/>
<where>
<if test="vo.contractId != null and vo.contractId != ''">
AND tb.contract_id = #{vo.contractId}
</if>
</where>
</select>
</mapper>