|
|
@@ -0,0 +1,315 @@
|
|
|
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.sundot.airport.item.mapper.FailedMatchItemMapper">
|
|
|
6
|
+
|
|
|
7
|
+ <resultMap type="FailedMatchItem" id="FailedMatchItemResult">
|
|
|
8
|
+ <result property="id" column="id"/>
|
|
|
9
|
+ <result property="tenantId" column="tenant_id"/>
|
|
|
10
|
+ <result property="revision" column="revision"/>
|
|
|
11
|
+ <result property="createBy" column="create_by"/>
|
|
|
12
|
+ <result property="createTime" column="create_time"/>
|
|
|
13
|
+ <result property="updateBy" column="update_by"/>
|
|
|
14
|
+ <result property="updateTime" column="update_time"/>
|
|
|
15
|
+ <result property="name" column="name"/>
|
|
|
16
|
+ <result property="code" column="code"/>
|
|
|
17
|
+ <result property="categoryCode" column="category_code"/>
|
|
|
18
|
+ <result property="categoryName" column="category_name"/>
|
|
|
19
|
+ <result property="dangerLevel" column="danger_level"/>
|
|
|
20
|
+ <result property="dangerLevelDesc" column="danger_level_desc"/>
|
|
|
21
|
+ <result property="userId" column="user_id"/>
|
|
|
22
|
+ <result property="userName" column="user_name"/>
|
|
|
23
|
+ <result property="positionId" column="position_id"/>
|
|
|
24
|
+ <result property="positionName" column="position_name"/>
|
|
|
25
|
+ <result property="fullPositionPath" column="full_position_path"/>
|
|
|
26
|
+ <result property="teamId" column="team_id"/>
|
|
|
27
|
+ <result property="teamName" column="team_name"/>
|
|
|
28
|
+ <result property="postDictCode" column="post_dict_code"/>
|
|
|
29
|
+ <result property="postLabel" column="post_label"/>
|
|
|
30
|
+ <result property="terminalId" column="terminal_id"/>
|
|
|
31
|
+ <result property="terminalName" column="terminal_name"/>
|
|
|
32
|
+ <result property="regionalId" column="regional_id"/>
|
|
|
33
|
+ <result property="regionalName" column="regional_name"/>
|
|
|
34
|
+ <result property="channelId" column="channel_id"/>
|
|
|
35
|
+ <result property="channelName" column="channel_name"/>
|
|
|
36
|
+ <result property="audioFilePath" column="audio_file_path"/>
|
|
|
37
|
+ <result property="audioFileSize" column="audio_file_size"/>
|
|
|
38
|
+ <result property="audioFormat" column="audio_format"/>
|
|
|
39
|
+ <result property="isMatched" column="is_matched"/>
|
|
|
40
|
+ <result property="matchedText" column="matched_text"/>
|
|
|
41
|
+ <result property="originalText" column="original_text"/>
|
|
|
42
|
+ <result property="correctedText" column="corrected_text"/>
|
|
|
43
|
+ <result property="correctedSaved" column="corrected_saved"/>
|
|
|
44
|
+ <result property="correctedRecordId" column="corrected_record_id"/>
|
|
|
45
|
+ <result property="correctedSaveTime" column="corrected_save_time"/>
|
|
|
46
|
+ <result property="extractedLocation" column="extracted_location"/>
|
|
|
47
|
+ <result property="extractedQuantity" column="extracted_quantity"/>
|
|
|
48
|
+ <result property="processingTimeMs" column="processing_time_ms"/>
|
|
|
49
|
+ <result property="similarityScore" column="similarity_score"/>
|
|
|
50
|
+ <result property="sourceType" column="source_type"/>
|
|
|
51
|
+ <result property="locationKeywordId" column="location_keyword_id"/>
|
|
|
52
|
+ <result property="prohibitedItemKeywordId" column="prohibited_item_keyword_id"/>
|
|
|
53
|
+ <result property="prohibitedItemCategoryId" column="prohibited_item_category_id"/>
|
|
|
54
|
+ <result property="checkPointId" column="check_point_id"/>
|
|
|
55
|
+ <result property="checkPointName" column="check_point_name"/>
|
|
|
56
|
+ <result property="appEdited" column="app_edited"/>
|
|
|
57
|
+ <result property="remark" column="remark"/>
|
|
|
58
|
+ </resultMap>
|
|
|
59
|
+
|
|
|
60
|
+ <sql id="selectFailedMatchItemVo">
|
|
|
61
|
+ select id,
|
|
|
62
|
+ tenant_id,
|
|
|
63
|
+ revision,
|
|
|
64
|
+ create_by,
|
|
|
65
|
+ create_time,
|
|
|
66
|
+ update_by,
|
|
|
67
|
+ update_time,
|
|
|
68
|
+ name,
|
|
|
69
|
+ code,
|
|
|
70
|
+ category_code,
|
|
|
71
|
+ category_name,
|
|
|
72
|
+ danger_level,
|
|
|
73
|
+ danger_level_desc,
|
|
|
74
|
+ user_id,
|
|
|
75
|
+ user_name,
|
|
|
76
|
+ position_id,
|
|
|
77
|
+ position_name,
|
|
|
78
|
+ full_position_path,
|
|
|
79
|
+ team_id,
|
|
|
80
|
+ team_name,
|
|
|
81
|
+ post_dict_code,
|
|
|
82
|
+ post_label,
|
|
|
83
|
+ terminal_id,
|
|
|
84
|
+ terminal_name,
|
|
|
85
|
+ regional_id,
|
|
|
86
|
+ regional_name,
|
|
|
87
|
+ channel_id,
|
|
|
88
|
+ channel_name,
|
|
|
89
|
+ audio_file_path,
|
|
|
90
|
+ audio_file_size,
|
|
|
91
|
+ audio_format,
|
|
|
92
|
+ is_matched,
|
|
|
93
|
+ matched_text,
|
|
|
94
|
+ original_text,
|
|
|
95
|
+ corrected_text,
|
|
|
96
|
+ corrected_saved,
|
|
|
97
|
+ corrected_record_id,
|
|
|
98
|
+ corrected_save_time,
|
|
|
99
|
+ extracted_location,
|
|
|
100
|
+ extracted_quantity,
|
|
|
101
|
+ processing_time_ms,
|
|
|
102
|
+ similarity_score,
|
|
|
103
|
+ source_type,
|
|
|
104
|
+ location_keyword_id,
|
|
|
105
|
+ prohibited_item_keyword_id,
|
|
|
106
|
+ prohibited_item_category_id,
|
|
|
107
|
+ check_point_id,
|
|
|
108
|
+ check_point_name,
|
|
|
109
|
+ app_edited,
|
|
|
110
|
+ remark
|
|
|
111
|
+ from failed_match_item
|
|
|
112
|
+ </sql>
|
|
|
113
|
+
|
|
|
114
|
+ <select id="selectFailedMatchItemList" parameterType="FailedMatchItem" resultMap="FailedMatchItemResult">
|
|
|
115
|
+ <include refid="selectFailedMatchItemVo"/>
|
|
|
116
|
+ <where>
|
|
|
117
|
+ <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
|
|
|
118
|
+ <if test="code != null and code != ''">and code = #{code}</if>
|
|
|
119
|
+ <if test="categoryCode != null and categoryCode != ''">and category_code = #{categoryCode}</if>
|
|
|
120
|
+ <if test="dangerLevel != null and dangerLevel != ''">and danger_level = #{dangerLevel}</if>
|
|
|
121
|
+ <if test="userId != null">and user_id = #{userId}</if>
|
|
|
122
|
+ <if test="userName != null and userName != ''">and user_name like concat('%', #{userName}, '%')</if>
|
|
|
123
|
+ <if test="positionId != null">and position_id = #{positionId}</if>
|
|
|
124
|
+ <if test="teamId != null">and team_id = #{teamId}</if>
|
|
|
125
|
+ <if test="terminalId != null">and terminal_id = #{terminalId}</if>
|
|
|
126
|
+ <if test="regionalId != null">and regional_id = #{regionalId}</if>
|
|
|
127
|
+ <if test="channelId != null">and channel_id = #{channelId}</if>
|
|
|
128
|
+ <if test="sourceType != null and sourceType != ''">and source_type = #{sourceType}</if>
|
|
|
129
|
+ <if test="appEdited != null">and app_edited = #{appEdited}</if>
|
|
|
130
|
+ </where>
|
|
|
131
|
+ order by update_time desc
|
|
|
132
|
+ </select>
|
|
|
133
|
+
|
|
|
134
|
+ <select id="selectFailedMatchItemListByUserId" parameterType="Long" resultMap="FailedMatchItemResult">
|
|
|
135
|
+ <include refid="selectFailedMatchItemVo"/>
|
|
|
136
|
+ where user_id = #{userId}
|
|
|
137
|
+ order by update_time desc
|
|
|
138
|
+ </select>
|
|
|
139
|
+
|
|
|
140
|
+ <select id="selectFailedMatchItemById" parameterType="Integer" resultMap="FailedMatchItemResult">
|
|
|
141
|
+ <include refid="selectFailedMatchItemVo"/>
|
|
|
142
|
+ where id = #{id}
|
|
|
143
|
+ </select>
|
|
|
144
|
+
|
|
|
145
|
+ <insert id="insertFailedMatchItem" parameterType="FailedMatchItem" useGeneratedKeys="true" keyProperty="id">
|
|
|
146
|
+ insert into failed_match_item
|
|
|
147
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
148
|
+ <if test="tenantId != null">tenant_id,</if>
|
|
|
149
|
+ <if test="revision != null">revision,</if>
|
|
|
150
|
+ <if test="createBy != null">create_by,</if>
|
|
|
151
|
+ <if test="createTime != null">create_time,</if>
|
|
|
152
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
153
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
154
|
+ <if test="name != null and name != ''">name,</if>
|
|
|
155
|
+ <if test="code != null and code != ''">code,</if>
|
|
|
156
|
+ <if test="categoryCode != null and categoryCode != ''">category_code,</if>
|
|
|
157
|
+ <if test="categoryName != null and categoryName != ''">category_name,</if>
|
|
|
158
|
+ <if test="dangerLevel != null and dangerLevel != ''">danger_level,</if>
|
|
|
159
|
+ <if test="dangerLevelDesc != null and dangerLevelDesc != ''">danger_level_desc,</if>
|
|
|
160
|
+ <if test="userId != null">user_id,</if>
|
|
|
161
|
+ <if test="userName != null">user_name,</if>
|
|
|
162
|
+ <if test="positionId != null">position_id,</if>
|
|
|
163
|
+ <if test="positionName != null">position_name,</if>
|
|
|
164
|
+ <if test="fullPositionPath != null">full_position_path,</if>
|
|
|
165
|
+ <if test="teamId != null">team_id,</if>
|
|
|
166
|
+ <if test="teamName != null">team_name,</if>
|
|
|
167
|
+ <if test="postDictCode != null">post_dict_code,</if>
|
|
|
168
|
+ <if test="postLabel != null">post_label,</if>
|
|
|
169
|
+ <if test="terminalId != null">terminal_id,</if>
|
|
|
170
|
+ <if test="terminalName != null">terminal_name,</if>
|
|
|
171
|
+ <if test="regionalId != null">regional_id,</if>
|
|
|
172
|
+ <if test="regionalName != null">regional_name,</if>
|
|
|
173
|
+ <if test="channelId != null">channel_id,</if>
|
|
|
174
|
+ <if test="channelName != null">channel_name,</if>
|
|
|
175
|
+ <if test="audioFilePath != null">audio_file_path,</if>
|
|
|
176
|
+ <if test="audioFileSize != null">audio_file_size,</if>
|
|
|
177
|
+ <if test="audioFormat != null">audio_format,</if>
|
|
|
178
|
+ <if test="isMatched != null">is_matched,</if>
|
|
|
179
|
+ <if test="matchedText != null">matched_text,</if>
|
|
|
180
|
+ <if test="originalText != null">original_text,</if>
|
|
|
181
|
+ <if test="correctedText != null">corrected_text,</if>
|
|
|
182
|
+ <if test="correctedSaved != null">corrected_saved,</if>
|
|
|
183
|
+ <if test="correctedRecordId != null">corrected_record_id,</if>
|
|
|
184
|
+ <if test="correctedSaveTime != null">corrected_save_time,</if>
|
|
|
185
|
+ <if test="extractedLocation != null">extracted_location,</if>
|
|
|
186
|
+ <if test="extractedQuantity != null">extracted_quantity,</if>
|
|
|
187
|
+ <if test="processingTimeMs != null">processing_time_ms,</if>
|
|
|
188
|
+ <if test="similarityScore != null">similarity_score,</if>
|
|
|
189
|
+ <if test="sourceType != null">source_type,</if>
|
|
|
190
|
+ <if test="locationKeywordId != null">location_keyword_id,</if>
|
|
|
191
|
+ <if test="prohibitedItemKeywordId != null">prohibited_item_keyword_id,</if>
|
|
|
192
|
+ <if test="prohibitedItemCategoryId != null">prohibited_item_category_id,</if>
|
|
|
193
|
+ <if test="checkPointId != null">check_point_id,</if>
|
|
|
194
|
+ <if test="checkPointName != null">check_point_name,</if>
|
|
|
195
|
+ <if test="remark != null">remark,</if>
|
|
|
196
|
+ </trim>
|
|
|
197
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
198
|
+ <if test="tenantId != null">#{tenantId},</if>
|
|
|
199
|
+ <if test="revision != null">#{revision},</if>
|
|
|
200
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
201
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
202
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
203
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
204
|
+ <if test="name != null and name != ''">#{name},</if>
|
|
|
205
|
+ <if test="code != null and code != ''">#{code},</if>
|
|
|
206
|
+ <if test="categoryCode != null and categoryCode != ''">#{categoryCode},</if>
|
|
|
207
|
+ <if test="categoryName != null and categoryName != ''">#{categoryName},</if>
|
|
|
208
|
+ <if test="dangerLevel != null and dangerLevel != ''">#{dangerLevel},</if>
|
|
|
209
|
+ <if test="dangerLevelDesc != null and dangerLevelDesc != ''">#{dangerLevelDesc},</if>
|
|
|
210
|
+ <if test="userId != null">#{userId},</if>
|
|
|
211
|
+ <if test="userName != null">#{userName},</if>
|
|
|
212
|
+ <if test="positionId != null">#{positionId},</if>
|
|
|
213
|
+ <if test="positionName != null">#{positionName},</if>
|
|
|
214
|
+ <if test="fullPositionPath != null">#{fullPositionPath},</if>
|
|
|
215
|
+ <if test="teamId != null">#{teamId},</if>
|
|
|
216
|
+ <if test="teamName != null">#{teamName},</if>
|
|
|
217
|
+ <if test="postDictCode != null">#{postDictCode},</if>
|
|
|
218
|
+ <if test="postLabel != null">#{postLabel},</if>
|
|
|
219
|
+ <if test="terminalId != null">#{terminalId},</if>
|
|
|
220
|
+ <if test="terminalName != null">#{terminalName},</if>
|
|
|
221
|
+ <if test="regionalId != null">#{regionalId},</if>
|
|
|
222
|
+ <if test="regionalName != null">#{regionalName},</if>
|
|
|
223
|
+ <if test="channelId != null">#{channelId},</if>
|
|
|
224
|
+ <if test="channelName != null">#{channelName},</if>
|
|
|
225
|
+ <if test="audioFilePath != null">#{audioFilePath},</if>
|
|
|
226
|
+ <if test="audioFileSize != null">#{audioFileSize},</if>
|
|
|
227
|
+ <if test="audioFormat != null">#{audioFormat},</if>
|
|
|
228
|
+ <if test="isMatched != null">#{isMatched},</if>
|
|
|
229
|
+ <if test="matchedText != null">#{matchedText},</if>
|
|
|
230
|
+ <if test="originalText != null">#{originalText},</if>
|
|
|
231
|
+ <if test="correctedText != null">#{correctedText},</if>
|
|
|
232
|
+ <if test="correctedSaved != null">#{correctedSaved},</if>
|
|
|
233
|
+ <if test="correctedRecordId != null">#{correctedRecordId},</if>
|
|
|
234
|
+ <if test="correctedSaveTime != null">#{correctedSaveTime},</if>
|
|
|
235
|
+ <if test="extractedLocation != null">#{extractedLocation},</if>
|
|
|
236
|
+ <if test="extractedQuantity != null">#{extractedQuantity},</if>
|
|
|
237
|
+ <if test="processingTimeMs != null">#{processingTimeMs},</if>
|
|
|
238
|
+ <if test="similarityScore != null">#{similarityScore},</if>
|
|
|
239
|
+ <if test="sourceType != null">#{sourceType},</if>
|
|
|
240
|
+ <if test="locationKeywordId != null">#{locationKeywordId},</if>
|
|
|
241
|
+ <if test="prohibitedItemKeywordId != null">#{prohibitedItemKeywordId},</if>
|
|
|
242
|
+ <if test="prohibitedItemCategoryId != null">#{prohibitedItemCategoryId},</if>
|
|
|
243
|
+ <if test="checkPointId != null">#{checkPointId},</if>
|
|
|
244
|
+ <if test="checkPointName != null">#{checkPointName},</if>
|
|
|
245
|
+ <if test="remark != null">#{remark},</if>
|
|
|
246
|
+ </trim>
|
|
|
247
|
+ </insert>
|
|
|
248
|
+
|
|
|
249
|
+ <update id="updateFailedMatchItem" parameterType="FailedMatchItem">
|
|
|
250
|
+ update failed_match_item
|
|
|
251
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
252
|
+ <if test="tenantId != null">tenant_id = #{tenantId},</if>
|
|
|
253
|
+ <if test="revision != null">revision = #{revision},</if>
|
|
|
254
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
255
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
256
|
+ <if test="name != null and name != ''">name = #{name},</if>
|
|
|
257
|
+ <if test="code != null and code != ''">code = #{code},</if>
|
|
|
258
|
+ <if test="categoryCode != null and categoryCode != ''">category_code = #{categoryCode},</if>
|
|
|
259
|
+ <if test="categoryName != null and categoryName != ''">category_name = #{categoryName},</if>
|
|
|
260
|
+ <if test="dangerLevel != null and dangerLevel != ''">danger_level = #{dangerLevel},</if>
|
|
|
261
|
+ <if test="dangerLevelDesc != null and dangerLevelDesc != ''">danger_level_desc = #{dangerLevelDesc},</if>
|
|
|
262
|
+ <if test="userId != null">user_id = #{userId},</if>
|
|
|
263
|
+ <if test="userName != null">user_name = #{userName},</if>
|
|
|
264
|
+ <if test="positionId != null">position_id = #{positionId},</if>
|
|
|
265
|
+ <if test="positionName != null">position_name = #{positionName},</if>
|
|
|
266
|
+ <if test="fullPositionPath != null">full_position_path = #{fullPositionPath},</if>
|
|
|
267
|
+ <if test="teamId != null">team_id = #{teamId},</if>
|
|
|
268
|
+ <if test="teamName != null">team_name = #{teamName},</if>
|
|
|
269
|
+ <if test="postDictCode != null">post_dict_code = #{postDictCode},</if>
|
|
|
270
|
+ <if test="postLabel != null">post_label = #{postLabel},</if>
|
|
|
271
|
+ <if test="terminalId != null">terminal_id = #{terminalId},</if>
|
|
|
272
|
+ <if test="terminalName != null">terminal_name = #{terminalName},</if>
|
|
|
273
|
+ <if test="regionalId != null">regional_id = #{regionalId},</if>
|
|
|
274
|
+ <if test="regionalName != null">regional_name = #{regionalName},</if>
|
|
|
275
|
+ <if test="channelId != null">channel_id = #{channelId},</if>
|
|
|
276
|
+ <if test="channelName != null">channel_name = #{channelName},</if>
|
|
|
277
|
+ <if test="audioFilePath != null">audio_file_path = #{audioFilePath},</if>
|
|
|
278
|
+ <if test="audioFileSize != null">audio_file_size = #{audioFileSize},</if>
|
|
|
279
|
+ <if test="audioFormat != null">audio_format = #{audioFormat},</if>
|
|
|
280
|
+ <if test="isMatched != null">is_matched = #{isMatched},</if>
|
|
|
281
|
+ <if test="matchedText != null">matched_text = #{matchedText},</if>
|
|
|
282
|
+ <if test="originalText != null">original_text = #{originalText},</if>
|
|
|
283
|
+ <if test="correctedText != null">corrected_text = #{correctedText},</if>
|
|
|
284
|
+ <if test="correctedSaved != null">corrected_saved = #{correctedSaved},</if>
|
|
|
285
|
+ <if test="correctedRecordId != null">corrected_record_id = #{correctedRecordId},</if>
|
|
|
286
|
+ <if test="correctedSaveTime != null">corrected_save_time = #{correctedSaveTime},</if>
|
|
|
287
|
+ <if test="extractedLocation != null">extracted_location = #{extractedLocation},</if>
|
|
|
288
|
+ <if test="extractedQuantity != null">extracted_quantity = #{extractedQuantity},</if>
|
|
|
289
|
+ <if test="processingTimeMs != null">processing_time_ms = #{processingTimeMs},</if>
|
|
|
290
|
+ <if test="similarityScore != null">similarity_score = #{similarityScore},</if>
|
|
|
291
|
+ <if test="sourceType != null">source_type = #{sourceType},</if>
|
|
|
292
|
+ <if test="locationKeywordId != null">location_keyword_id = #{locationKeywordId},</if>
|
|
|
293
|
+ <if test="prohibitedItemKeywordId != null">prohibited_item_keyword_id = #{prohibitedItemKeywordId},</if>
|
|
|
294
|
+ <if test="prohibitedItemCategoryId != null">prohibited_item_category_id = #{prohibitedItemCategoryId},</if>
|
|
|
295
|
+ <if test="checkPointId != null">check_point_id = #{checkPointId},</if>
|
|
|
296
|
+ <if test="checkPointName != null">check_point_name = #{checkPointName},</if>
|
|
|
297
|
+ <if test="appEdited != null">app_edited = #{appEdited},</if>
|
|
|
298
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
299
|
+ </trim>
|
|
|
300
|
+ where id = #{id}
|
|
|
301
|
+ </update>
|
|
|
302
|
+
|
|
|
303
|
+ <delete id="deleteFailedMatchItemById" parameterType="Integer">
|
|
|
304
|
+ delete
|
|
|
305
|
+ from failed_match_item
|
|
|
306
|
+ where id = #{id}
|
|
|
307
|
+ </delete>
|
|
|
308
|
+
|
|
|
309
|
+ <delete id="deleteFailedMatchItemByIds" parameterType="Integer">
|
|
|
310
|
+ delete from failed_match_item where id in
|
|
|
311
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
312
|
+ #{id}
|
|
|
313
|
+ </foreach>
|
|
|
314
|
+ </delete>
|
|
|
315
|
+</mapper>
|