春风项目四线(合箱线、总装线)
jiang
2024-01-12 c9a5c5c9a57abee05470e958e4dc161809f73cf4
提交 | 用户 | 时间
fd2207 1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE mapper
3 PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5 <mapper namespace="com.jcdm.main.da.collectionParamConf.mapper.DaCollectionParamConfMapper">
6     
7     <resultMap type="DaCollectionParamConf" id="DaCollectionParamConfResult">
8         <result property="id"    column="id"    />
9         <result property="processesCode"    column="processes_code"    />
10         <result property="parameterSetCode"    column="parameter_set_code"    />
11         <result property="parameterSetName"    column="parameter_set_name"    />
12         <result property="collectParameterId"    column="collect_parameter_id"    />
13         <result property="collectParameterName"    column="collect_parameter_name"    />
14         <result property="contrastParameterFlag"    column="contrast_parameter_flag"    />
15         <result property="collectParameterType"    column="collect_parameter_type"    />
16         <result property="collectParameterUnit"    column="collect_parameter_unit"    />
17         <result property="Descriptives"    column="Descriptives"    />
18         <result property="paramUpper"    column="param_upper"    />
19         <result property="paramLower"    column="param_lower"    />
20         <result property="paramCentral"    column="param_Central"    />
21         <result property="productCode"    column="product_code"    />
22         <result property="gatherAddress"    column="gather_address"    />
23         <result property="gatherSequence"    column="gather_sequence"    />
24         <result property="remarks"    column="remarks"    />
25         <result property="createUser"    column="create_user"    />
26         <result property="createTime"    column="create_time"    />
27         <result property="updateUser"    column="update_user"    />
28         <result property="updateTime"    column="update_time"    />
29         <result property="spareField1"    column="spare_field_1"    />
30         <result property="spareField2"    column="spare_field_2"    />
31         <result property="spareField3"    column="spare_field_3"    />
32         <result property="spareField4"    column="spare_field_4"    />
33     </resultMap>
34
35     <sql id="selectDaCollectionParamConfVo">
36         select id, processes_code, parameter_set_code, parameter_set_name, collect_parameter_id, collect_parameter_name, contrast_parameter_flag, collect_parameter_type, collect_parameter_unit, Descriptives, param_upper, param_lower, param_Central, product_code, gather_address, gather_sequence, remarks, create_user, create_time, update_user, update_time, spare_field_1, spare_field_2, spare_field_3, spare_field_4 from da_collection_param_conf
37     </sql>
38
39     <select id="selectDaCollectionParamConfList" parameterType="DaCollectionParamConf" resultMap="DaCollectionParamConfResult">
40         <include refid="selectDaCollectionParamConfVo"/>
41         <where>  
42             <if test="processesCode != null  and processesCode != ''"> and processes_code like concat('%', #{processesCode}, '%')</if>
43             <if test="parameterSetCode != null  and parameterSetCode != ''"> and parameter_set_code like concat('%', #{parameterSetCode}, '%')</if>
44             <if test="parameterSetName != null  and parameterSetName != ''"> and parameter_set_name like concat('%', #{parameterSetName}, '%')</if>
45             <if test="collectParameterId != null  and collectParameterId != ''"> and collect_parameter_id like concat('%', #{collectParameterId}, '%')</if>
46             <if test="collectParameterName != null  and collectParameterName != ''"> and collect_parameter_name like concat('%', #{collectParameterName}, '%')</if>
47             <if test="contrastParameterFlag != null  and contrastParameterFlag != ''"> and contrast_parameter_flag like concat('%', #{contrastParameterFlag}, '%')</if>
48             <if test="collectParameterType != null  and collectParameterType != ''"> and collect_parameter_type like concat('%', #{collectParameterType}, '%')</if>
49             <if test="productCode != null  and productCode != ''"> and product_code like concat('%', #{productCode}, '%')</if>
50         </where>
51     </select>
52     
53     <select id="selectDaCollectionParamConfById" parameterType="Long" resultMap="DaCollectionParamConfResult">
54         <include refid="selectDaCollectionParamConfVo"/>
55         where id = #{id}
56     </select>
57         
58     <insert id="insertDaCollectionParamConf" parameterType="DaCollectionParamConf">
59         insert into da_collection_param_conf
60         <trim prefix="(" suffix=")" suffixOverrides=",">
61             <if test="id != null">id,</if>
62             <if test="processesCode != null">processes_code,</if>
63             <if test="parameterSetCode != null">parameter_set_code,</if>
64             <if test="parameterSetName != null">parameter_set_name,</if>
65             <if test="collectParameterId != null">collect_parameter_id,</if>
66             <if test="collectParameterName != null">collect_parameter_name,</if>
67             <if test="contrastParameterFlag != null">contrast_parameter_flag,</if>
68             <if test="collectParameterType != null">collect_parameter_type,</if>
69             <if test="collectParameterUnit != null">collect_parameter_unit,</if>
70             <if test="Descriptives != null">Descriptives,</if>
71             <if test="paramUpper != null">param_upper,</if>
72             <if test="paramLower != null">param_lower,</if>
73             <if test="paramCentral != null">param_Central,</if>
74             <if test="productCode != null">product_code,</if>
75             <if test="gatherAddress != null">gather_address,</if>
76             <if test="gatherSequence != null">gather_sequence,</if>
77             <if test="remarks != null">remarks,</if>
78             <if test="createUser != null">create_user,</if>
79             <if test="createTime != null">create_time,</if>
80             <if test="updateUser != null">update_user,</if>
81             <if test="updateTime != null">update_time,</if>
82             <if test="spareField1 != null">spare_field_1,</if>
83             <if test="spareField2 != null">spare_field_2,</if>
84             <if test="spareField3 != null">spare_field_3,</if>
85             <if test="spareField4 != null">spare_field_4,</if>
86          </trim>
87         <trim prefix="values (" suffix=")" suffixOverrides=",">
88             <if test="id != null">#{id},</if>
89             <if test="processesCode != null">#{processesCode},</if>
90             <if test="parameterSetCode != null">#{parameterSetCode},</if>
91             <if test="parameterSetName != null">#{parameterSetName},</if>
92             <if test="collectParameterId != null">#{collectParameterId},</if>
93             <if test="collectParameterName != null">#{collectParameterName},</if>
94             <if test="contrastParameterFlag != null">#{contrastParameterFlag},</if>
95             <if test="collectParameterType != null">#{collectParameterType},</if>
96             <if test="collectParameterUnit != null">#{collectParameterUnit},</if>
97             <if test="Descriptives != null">#{Descriptives},</if>
98             <if test="paramUpper != null">#{paramUpper},</if>
99             <if test="paramLower != null">#{paramLower},</if>
100             <if test="paramCentral != null">#{paramCentral},</if>
101             <if test="productCode != null">#{productCode},</if>
102             <if test="gatherAddress != null">#{gatherAddress},</if>
103             <if test="gatherSequence != null">#{gatherSequence},</if>
104             <if test="remarks != null">#{remarks},</if>
105             <if test="createUser != null">#{createUser},</if>
106             <if test="createTime != null">#{createTime},</if>
107             <if test="updateUser != null">#{updateUser},</if>
108             <if test="updateTime != null">#{updateTime},</if>
109             <if test="spareField1 != null">#{spareField1},</if>
110             <if test="spareField2 != null">#{spareField2},</if>
111             <if test="spareField3 != null">#{spareField3},</if>
112             <if test="spareField4 != null">#{spareField4},</if>
113          </trim>
114     </insert>
115
116     <update id="updateDaCollectionParamConf" parameterType="DaCollectionParamConf">
117         update da_collection_param_conf
118         <trim prefix="SET" suffixOverrides=",">
119             <if test="processesCode != null">processes_code = #{processesCode},</if>
120             <if test="parameterSetCode != null">parameter_set_code = #{parameterSetCode},</if>
121             <if test="parameterSetName != null">parameter_set_name = #{parameterSetName},</if>
122             <if test="collectParameterId != null">collect_parameter_id = #{collectParameterId},</if>
123             <if test="collectParameterName != null">collect_parameter_name = #{collectParameterName},</if>
124             <if test="contrastParameterFlag != null">contrast_parameter_flag = #{contrastParameterFlag},</if>
125             <if test="collectParameterType != null">collect_parameter_type = #{collectParameterType},</if>
126             <if test="collectParameterUnit != null">collect_parameter_unit = #{collectParameterUnit},</if>
127             <if test="Descriptives != null">Descriptives = #{Descriptives},</if>
128             <if test="paramUpper != null">param_upper = #{paramUpper},</if>
129             <if test="paramLower != null">param_lower = #{paramLower},</if>
130             <if test="paramCentral != null">param_Central = #{paramCentral},</if>
131             <if test="productCode != null">product_code = #{productCode},</if>
132             <if test="gatherAddress != null">gather_address = #{gatherAddress},</if>
133             <if test="gatherSequence != null">gather_sequence = #{gatherSequence},</if>
134             <if test="remarks != null">remarks = #{remarks},</if>
135             <if test="createUser != null">create_user = #{createUser},</if>
136             <if test="createTime != null">create_time = #{createTime},</if>
137             <if test="updateUser != null">update_user = #{updateUser},</if>
138             <if test="updateTime != null">update_time = #{updateTime},</if>
139             <if test="spareField1 != null">spare_field_1 = #{spareField1},</if>
140             <if test="spareField2 != null">spare_field_2 = #{spareField2},</if>
141             <if test="spareField3 != null">spare_field_3 = #{spareField3},</if>
142             <if test="spareField4 != null">spare_field_4 = #{spareField4},</if>
143         </trim>
144         where id = #{id}
145     </update>
146
147     <delete id="deleteDaCollectionParamConfById" parameterType="Long">
148         delete from da_collection_param_conf where id = #{id}
149     </delete>
150
151     <delete id="deleteDaCollectionParamConfByIds" parameterType="String">
152         delete from da_collection_param_conf where id in 
153         <foreach item="id" collection="array" open="(" separator="," close=")">
154             #{id}
155         </foreach>
156     </delete>
157 </mapper>