Skip to content

Commit 6c08dcb

Browse files
committed
fix: Modify mapper xml
1 parent a654915 commit 6c08dcb

23 files changed

+194
-194
lines changed

base/src/main/resources/mappers/AppExtensionMapper.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<if test="content!=null and content!=''">
2323
AND content = #{content}
2424
</if>
25-
<if test="app!=null and app!=''">
25+
<if test="app!=null">
2626
AND app_id = #{app}
2727
</if>
2828
<if test="category!=null and category!=''">
@@ -34,10 +34,10 @@
3434
<if test="lastUpdatedBy!=null and lastUpdatedBy!=''">
3535
AND last_updated_by = #{lastUpdatedBy}
3636
</if>
37-
<if test="createdTime!=null and createdTime!=''">
37+
<if test="createdTime!=null">
3838
AND created_time = #{createdTime}
3939
</if>
40-
<if test="lastUpdatedTime!=null and lastUpdatedTime!=''">
40+
<if test="lastUpdatedTime!=null">
4141
AND last_updated_time = #{lastUpdatedTime}
4242
</if>
4343
<if test="tenantId!=null and tenantId!=''">
@@ -62,7 +62,7 @@
6262
<if test="content!=null and content!=''">
6363
content = #{content},
6464
</if>
65-
<if test="app!=null and app!=''">
65+
<if test="app!=null">
6666
app_id = #{app},
6767
</if>
6868
<if test="category!=null and category!=''">
@@ -74,10 +74,10 @@
7474
<if test="lastUpdatedBy!=null and lastUpdatedBy!=''">
7575
last_updated_by = #{lastUpdatedBy},
7676
</if>
77-
<if test="createdTime!=null and createdTime!=''">
77+
<if test="createdTime!=null">
7878
created_time = #{createdTime},
7979
</if>
80-
<if test="lastUpdatedTime!=null and lastUpdatedTime!=''">
80+
<if test="lastUpdatedTime!=null">
8181
last_updated_time = #{lastUpdatedTime},
8282
</if>
8383
<if test="tenantId!=null and tenantId!=''">

base/src/main/resources/mappers/AppMapper.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
<if test="appWebsite!=null and appWebsite!=''">
2323
AND app_website = #{appWebsite}
2424
</if>
25-
<if test="platformId!=null and platformId!=''">
25+
<if test="platformId!=null">
2626
AND platform_id = #{platformId}
2727
</if>
28-
<if test="platformHistoryId!=null and platformHistoryId!=''">
28+
<if test="platformHistoryId!=null">
2929
AND platform_history_id = #{platformHistoryId}
3030
</if>
3131
<if test="publishUrl!=null and publishUrl!=''">
@@ -46,10 +46,10 @@
4646
<if test="state!=null and state!=''">
4747
AND state = #{state}
4848
</if>
49-
<if test="isPublish!=null and isPublish!=''">
49+
<if test="isPublish!=null">
5050
AND published = #{isPublish}
5151
</if>
52-
<if test="homePage!=null and homePage!=''">
52+
<if test="homePage!=null">
5353
AND home_page_id = #{homePage}
5454
</if>
5555
<if test="css!=null and css!=''">
@@ -79,7 +79,7 @@
7979
<if test="branch!=null and branch!=''">
8080
AND branch = #{branch}
8181
</if>
82-
<if test="isDemo!=null and isDemo!=''">
82+
<if test="isDemo!=null">
8383
AND is_demo = #{isDemo}
8484
</if>
8585
<if test="isDefault!=null">
@@ -88,7 +88,7 @@
8888
<if test="templateType!=null and templateType!=''">
8989
AND template_type = #{templateType}
9090
</if>
91-
<if test="setTemplateTime!=null and setTemplateTime!=''">
91+
<if test="setTemplateTime!=null">
9292
AND set_template_time = #{setTemplateTime}
9393
</if>
9494
<if test="setTemplateBy!=null and setTemplateBy!=''">
@@ -124,10 +124,10 @@
124124
<if test="lastUpdatedBy!=null and lastUpdatedBy!=''">
125125
AND last_updated_by = #{lastUpdatedBy}
126126
</if>
127-
<if test="createdTime!=null and createdTime!=''">
127+
<if test="createdTime!=null">
128128
AND created_time = #{createdTime}
129129
</if>
130-
<if test="lastUpdatedTime!=null and lastUpdatedTime!=''">
130+
<if test="lastUpdatedTime!=null">
131131
AND last_updated_time = #{lastUpdatedTime}
132132
</if>
133133
<if test="tenantId!=null and tenantId!=''">
@@ -149,10 +149,10 @@
149149
<if test="appWebsite!=null and appWebsite!=''">
150150
app_website = #{appWebsite},
151151
</if>
152-
<if test="platformId!=null and platformId!=''">
152+
<if test="platformId!=null">
153153
platform_id = #{platformId},
154154
</if>
155-
<if test="platformHistoryId!=null and platformHistoryId!=''">
155+
<if test="platformHistoryId!=null">
156156
platform_history_id = #{platformHistoryId},
157157
</if>
158158
<if test="publishUrl!=null and publishUrl!=''">
@@ -176,7 +176,7 @@
176176
<if test="isPublish!=null">
177177
published = #{isPublish},
178178
</if>
179-
<if test="homePage!=null and homePage!=''">
179+
<if test="homePage!=null">
180180
home_page_id = #{homePage},
181181
</if>
182182
<if test="css!=null and css!=''">
@@ -215,7 +215,7 @@
215215
<if test="templateType!=null and templateType!=''">
216216
template_type = #{templateType},
217217
</if>
218-
<if test="setTemplateTime!=null and setTemplateTime!=''">
218+
<if test="setTemplateTime!=null">
219219
set_template_time = #{setTemplateTime},
220220
</if>
221221
<if test="setTemplateBy!=null and setTemplateBy!=''">
@@ -251,10 +251,10 @@
251251
<if test="lastUpdatedBy!=null and lastUpdatedBy!=''">
252252
last_updated_by = #{lastUpdatedBy},
253253
</if>
254-
<if test="createdTime!=null and createdTime!=''">
254+
<if test="createdTime!=null">
255255
created_time = #{createdTime},
256256
</if>
257-
<if test="lastUpdatedTime!=null and lastUpdatedTime!=''">
257+
<if test="lastUpdatedTime!=null">
258258
last_updated_time = #{lastUpdatedTime},
259259
</if>
260260
<if test="tenantId!=null and tenantId!=''">

