From b39cc2beacc1ec2e37cff349cae42e420105c8a6 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Fri, 05 Nov 2021 14:29:47 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
src/main/java/org/springblade/modules/routeIn/mapper/RouteinMapper.xml | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/routeIn/mapper/RouteinMapper.xml b/src/main/java/org/springblade/modules/routeIn/mapper/RouteinMapper.xml
index 6911df3..fabb6b3 100644
--- a/src/main/java/org/springblade/modules/routeIn/mapper/RouteinMapper.xml
+++ b/src/main/java/org/springblade/modules/routeIn/mapper/RouteinMapper.xml
@@ -65,8 +65,22 @@
and r.routeName like '%${routeName}%'
</if>
<if test="id!=null and id!=''">
- AND d.snumber = #{id}
+ AND r.id = #{id}
</if>
</select>
+ <!--巡逻路线详情-->
+ <select id="details" resultType="org.springblade.modules.routeIn.entity.Routein">
+ SELECT id,ST_ASTEXT (routeInfo) as routeInfo,user_id as userId FROM sys_routein
+ where 1=1
+ <if test="routein.userId!=null and routein.userId!='' ">
+ and user_id = #{routein.userId}
+ </if>
+ </select>
+
+ <!--根据区域id删除巡逻路线信息-->
+ <delete id="removeByRegionId">
+ delete from sys_routein where regionId = #{regionId}
+ </delete>
+
</mapper>
--
Gitblit v1.9.3