提交 | 用户 | 时间
|
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> |
386e10
|
50 |
<if test="gatherAddress != null and gatherAddress != ''"> and gather_address like concat('%', #{gatherAddress}, '%')</if> |
fd2207
|
51 |
</where> |
懒 |
52 |
</select> |
|
53 |
|
|
54 |
<select id="selectDaCollectionParamConfById" parameterType="Long" resultMap="DaCollectionParamConfResult"> |
|
55 |
<include refid="selectDaCollectionParamConfVo"/> |
|
56 |
where id = #{id} |
|
57 |
</select> |
|
58 |
|
|
59 |
<insert id="insertDaCollectionParamConf" parameterType="DaCollectionParamConf"> |
|
60 |
insert into da_collection_param_conf |
|
61 |
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
62 |
<if test="id != null">id,</if> |
|
63 |
<if test="processesCode != null">processes_code,</if> |
|
64 |
<if test="parameterSetCode != null">parameter_set_code,</if> |
|
65 |
<if test="parameterSetName != null">parameter_set_name,</if> |
|
66 |
<if test="collectParameterId != null">collect_parameter_id,</if> |
|
67 |
<if test="collectParameterName != null">collect_parameter_name,</if> |
|
68 |
<if test="contrastParameterFlag != null">contrast_parameter_flag,</if> |
|
69 |
<if test="collectParameterType != null">collect_parameter_type,</if> |
|
70 |
<if test="collectParameterUnit != null">collect_parameter_unit,</if> |
|
71 |
<if test="Descriptives != null">Descriptives,</if> |
|
72 |
<if test="paramUpper != null">param_upper,</if> |
|
73 |
<if test="paramLower != null">param_lower,</if> |
|
74 |
<if test="paramCentral != null">param_Central,</if> |
|
75 |
<if test="productCode != null">product_code,</if> |
|
76 |
<if test="gatherAddress != null">gather_address,</if> |
|
77 |
<if test="gatherSequence != null">gather_sequence,</if> |
|
78 |
<if test="remarks != null">remarks,</if> |
|
79 |
<if test="createUser != null">create_user,</if> |
|
80 |
<if test="createTime != null">create_time,</if> |
|
81 |
<if test="updateUser != null">update_user,</if> |
|
82 |
<if test="updateTime != null">update_time,</if> |
|
83 |
<if test="spareField1 != null">spare_field_1,</if> |
|
84 |
<if test="spareField2 != null">spare_field_2,</if> |
|
85 |
<if test="spareField3 != null">spare_field_3,</if> |
|
86 |
<if test="spareField4 != null">spare_field_4,</if> |
|
87 |
</trim> |
|
88 |
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
89 |
<if test="id != null">#{id},</if> |
|
90 |
<if test="processesCode != null">#{processesCode},</if> |
|
91 |
<if test="parameterSetCode != null">#{parameterSetCode},</if> |
|
92 |
<if test="parameterSetName != null">#{parameterSetName},</if> |
|
93 |
<if test="collectParameterId != null">#{collectParameterId},</if> |
|
94 |
<if test="collectParameterName != null">#{collectParameterName},</if> |
|
95 |
<if test="contrastParameterFlag != null">#{contrastParameterFlag},</if> |
|
96 |
<if test="collectParameterType != null">#{collectParameterType},</if> |
|
97 |
<if test="collectParameterUnit != null">#{collectParameterUnit},</if> |
|
98 |
<if test="Descriptives != null">#{Descriptives},</if> |
|
99 |
<if test="paramUpper != null">#{paramUpper},</if> |
|
100 |
<if test="paramLower != null">#{paramLower},</if> |
|
101 |
<if test="paramCentral != null">#{paramCentral},</if> |
|
102 |
<if test="productCode != null">#{productCode},</if> |
|
103 |
<if test="gatherAddress != null">#{gatherAddress},</if> |
|
104 |
<if test="gatherSequence != null">#{gatherSequence},</if> |
|
105 |
<if test="remarks != null">#{remarks},</if> |
|
106 |
<if test="createUser != null">#{createUser},</if> |
|
107 |
<if test="createTime != null">#{createTime},</if> |
|
108 |
<if test="updateUser != null">#{updateUser},</if> |
|
109 |
<if test="updateTime != null">#{updateTime},</if> |
|
110 |
<if test="spareField1 != null">#{spareField1},</if> |
|
111 |
<if test="spareField2 != null">#{spareField2},</if> |
|
112 |
<if test="spareField3 != null">#{spareField3},</if> |
|
113 |
<if test="spareField4 != null">#{spareField4},</if> |
|
114 |
</trim> |
|
115 |
</insert> |
|
116 |
|
|
117 |
<update id="updateDaCollectionParamConf" parameterType="DaCollectionParamConf"> |
|
118 |
update da_collection_param_conf |
|
119 |
<trim prefix="SET" suffixOverrides=","> |
|
120 |
<if test="processesCode != null">processes_code = #{processesCode},</if> |
|
121 |
<if test="parameterSetCode != null">parameter_set_code = #{parameterSetCode},</if> |
|
122 |
<if test="parameterSetName != null">parameter_set_name = #{parameterSetName},</if> |
|
123 |
<if test="collectParameterId != null">collect_parameter_id = #{collectParameterId},</if> |
|
124 |
<if test="collectParameterName != null">collect_parameter_name = #{collectParameterName},</if> |
|
125 |
<if test="contrastParameterFlag != null">contrast_parameter_flag = #{contrastParameterFlag},</if> |
|
126 |
<if test="collectParameterType != null">collect_parameter_type = #{collectParameterType},</if> |
|
127 |
<if test="collectParameterUnit != null">collect_parameter_unit = #{collectParameterUnit},</if> |
|
128 |
<if test="Descriptives != null">Descriptives = #{Descriptives},</if> |
|
129 |
<if test="paramUpper != null">param_upper = #{paramUpper},</if> |
|
130 |
<if test="paramLower != null">param_lower = #{paramLower},</if> |
|
131 |
<if test="paramCentral != null">param_Central = #{paramCentral},</if> |
|
132 |
<if test="productCode != null">product_code = #{productCode},</if> |
|
133 |
<if test="gatherAddress != null">gather_address = #{gatherAddress},</if> |
|
134 |
<if test="gatherSequence != null">gather_sequence = #{gatherSequence},</if> |
|
135 |
<if test="remarks != null">remarks = #{remarks},</if> |
|
136 |
<if test="createUser != null">create_user = #{createUser},</if> |
|
137 |
<if test="createTime != null">create_time = #{createTime},</if> |
|
138 |
<if test="updateUser != null">update_user = #{updateUser},</if> |
|
139 |
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
140 |
<if test="spareField1 != null">spare_field_1 = #{spareField1},</if> |
|
141 |
<if test="spareField2 != null">spare_field_2 = #{spareField2},</if> |
|
142 |
<if test="spareField3 != null">spare_field_3 = #{spareField3},</if> |
|
143 |
<if test="spareField4 != null">spare_field_4 = #{spareField4},</if> |
|
144 |
</trim> |
|
145 |
where id = #{id} |
|
146 |
</update> |
|
147 |
|
|
148 |
<delete id="deleteDaCollectionParamConfById" parameterType="Long"> |
|
149 |
delete from da_collection_param_conf where id = #{id} |
|
150 |
</delete> |
|
151 |
|
|
152 |
<delete id="deleteDaCollectionParamConfByIds" parameterType="String"> |
|
153 |
delete from da_collection_param_conf where id in |
|
154 |
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|
155 |
#{id} |
|
156 |
</foreach> |
|
157 |
</delete> |
|
158 |
</mapper> |