base/src/main/resources/mappers/BlockCarriersRelationMapper.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313
<!-- 通用条件列 -->
1414
<sql id="BlockCarriersRelationByCondition">
15-
<if test="hostId!=null and hostId!=''">
15+
<if test="hostId!=null">
1616
AND host_id = #{hostId}
1717
</if>
18-
<if test="blockId!=null and blockId!=''">
18+
<if test="blockId!=null">
1919
AND block_id = #{blockId}
2020
</if>
2121
<if test="hostType!=null and hostType!=''">
@@ -39,20 +39,20 @@
3939
<if test="lastUpdatedBy!=null and lastUpdatedBy!=''">
4040
AND last_updated_by = #{lastUpdatedBy}
4141
</if>
42-
<if test="createdTime!=null and createdTime!=''">
42+
<if test="createdTime!=null">
4343
AND created_time = #{createdTime}
4444
</if>
45-
<if test="lastUpdatedTime!=null and lastUpdatedTime!=''">
45+
<if test="lastUpdatedTime!=null">
4646
AND last_updated_time = #{lastUpdatedTime}
4747
</if>
4848
</sql>
4949

5050
<!-- 通用设置列 -->
5151
<sql id="BlockCarriersRelationSetColumns">
52-
<if test="hostId!=null and hostId!=''">
52+
<if test="hostId!=null">
5353
host_id = #{hostId},
5454
</if>
55-
<if test="blockId!=null and blockId!=''">
55+
<if test="blockId!=null">
5656
block_id = #{blockId},
5757
</if>
5858
<if test="hostType!=null and hostType!=''">

base/src/main/resources/mappers/BlockGroupBlockMapper.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212

1313
<!-- 通用条件列 -->
1414
<sql id="BlockGroupBlockByCondition">
15-
<if test="blockId!=null and blockId!=''">
15+
<if test="blockId!=null">
1616
AND block_id = #{blockId}
1717
</if>
18-
<if test="blockGroupId!=null and blockGroupId!=''">
18+
<if test="blockGroupId!=null">
1919
AND block_group_id = #{blockGroupId}
2020
</if>
2121
</sql>
2222

2323
<!-- 通用设置列 -->
2424
<sql id="BlockGroupBlockSetColumns">
25-
<if test="blockId!=null and blockId!=''">
25+
<if test="blockId!=null">
2626
block_id = #{blockId},
2727
</if>
28-
<if test="blockGroupId!=null and blockGroupId!=''">
28+
<if test="blockGroupId!=null">
2929
block_group_id = #{blockGroupId},
3030
</if>
3131
</sql>

