|
@@ -38,7 +38,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
38
|
38
|
<include refid="selectCmcPriceVo"/>
|
39
|
39
|
where id = #{id}
|
40
|
40
|
</select>
|
41
|
|
-
|
|
41
|
+
|
|
42
|
+ <select id="selectCmcPriceByWorkType" parameterType="String" resultMap="CmcPriceResult">
|
|
43
|
+ <include refid="selectCmcPriceVo"/>
|
|
44
|
+ where work_type = #{workType}
|
|
45
|
+ </select>
|
|
46
|
+
|
|
47
|
+ <select id="selectCmcPriceByWorkItem" parameterType="String" resultMap="CmcPriceResult">
|
|
48
|
+ <include refid="selectCmcPriceVo"/>
|
|
49
|
+ where work_item = #{workItem}
|
|
50
|
+ </select>
|
|
51
|
+
|
|
52
|
+ <select id="selectCmcPriceByScaleGrade" parameterType="String" resultMap="CmcPriceResult">
|
|
53
|
+ <include refid="selectCmcPriceVo"/>
|
|
54
|
+ where work_item = #{param1} and sub_item = #{param2} and scale_grade = #{param3}
|
|
55
|
+ </select>
|
|
56
|
+
|
42
|
57
|
<insert id="insertCmcPrice" parameterType="CmcPrice" useGeneratedKeys="true" keyProperty="id">
|
43
|
58
|
insert into cmc_price
|
44
|
59
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|