<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mappernamespace="com.gx.mapper.TravelPointMapper"><selectid="selectTravePonintPage"resultType="com.gx.domain.TravelPoint">
select
stp.*, sp.thumb
from
sent_travel_point stp
left join
sent_picture sp
on
stp.logo = sp.id
where
stp.status = 1
<iftest="dto.type != null and dto.type != ''">
and stp.type = #{dto.type}
</if>
order by
stp.sort
</select></mapper>