Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
pipeline-network
Commits
594a2397
Commit
594a2397
authored
Sep 29, 2026
by
wujipeng
Browse files
优化
parent
50babf4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/resources/com/example/pipelinenetwork/mapper/DefectMapper.xml
View file @
594a2397
...
@@ -13,18 +13,20 @@
...
@@ -13,18 +13,20 @@
rel_id
rel_id
from
from
defect
defect
where
<where>
rel_id
<if
test=
"relIds != null and relIds.size() > 0"
>
in
rel_id in
<foreach
item=
"item"
index=
"index"
collection=
"relIds"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"item"
index=
"index"
collection=
"relIds"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
<if
test=
"defectType != null and defectType != ''"
>
</if>
and type = #{defectType}
<if
test=
"defectType != null and defectType != ''"
>
</if>
and type = #{defectType}
<if
test=
"lev != null and lev != ''"
>
</if>
and level = #{lev}
<if
test=
"lev != null and lev != ''"
>
</if>
and level = #{lev}
</if>
</where>
</select>
</select>
<select
id=
"queryByRoadName"
resultType=
"com.example.pipelinenetwork.pojo.entity.DefectEntity"
>
<select
id=
"queryByRoadName"
resultType=
"com.example.pipelinenetwork.pojo.entity.DefectEntity"
>
select
select
...
...
src/main/resources/com/example/pipelinenetwork/mapper/RepairMapper.xml
View file @
594a2397
...
@@ -14,18 +14,20 @@
...
@@ -14,18 +14,20 @@
rel_id
rel_id
from
from
repair
repair
where
<where>
rel_id
<if
test=
"relIds != null and relIds.size() > 0"
>
in
rel_id in
<foreach
item=
"item"
index=
"index"
collection=
"relIds"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"item"
index=
"index"
collection=
"relIds"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
<if
test=
"defectType != null and defectType != ''"
>
</if>
and type = #{defectType}
<if
test=
"defectType != null and defectType != ''"
>
</if>
and type = #{defectType}
<if
test=
"lev != null and lev != ''"
>
</if>
and level = #{lev}
<if
test=
"lev != null and lev != ''"
>
</if>
and level = #{lev}
</if>
</where>
</select>
</select>
<select
id=
"queryByRoadName"
resultType=
"com.example.pipelinenetwork.pojo.entity.RepairEntity"
>
<select
id=
"queryByRoadName"
resultType=
"com.example.pipelinenetwork.pojo.entity.RepairEntity"
>
select
select
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment