<?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.roadm.mapper.SenstiveWordMapper">


    <select id="listAllSensitiveWordType"  parameterType="DataDictionary"
        resultType="DataDictionary"  >
        select c.name,c.id,c.description,c.createtime,c.type,c.value from sms_data_dictionary  c 
        where 1=1
        <if test="type!=null  and type!=''">
            and c.type = #{type}
        </if>
        <if test="status!=null  and status!='-1'">
            and c.status = #{status}
        </if>
        order by c.id desc
    </select>
</mapper>