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
9c5d4443
Commit
9c5d4443
authored
Jul 23, 2026
by
wujipeng
Browse files
优化
parent
0e79f30c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/example/pipelinenetwork/mapper/BasicMapper.java
View file @
9c5d4443
...
@@ -16,6 +16,4 @@ import java.util.List;
...
@@ -16,6 +16,4 @@ import java.util.List;
@Mapper
@Mapper
public
interface
BasicMapper
extends
BaseMapper
<
BasicEntity
>
{
public
interface
BasicMapper
extends
BaseMapper
<
BasicEntity
>
{
List
<
String
>
getRelIdsByRegion
(
@Param
(
"region"
)
String
region
);
List
<
String
>
getRelIdsByRegion
(
@Param
(
"region"
)
String
region
);
List
<
String
>
getRelIdsByRoadName
(
@Param
(
"roadName"
)
String
roadName
);
}
}
src/main/resources/com/example/pipelinenetwork/mapper/BasicMapper.xml
View file @
9c5d4443
...
@@ -4,9 +4,11 @@
...
@@ -4,9 +4,11 @@
<mapper
namespace=
"com.example.pipelinenetwork.mapper.BasicMapper"
>
<mapper
namespace=
"com.example.pipelinenetwork.mapper.BasicMapper"
>
<select
id=
"getRelIdsByRegion"
resultType=
"java.lang.String"
>
<select
id=
"getRelIdsByRegion"
resultType=
"java.lang.String"
>
SELECT rel_id FROM basic WHERE region = #{region}
SELECT
</select>
rel_id
<select
id=
"getRelIdsByRoadName"
resultType=
"java.lang.String"
>
FROM
SELECT rel_id FROM basic WHERE road_name = #{roadName}
basic
WHERE
region = #{region}
</select>
</select>
</mapper>
</mapper>
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