guoshilong
2023-05-18 6cd2da8eb7d7aefecd96a19ebbfe9caba59ea88c
1
2
3
4
5
6
7
8
9
10
11
12
13
<?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">
<mapper namespace="cn.gistack.sm.patrol.mapper.PatrolTypeMapper">
 
    <select id="selectPatrolType" resultType="cn.gistack.sm.patrol.entity.PatrolType">
        SELECT id,name,create_time
        FROM SM_PATROL_TYPE
        WHERE is_deleted = 0
        <if test="patrolType.name !=null and patrolType.name !='' ">
            AND name LIKE CONCAT('%',#{patrolType.name},'%')
        </if>
    </select>
</mapper>