<?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="com.citygis.web.mapper.TabAccessMapper">

    <select id="getTabAccessList" resultType="com.citygis.web.domain.TabAccess" parameterType="com.citygis.web.domain.TabAccess">
        select "ID","CODE","CONTACT","PHONE","DEPT","NAME","DATA_TYPE","IP","PORT","DATA_MANNER","IS_DEL","IS_APPLY","CREATE_BY","CREATE_TIME","UPDATE_BY","UPDATE_TIME","USER_ID","DEPT_ID","PS"
        from "LIU_TONG_YI"."TAB_ACCESS" ta
        where IS_DEL = 0
        <if test="name != null">
            and NAME like concat('%',#{name},'%')
        </if>
        <if test="dataType != null">
            and DATA_TYPE like concat('%',#{dataType},'%')
        </if>

        <if test="ids != null">
            and ID in
            <foreach collection="ids" item="id" open="(" separator="," close=")">
                #{id}
            </foreach>
        </if>
            ${params.dataScope}
    </select>

</mapper>
