Commit 9c5d4443 authored by wujipeng's avatar wujipeng
Browse files

优化

parent 0e79f30c
...@@ -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);
} }
...@@ -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>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment