|
@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
8
|
8
|
<result property="budgetSettleId" column="budget_settle_id" />
|
9
|
9
|
<result property="budgetId" column="budget_id" />
|
10
|
10
|
<result property="priceId" column="price_id" />
|
|
11
|
+ <result property="checkPriceId" column="check_price_id" />
|
11
|
12
|
<result property="content" column="content" />
|
12
|
13
|
<result property="workload" column="workload" />
|
13
|
14
|
<result property="coefficient" column="coefficient" />
|
|
@@ -29,8 +30,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
29
|
30
|
</resultMap>
|
30
|
31
|
|
31
|
32
|
<sql id="selectCmcBudgetSettleVo">
|
32
|
|
- select bs.budget_settle_id, bs.budget_id, bs.content, bs.price_id, p.work_type, p.work_item, p.sub_item, p.scale_grade, p.unit, p.common_price, p.complex_price, bs.workload, bs.coefficient, bs.ground_type, bs.settle , bs.remark from cmc_budget_settle as bs
|
|
33
|
+ select bs.budget_settle_id, bs.budget_id, bs.content, bs.price_id, bs.check_price_id, p.work_type, p.work_item, p.sub_item, p.scale_grade, p.unit, p.common_price, p.complex_price, bs.workload, bs.coefficient, bs.ground_type, bs.settle , bs.remark from cmc_budget_settle as bs
|
33
|
34
|
left join cmc_price as p on p.id = bs.price_id
|
|
35
|
+ left join cmc_check_price as cp on cp.id = bs.check_price_id
|
34
|
36
|
</sql>
|
35
|
37
|
|
36
|
38
|
<select id="selectCmcBudgetSettleList" parameterType="CmcBudgetSettle" resultMap="CmcBudgetSettleResult">
|
|
@@ -57,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
57
|
59
|
<if test="budgetId != null">budget_id,</if>
|
58
|
60
|
<if test="content != null">content,</if>
|
59
|
61
|
<if test="priceId != null">price_id,</if>
|
|
62
|
+ <if test="checkPriceId != null">check_price_id,</if>
|
60
|
63
|
<if test="workload != null">workload,</if>
|
61
|
64
|
<if test="coefficient != null">coefficient,</if>
|
62
|
65
|
<if test="groundType != null">ground_type,</if>
|
|
@@ -68,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
68
|
71
|
<if test="budgetId != null">#{budgetId},</if>
|
69
|
72
|
<if test="content != null">#{content},</if>
|
70
|
73
|
<if test="priceId != null">#{priceId},</if>
|
|
74
|
+ <if test="checkPriceId != null">#{checkPriceId},</if>
|
71
|
75
|
<if test="workload != null">#{workload},</if>
|
72
|
76
|
<if test="coefficient != null">#{coefficient},</if>
|
73
|
77
|
<if test="groundType != null">#{groundType},</if>
|
|
@@ -82,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
82
|
86
|
<if test="budgetId != null">budget_id = #{budgetId},</if>
|
83
|
87
|
<if test="content != null">content = #{content},</if>
|
84
|
88
|
<if test="priceId != null">price_id = #{priceId},</if>
|
|
89
|
+ <if test="checkPriceId != null">check_price_id = #{checkPriceId},</if>
|
85
|
90
|
<if test="workload != null">workload = #{workload},</if>
|
86
|
91
|
<if test="coefficient != null">coefficient = #{coefficient},</if>
|
87
|
92
|
<if test="groundType != null">ground_type = #{groundType},</if>
|