提交 | 用户 | 时间
|
e57a89
|
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" /> |
679fb5
|
33 |
<result property="processesName" column="processes_name" /> |
懒 |
34 |
<result property="device" column="device" /> |
|
35 |
<result property="project" column="project" /> |
|
36 |
<result property="accuracy" column="accuracy" /> |
|
37 |
<result property="arrayLength" column="array_length" /> |
|
38 |
<result property="acquisitionFrequency" column="acquisition_frequency" /> |
|
39 |
<result property="demandDepartment" column="demand_department" /> |
|
40 |
<result property="whetherToCollect" column="whether_to_collect" /> |
|
41 |
<result property="defaultValue" column="default_value" /> |
e57a89
|
42 |
</resultMap> |
懒 |
43 |
|
|
44 |
<sql id="selectDaCollectionParamConfVo"> |
679fb5
|
45 |
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, processes_name, device, project, accuracy, array_length, acquisition_frequency, demand_department, whether_to_collect, default_value from da_collection_param_conf |
e57a89
|
46 |
</sql> |
懒 |
47 |
|
|
48 |
<select id="selectDaCollectionParamConfList" parameterType="DaCollectionParamConf" resultMap="DaCollectionParamConfResult"> |
|
49 |
<include refid="selectDaCollectionParamConfVo"/> |
|
50 |
<where> |
|
51 |
<if test="processesCode != null and processesCode != ''"> and processes_code like concat('%', #{processesCode}, '%')</if> |
|
52 |
<if test="parameterSetCode != null and parameterSetCode != ''"> and parameter_set_code like concat('%', #{parameterSetCode}, '%')</if> |
|
53 |
<if test="parameterSetName != null and parameterSetName != ''"> and parameter_set_name like concat('%', #{parameterSetName}, '%')</if> |
|
54 |
<if test="collectParameterId != null and collectParameterId != ''"> and collect_parameter_id like concat('%', #{collectParameterId}, '%')</if> |
|
55 |
<if test="collectParameterName != null and collectParameterName != ''"> and collect_parameter_name like concat('%', #{collectParameterName}, '%')</if> |
|
56 |
<if test="contrastParameterFlag != null and contrastParameterFlag != ''"> and contrast_parameter_flag like concat('%', #{contrastParameterFlag}, '%')</if> |
|
57 |
<if test="collectParameterType != null and collectParameterType != ''"> and collect_parameter_type like concat('%', #{collectParameterType}, '%')</if> |
|
58 |
<if test="productCode != null and productCode != ''"> and product_code like concat('%', #{productCode}, '%')</if> |
|
59 |
</where> |
|
60 |
</select> |
|
61 |
|
|
62 |
<select id="selectDaCollectionParamConfById" parameterType="Long" resultMap="DaCollectionParamConfResult"> |
|
63 |
<include refid="selectDaCollectionParamConfVo"/> |
|
64 |
where id = #{id} |
|
65 |
</select> |
|
66 |
|
|
67 |
<insert id="insertDaCollectionParamConf" parameterType="DaCollectionParamConf"> |
|
68 |
insert into da_collection_param_conf |
|
69 |
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
70 |
<if test="id != null">id,</if> |
|
71 |
<if test="processesCode != null">processes_code,</if> |
|
72 |
<if test="parameterSetCode != null">parameter_set_code,</if> |
|
73 |
<if test="parameterSetName != null">parameter_set_name,</if> |
|
74 |
<if test="collectParameterId != null">collect_parameter_id,</if> |
|
75 |
<if test="collectParameterName != null">collect_parameter_name,</if> |
|
76 |
<if test="contrastParameterFlag != null">contrast_parameter_flag,</if> |
|
77 |
<if test="collectParameterType != null">collect_parameter_type,</if> |
|
78 |
<if test="collectParameterUnit != null">collect_parameter_unit,</if> |
|
79 |
<if test="Descriptives != null">Descriptives,</if> |
|
80 |
<if test="paramUpper != null">param_upper,</if> |
|
81 |
<if test="paramLower != null">param_lower,</if> |
|
82 |
<if test="paramCentral != null">param_Central,</if> |
|
83 |
<if test="productCode != null">product_code,</if> |
|
84 |
<if test="gatherAddress != null">gather_address,</if> |
|
85 |
<if test="gatherSequence != null">gather_sequence,</if> |
|
86 |
<if test="remarks != null">remarks,</if> |
|
87 |
<if test="createUser != null">create_user,</if> |
|
88 |
<if test="createTime != null">create_time,</if> |
|
89 |
<if test="updateUser != null">update_user,</if> |
|
90 |
<if test="updateTime != null">update_time,</if> |
|
91 |
<if test="spareField1 != null">spare_field_1,</if> |
|
92 |
<if test="spareField2 != null">spare_field_2,</if> |
|
93 |
<if test="spareField3 != null">spare_field_3,</if> |
|
94 |
<if test="spareField4 != null">spare_field_4,</if> |
679fb5
|
95 |
<if test="processesName != null">processes_name,</if> |
懒 |
96 |
<if test="device != null">device,</if> |
|
97 |
<if test="project != null">project,</if> |
|
98 |
<if test="accuracy != null">accuracy,</if> |
|
99 |
<if test="arrayLength != null">array_length,</if> |
|
100 |
<if test="acquisitionFrequency != null">acquisition_frequency,</if> |
|
101 |
<if test="demandDepartment != null">demand_department,</if> |
|
102 |
<if test="whetherToCollect != null">whether_to_collect,</if> |
|
103 |
<if test="defaultValue != null">default_value,</if> |
e57a89
|
104 |
</trim> |
懒 |
105 |
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
106 |
<if test="id != null">#{id},</if> |
|
107 |
<if test="processesCode != null">#{processesCode},</if> |
|
108 |
<if test="parameterSetCode != null">#{parameterSetCode},</if> |
|
109 |
<if test="parameterSetName != null">#{parameterSetName},</if> |
|
110 |
<if test="collectParameterId != null">#{collectParameterId},</if> |
|
111 |
<if test="collectParameterName != null">#{collectParameterName},</if> |
|
112 |
<if test="contrastParameterFlag != null">#{contrastParameterFlag},</if> |
|
113 |
<if test="collectParameterType != null">#{collectParameterType},</if> |
|
114 |
<if test="collectParameterUnit != null">#{collectParameterUnit},</if> |
|
115 |
<if test="Descriptives != null">#{Descriptives},</if> |
|
116 |
<if test="paramUpper != null">#{paramUpper},</if> |
|
117 |
<if test="paramLower != null">#{paramLower},</if> |
|
118 |
<if test="paramCentral != null">#{paramCentral},</if> |
|
119 |
<if test="productCode != null">#{productCode},</if> |
|
120 |
<if test="gatherAddress != null">#{gatherAddress},</if> |
|
121 |
<if test="gatherSequence != null">#{gatherSequence},</if> |
|
122 |
<if test="remarks != null">#{remarks},</if> |
|
123 |
<if test="createUser != null">#{createUser},</if> |
|
124 |
<if test="createTime != null">#{createTime},</if> |
|
125 |
<if test="updateUser != null">#{updateUser},</if> |
|
126 |
<if test="updateTime != null">#{updateTime},</if> |
|
127 |
<if test="spareField1 != null">#{spareField1},</if> |
|
128 |
<if test="spareField2 != null">#{spareField2},</if> |
|
129 |
<if test="spareField3 != null">#{spareField3},</if> |
|
130 |
<if test="spareField4 != null">#{spareField4},</if> |
679fb5
|
131 |
<if test="processesName != null">#{processesName},</if> |
懒 |
132 |
<if test="device != null">#{device},</if> |
|
133 |
<if test="project != null">#{project},</if> |
|
134 |
<if test="accuracy != null">#{accuracy},</if> |
|
135 |
<if test="arrayLength != null">#{arrayLength},</if> |
|
136 |
<if test="acquisitionFrequency != null">#{acquisitionFrequency},</if> |
|
137 |
<if test="demandDepartment != null">#{demandDepartment},</if> |
|
138 |
<if test="whetherToCollect != null">#{whetherToCollect},</if> |
|
139 |
<if test="defaultValue != null">#{defaultValue},</if> |
e57a89
|
140 |
</trim> |
懒 |
141 |
</insert> |
|
142 |
|
|
143 |
<update id="updateDaCollectionParamConf" parameterType="DaCollectionParamConf"> |
|
144 |
update da_collection_param_conf |
|
145 |
<trim prefix="SET" suffixOverrides=","> |
|
146 |
<if test="processesCode != null">processes_code = #{processesCode},</if> |
|
147 |
<if test="parameterSetCode != null">parameter_set_code = #{parameterSetCode},</if> |
|
148 |
<if test="parameterSetName != null">parameter_set_name = #{parameterSetName},</if> |
|
149 |
<if test="collectParameterId != null">collect_parameter_id = #{collectParameterId},</if> |
|
150 |
<if test="collectParameterName != null">collect_parameter_name = #{collectParameterName},</if> |
|
151 |
<if test="contrastParameterFlag != null">contrast_parameter_flag = #{contrastParameterFlag},</if> |
|
152 |
<if test="collectParameterType != null">collect_parameter_type = #{collectParameterType},</if> |
|
153 |
<if test="collectParameterUnit != null">collect_parameter_unit = #{collectParameterUnit},</if> |
|
154 |
<if test="Descriptives != null">Descriptives = #{Descriptives},</if> |
|
155 |
<if test="paramUpper != null">param_upper = #{paramUpper},</if> |
|
156 |
<if test="paramLower != null">param_lower = #{paramLower},</if> |
|
157 |
<if test="paramCentral != null">param_Central = #{paramCentral},</if> |
|
158 |
<if test="productCode != null">product_code = #{productCode},</if> |
|
159 |
<if test="gatherAddress != null">gather_address = #{gatherAddress},</if> |
|
160 |
<if test="gatherSequence != null">gather_sequence = #{gatherSequence},</if> |
|
161 |
<if test="remarks != null">remarks = #{remarks},</if> |
|
162 |
<if test="createUser != null">create_user = #{createUser},</if> |
|
163 |
<if test="createTime != null">create_time = #{createTime},</if> |
|
164 |
<if test="updateUser != null">update_user = #{updateUser},</if> |
|
165 |
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
166 |
<if test="spareField1 != null">spare_field_1 = #{spareField1},</if> |
|
167 |
<if test="spareField2 != null">spare_field_2 = #{spareField2},</if> |
|
168 |
<if test="spareField3 != null">spare_field_3 = #{spareField3},</if> |
|
169 |
<if test="spareField4 != null">spare_field_4 = #{spareField4},</if> |
679fb5
|
170 |
<if test="processesName != null">processes_name = #{processesName},</if> |
懒 |
171 |
<if test="device != null">device = #{device},</if> |
|
172 |
<if test="project != null">project = #{project},</if> |
|
173 |
<if test="accuracy != null">accuracy = #{accuracy},</if> |
|
174 |
<if test="arrayLength != null">array_length = #{arrayLength},</if> |
|
175 |
<if test="acquisitionFrequency != null">acquisition_frequency = #{acquisitionFrequency},</if> |
|
176 |
<if test="demandDepartment != null">demand_department = #{demandDepartment},</if> |
|
177 |
<if test="whetherToCollect != null">whether_to_collect = #{whetherToCollect},</if> |
|
178 |
<if test="defaultValue != null">default_value = #{defaultValue},</if> |
e57a89
|
179 |
</trim> |
懒 |
180 |
where id = #{id} |
|
181 |
</update> |
|
182 |
|
|
183 |
<delete id="deleteDaCollectionParamConfById" parameterType="Long"> |
|
184 |
delete from da_collection_param_conf where id = #{id} |
|
185 |
</delete> |
|
186 |
|
|
187 |
<delete id="deleteDaCollectionParamConfByIds" parameterType="String"> |
|
188 |
delete from da_collection_param_conf where id in |
|
189 |
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|
190 |
#{id} |
|
191 |
</foreach> |
|
192 |
</delete> |
|
193 |
</mapper> |