洪城义警-正式版后台
zengh
2022-05-26 4c19ddd36bdfb43b5ef4e8df3c9a98cd4d356d6c
src/main/java/org/springblade/modules/routeIn/mapper/RouteinMapper.xml
@@ -69,4 +69,18 @@
        </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>