Skip to content

Commit 1e47ff8

Browse files
authored
fix: Modify mapper (#209)
fix: Modify mapper
1 parent f3bc917 commit 1e47ff8

11 files changed

+63
-63
lines changed

Diff for: base/src/main/resources/mappers/AppMapper.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<if test="isDemo!=null and isDemo!=''">
8383
AND is_demo = #{isDemo}
8484
</if>
85-
<if test="isDefault!=null and isDefault!=''">
85+
<if test="isDefault!=null">
8686
AND is_default = #{isDefault}
8787
</if>
8888
<if test="templateType!=null and templateType!=''">
@@ -112,7 +112,7 @@
112112
<if test="dataHash!=null and dataHash!=''">
113113
AND data_hash = #{dataHash}
114114
</if>
115-
<if test="canAssociate!=null and canAssociate!=''">
115+
<if test="canAssociate!=null">
116116
AND can_associate = #{canAssociate}
117117
</if>
118118
<if test="dataSourceGlobal!=null and dataSourceGlobal!=''">
@@ -173,7 +173,7 @@
173173
<if test="state!=null and state!=''">
174174
state = #{state},
175175
</if>
176-
<if test="isPublish!=null and isPublish!=''">
176+
<if test="isPublish!=null">
177177
published = #{isPublish},
178178
</if>
179179
<if test="homePage!=null and homePage!=''">
@@ -206,10 +206,10 @@
206206
<if test="branch!=null and branch!=''">
207207
branch = #{branch},
208208
</if>
209-
<if test="isDemo!=null and isDemo!=''">
209+
<if test="isDemo!=null">
210210
is_demo = #{isDemo},
211211
</if>
212-
<if test="isDefault!=null and isDefault!=''">
212+
<if test="isDefault!=null">
213213
is_default = #{isDefault},
214214
</if>
215215
<if test="templateType!=null and templateType!=''">
@@ -239,7 +239,7 @@
239239
<if test="dataHash!=null and dataHash!=''">
240240
data_hash = #{dataHash},
241241
</if>
242-
<if test="canAssociate!=null and canAssociate!=''">
242+
<if test="canAssociate!=null">
243243
can_associate = #{canAssociate},
244244
</if>
245245
<if test="dataSourceGlobal!=null and dataSourceGlobal!=''">

Diff for: base/src/main/resources/mappers/BlockHistoryMapper.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@
5353
<if test="tags!=null and tags!=''">
5454
AND tags = #{tags}
5555
</if>
56-
<if test="isOfficial!=null and isOfficial!=''">
56+
<if test="isOfficial!=null">
5757
AND is_official = #{isOfficial}
5858
</if>
5959
<if test="isPublic!=null and isPublic!=''">
6060
AND public = #{isPublic}
6161
</if>
62-
<if test="isDefault!=null and isDefault!=''">
62+
<if test="isDefault!=null">
6363
AND is_default = #{isDefault}
6464
</if>
65-
<if test="isTinyReserved!=null and isTinyReserved!=''">
65+
<if test="isTinyReserved!=null">
6666
AND tiny_reserved = #{isTinyReserved}
6767
</if>
6868
<if test="mode!=null and mode!=''">
@@ -147,16 +147,16 @@
147147
<if test="tags!=null and tags!=''">
148148
tags = #{tags},
149149
</if>
150-
<if test="isOfficial!=null and isOfficial!=''">
150+
<if test="isOfficial!=null">
151151
is_official = #{isOfficial},
152152
</if>
153153
<if test="isPublic!=null and isPublic!=''">
154154
public = #{isPublic},
155155
</if>
156-
<if test="isDefault!=null and isDefault!=''">
156+
<if test="isDefault!=null">
157157
is_default = #{isDefault},
158158
</if>
159-
<if test="isTinyReserved!=null and isTinyReserved!=''">
159+
<if test="isTinyReserved!=null">
160160
tiny_reserved = #{isTinyReserved},
161161
</if>
162162
<if test="mode!=null and mode!=''">

Diff for: base/src/main/resources/mappers/BlockMapper.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@
5454
<if test="occupierBy!=null and occupierBy!=''">
5555
AND occupier_by = #{occupierBy}
5656
</if>
57-
<if test="isOfficial!=null and isOfficial!=''">
57+
<if test="isOfficial!=null">
5858
AND is_official = #{isOfficial}
5959
</if>
6060
<if test="publicStatus!=null and publicStatus!=''">
6161
AND `public` = #{publicStatus}
6262
</if>
63-
<if test="isDefault!=null and isDefault!=''">
63+
<if test="isDefault!=null">
6464
AND is_default = #{isDefault}
6565
</if>
66-
<if test="isTinyReserved!=null and isTinyReserved!=''">
66+
<if test="isTinyReserved!=null">
6767
AND tiny_reserved = #{isTinyReserved}
6868
</if>
6969
<if test="npmName!=null and npmName!=''">
@@ -145,16 +145,16 @@
145145
<if test="occupierBy!=null and occupierBy!=''">
146146
occupier_by = #{occupierBy},
147147
</if>
148-
<if test="isOfficial!=null and isOfficial!=''">
148+
<if test="isOfficial!=null">
149149
is_official = #{isOfficial},
150150
</if>
151151
<if test="publicStatus!=null and publicStatus!=''">
152152
`public` = #{publicStatus},
153153
</if>
154-
<if test="isDefault!=null and isDefault!=''">
154+
<if test="isDefault!=null">
155155
is_default = #{isDefault},
156156
</if>
157-
<if test="isTinyReserved!=null and isTinyReserved!=''">
157+
<if test="isTinyReserved!=null">
158158
tiny_reserved = #{isTinyReserved},
159159
</if>
160160
<if test="npmName!=null and npmName!=''">

Diff for: base/src/main/resources/mappers/ComponentLibraryMapper.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@
4949
<if test="publicStatus!=null and publicStatus!=''">
5050
AND `public` = #{publicStatus}
5151
</if>
52-
<if test="isStarted!=null and isStarted!=''">
52+
<if test="isStarted!=null">
5353
AND is_started = #{isStarted}
5454
</if>
55-
<if test="isOfficial!=null and isOfficial!=''">
55+
<if test="isOfficial!=null">
5656
AND is_official = #{isOfficial}
5757
</if>
58-
<if test="isDefault!=null and isDefault!=''">
58+
<if test="isDefault!=null">
5959
AND is_default = #{isDefault}
6060
</if>
6161
<if test="createdBy!=null and createdBy!=''">
@@ -119,13 +119,13 @@
119119
<if test="publicStatus!=null and publicStatus!=''">
120120
`public` = #{publicStatus},
121121
</if>
122-
<if test="isStarted!=null and isStarted!=''">
122+
<if test="isStarted!=null">
123123
is_started = #{isStarted},
124124
</if>
125-
<if test="isOfficial!=null and isOfficial!=''">
125+
<if test="isOfficial!=null">
126126
is_official = #{isOfficial},
127127
</if>
128-
<if test="isDefault!=null and isDefault!=''">
128+
<if test="isDefault!=null">
129129
is_default = #{isDefault},
130130
</if>
131131
<if test="createdBy!=null and createdBy!=''">

Diff for: base/src/main/resources/mappers/ComponentMapper.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@
169169
<if test="framework!=null and framework!=''">
170170
framework = #{framework},
171171
</if>
172-
<if test="isOfficial!=null and isOfficial!=''">
172+
<if test="isOfficial!=null">
173173
is_official = #{isOfficial},
174174
</if>
175-
<if test="isDefault!=null and isDefault!=''">
175+
<if test="isDefault!=null">
176176
is_default = #{isDefault},
177177
</if>
178-
<if test="isTinyReserved!=null and isTinyReserved!=''">
178+
<if test="isTinyReserved!=null">
179179
tiny_reserved = #{isTinyReserved},
180180
</if>
181181
<if test="componentMetadata!=null and componentMetadata!=''">

Diff for: base/src/main/resources/mappers/MaterialMapper.xml

+8-8
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<if test="imageUrl!=null and imageUrl!=''">
3131
AND image_url = #{imageUrl}
3232
</if>
33-
<if test="isPublish!=null and isPublish!=''">
33+
<if test="isPublish!=null">
3434
AND published = #{isPublish}
3535
</if>
3636
<if test="latestVersion!=null and latestVersion!=''">
@@ -48,13 +48,13 @@
4848
<if test="description!=null and description!=''">
4949
AND description = #{description}
5050
</if>
51-
<if test="isOfficial!=null and isOfficial!=''">
51+
<if test="isOfficial!=null">
5252
AND is_official = #{isOfficial}
5353
</if>
54-
<if test="isDefault!=null and isDefault!=''">
54+
<if test="isDefault!=null">
5555
AND is_default = #{isDefault}
5656
</if>
57-
<if test="isTinyReserved!=null and isTinyReserved!=''">
57+
<if test="isTinyReserved!=null">
5858
AND tiny_reserved = #{isTinyReserved}
5959
</if>
6060
<if test="componentLibraryId!=null and componentLibraryId!=''">
@@ -115,7 +115,7 @@
115115
<if test="imageUrl!=null and imageUrl!=''">
116116
image_url = #{imageUrl},
117117
</if>
118-
<if test="isPublish!=null and isPublish!=''">
118+
<if test="isPublish!=null">
119119
published = #{isPublish},
120120
</if>
121121
<if test="latestVersion!=null and latestVersion!=''">
@@ -133,13 +133,13 @@
133133
<if test="description!=null and description!=''">
134134
description = #{description},
135135
</if>
136-
<if test="isOfficial!=null and isOfficial!=''">
136+
<if test="isOfficial!=null">
137137
is_official = #{isOfficial},
138138
</if>
139-
<if test="isDefault!=null and isDefault!=''">
139+
<if test="isDefault!=null">
140140
is_default = #{isDefault},
141141
</if>
142-
<if test="isTinyReserved!=null and isTinyReserved!=''">
142+
<if test="isTinyReserved!=null">
143143
tiny_reserved = #{isTinyReserved},
144144
</if>
145145
<if test="componentLibraryId!=null and componentLibraryId!=''">

Diff for: base/src/main/resources/mappers/PageHistoryMapper.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<if test="pageContent!=null and pageContent!=''">
3232
AND page_content = #{pageContent}
3333
</if>
34-
<if test="isBody!=null and isBody!=''">
34+
<if test="isBody!=null">
3535
AND is_body = #{isBody}
3636
</if>
3737
<if test="parentId!=null and parentId!=''">
@@ -43,10 +43,10 @@
4343
<if test="depth!=null and depth!=''">
4444
AND `depth` = #{depth}
4545
</if>
46-
<if test="isPage!=null and isPage!=''">
46+
<if test="isPage!=null">
4747
AND is_page = #{isPage}
4848
</if>
49-
<if test="isDefault!=null and isDefault!=''">
49+
<if test="isDefault!=null">
5050
AND is_default = #{isDefault}
5151
</if>
5252
<if test="message!=null and message!=''">
@@ -104,7 +104,7 @@
104104
<if test="pageContent!=null and pageContent!=''">
105105
page_content = #{pageContent},
106106
</if>
107-
<if test="isBody!=null and isBody!=''">
107+
<if test="isBody!=null">
108108
is_body = #{isBody},
109109
</if>
110110
<if test="parentId!=null and parentId!=''">
@@ -116,10 +116,10 @@
116116
<if test="depth!=null and depth!=''">
117117
`depth` = #{depth},
118118
</if>
119-
<if test="isPage!=null and isPage!=''">
119+
<if test="isPage!=null">
120120
is_page = #{isPage},
121121
</if>
122-
<if test="isDefault!=null and isDefault!=''">
122+
<if test="isDefault!=null">
123123
is_default = #{isDefault},
124124
</if>
125125
<if test="message!=null and message!=''">

Diff for: base/src/main/resources/mappers/PageMapper.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<if test="pageContent!=null and pageContent!=''">
2727
AND page_content = #{pageContent}
2828
</if>
29-
<if test="isBody!=null and isBody!=''">
29+
<if test="isBody!=null">
3030
AND is_body = #{isBody}
3131
</if>
3232
<if test="parentId!=null and parentId!=''">
@@ -38,13 +38,13 @@
3838
<if test="depth!=null and depth!=''">
3939
AND `depth` = #{depth}
4040
</if>
41-
<if test="isPage!=null and isPage!=''">
41+
<if test="isPage!=null">
4242
AND is_page = #{isPage}
4343
</if>
4444
<if test="occupierBy!=null and occupierBy!=''">
4545
AND occupier_by = #{occupierBy}
4646
</if>
47-
<if test="isDefault!=null and isDefault!=''">
47+
<if test="isDefault!=null">
4848
AND is_default = #{isDefault}
4949
</if>
5050
<if test="contentBlocks!=null and contentBlocks!=''">
@@ -93,7 +93,7 @@
9393
<if test="pageContent!=null and pageContent!=''">
9494
page_content = #{pageContent},
9595
</if>
96-
<if test="isBody!=null and isBody!=''">
96+
<if test="isBody!=null">
9797
is_body = #{isBody},
9898
</if>
9999
<if test="parentId!=null and parentId!=''">
@@ -105,13 +105,13 @@
105105
<if test="depth!=null and depth!=''">
106106
`depth` = #{depth},
107107
</if>
108-
<if test="isPage!=null and isPage!=''">
108+
<if test="isPage!=null">
109109
is_page = #{isPage},
110110
</if>
111111
<if test="occupierBy!=null and occupierBy!=''">
112112
occupier_by = #{occupierBy},
113113
</if>
114-
<if test="isDefault!=null and isDefault!=''">
114+
<if test="isDefault!=null">
115115
is_default = #{isDefault},
116116
</if>
117117
<if test="contentBlocks!=null and contentBlocks!=''">

Diff for: base/src/main/resources/mappers/PageTemplateMapper.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
<if test="framework!=null and framework!=''">
2323
AND framework = #{framework}
2424
</if>
25-
<if test="published!=null and published!=''">
25+
<if test="published!=null">
2626
AND published = #{published}
2727
</if>
28-
<if test="publicStatus!=null and publicStatus!=''">
28+
<if test="publicStatus!=null">
2929
AND `public` = #{publicStatus}
3030
</if>
3131
<if test="type!=null and type!=''">
@@ -34,7 +34,7 @@
3434
<if test="status!=null and status!=''">
3535
AND status = #{status}
3636
</if>
37-
<if test="isPreset!=null and isPreset!=''">
37+
<if test="isPreset!=null">
3838
AND is_preset = #{isPreset}
3939
</if>
4040
<if test="imageUrl!=null and imageUrl!=''">
@@ -80,10 +80,10 @@
8080
<if test="framework!=null and framework!=''">
8181
framework = #{framework},
8282
</if>
83-
<if test="published!=null and published!=''">
83+
<if test="published!=null">
8484
published = #{published},
8585
</if>
86-
<if test="publicStatus!=null and publicStatus!=''">
86+
<if test="publicStatus!=null">
8787
`public` = #{publicStatus},
8888
</if>
8989
<if test="type!=null and type!=''">
@@ -92,7 +92,7 @@
9292
<if test="status!=null and status!=''">
9393
status = #{status},
9494
</if>
95-
<if test="isPreset!=null and isPreset!=''">
95+
<if test="isPreset!=null">
9696
is_preset = #{isPreset},
9797
</if>
9898
<if test="imageUrl!=null and imageUrl!=''">

0 commit comments

Comments
 (0)