base/src/main/resources/mappers/BlockGroupMapper.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
<if test="name!=null and name!=''">
1717
AND name = #{name}
1818
</if>
19-
<if test="appId!=null and appId!=''">
19+
<if test="appId!=null">
2020
AND app_id = #{appId}
2121
</if>
22-
<if test="platformId!=null and platformId!=''">
22+
<if test="platformId!=null">
2323
AND platform_id = #{platformId}
2424
</if>
2525
<if test="description!=null and description!=''">
@@ -31,10 +31,10 @@
3131
<if test="lastUpdatedBy!=null and lastUpdatedBy!=''">
3232
AND last_updated_by = #{lastUpdatedBy}
3333
</if>
34-
<if test="createdTime!=null and createdTime!=''">
34+
<if test="createdTime!=null">
3535
AND created_time = #{createdTime}
3636
</if>
37-
<if test="lastUpdatedTime!=null and lastUpdatedTime!=''">
37+
<if test="lastUpdatedTime!=null">
3838
AND last_updated_time = #{lastUpdatedTime}
3939
</if>
4040
<if test="tenantId!=null and tenantId!=''">
@@ -53,10 +53,10 @@
5353
<if test="name!=null and name!=''">
5454
name = #{name},
5555
</if>
56-
<if test="appId!=null and appId!=''">
56+
<if test="appId!=null">
5757
app_id = #{appId},
5858
</if>
59-
<if test="platformId!=null and platformId!=''">
59+
<if test="platformId!=null">
6060
platform_id = #{platformId},
6161
</if>
6262
<if test="description!=null and description!=''">
@@ -68,10 +68,10 @@
6868
<if test="lastUpdatedBy!=null and lastUpdatedBy!=''">
6969
last_updated_by = #{lastUpdatedBy},
7070
</if>
71-
<if test="createdTime!=null and createdTime!=''">
71+
<if test="createdTime!=null">
7272
created_time = #{createdTime},
7373
</if>
74-
<if test="lastUpdatedTime!=null and lastUpdatedTime!=''">
74+
<if test="lastUpdatedTime!=null">
7575
last_updated_time = #{lastUpdatedTime},
7676
</if>
7777
<if test="tenantId!=null and tenantId!=''">

base/src/main/resources/mappers/BlockHistoryMapper.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<!-- 通用条件列 -->
1616
<sql id="BlockHistoryByCondition">
17-
<if test="refId!=null and refId!=''">
17+
<if test="refId!=null">
1818
AND ref_id = #{refId}
1919
</if>
2020
<if test="message!=null and message!=''">
@@ -56,7 +56,7 @@
5656
<if test="isOfficial!=null">
5757
AND is_official = #{isOfficial}
5858
</if>
59-
<if test="isPublic!=null and isPublic!=''">
59+
<if test="isPublic!=null">
6060
AND public = #{isPublic}
6161
</if>
6262
<if test="isDefault!=null">
@@ -68,10 +68,10 @@
6868
<if test="mode!=null and mode!=''">
6969
AND mode = #{mode}
7070
</if>
71-
<if test="platformId!=null and platformId!=''">
71+
<if test="platformId!=null">
7272
AND platform_id = #{platformId}
7373
</if>
74-
<if test="appId!=null and appId!=''">
74+
<if test="appId!=null">
7575
AND app_id = #{appId}
7676
</if>
7777
<if test="npmName!=null and npmName!=''">
@@ -89,10 +89,10 @@
8989
<if test="lastUpdatedBy!=null and lastUpdatedBy!=''">
9090
AND last_updated_by = #{lastUpdatedBy}
9191
</if>
92-
<if test="createdTime!=null and createdTime!=''">
92+
<if test="createdTime!=null">
9393
AND created_time = #{createdTime}
9494
</if>
95-
<if test="lastUpdatedTime!=null and lastUpdatedTime!=''">
95+
<if test="lastUpdatedTime!=null">
9696
AND last_updated_time = #{lastUpdatedTime}
9797
</if>
9898
<if test="tenantId!=null and tenantId!=''">
@@ -108,7 +108,7 @@
108108

109109
<!-- 通用设置列 -->
110110
<sql id="BlockHistorySetColumns">
111-
<if test="refId!=null and refId!=''">
111+
<if test="refId!=null">
112112
ref_id = #{refId},
113113
</if>
114114
<if test="message!=null and message!=''">
@@ -150,7 +150,7 @@
150150
<if test="isOfficial!=null">
151151
is_official = #{isOfficial},
152152
</if>
153-
<if test="isPublic!=null and isPublic!=''">
153+
<if test="isPublic!=null">
154154
public = #{isPublic},
155155
</if>
156156
<if test="isDefault!=null">
@@ -162,10 +162,10 @@
162162
<if test="mode!=null and mode!=''">
163163
mode = #{mode},
164164
</if>
165-
<if test="platformId!=null and platformId!=''">
165+
<if test="platformId!=null">
166166
platform_id = #{platformId},
167167
</if>
168-
<if test="appId!=null and appId!=''">
168+
<if test="appId!=null">
169169
app_id = #{appId},
170170
</if>
171171
<if test="npmName!=null and npmName!=''">
@@ -183,10 +183,10 @@
183183
<if test="lastUpdatedBy!=null and lastUpdatedBy!=''">
184184
last_updated_by = #{lastUpdatedBy},
185185
</if>
186-
<if test="createdTime!=null and createdTime!=''">
186+
<if test="createdTime!=null">
187187
created_time = #{createdTime},
188188
</if>
189-
<if test="lastUpdatedTime!=null and lastUpdatedTime!=''">
189+
<if test="lastUpdatedTime!=null">
190190
last_updated_time = #{lastUpdatedTime},
191191
</if>
192192
<if test="tenantId!=null and tenantId!=''">

0 commit comments

Comments
 (0)