<?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.fdage.dao.cust.TbInformationMapperCust">
  <select id="findList" parameterType="com.fdage.request.RequestInformation" resultType="com.fdage.respon.ResponInformation">
    select
      id, name, type, content_url as contentUrl, content_num as contentNum, order_num as orderNum, state, start_time as startTime,
      end_time as endTime, create_time as createTime, description
    from tb_information
    where 1 = 1
    <if test="type != null">
      and type = #{type}
    </if>
    <if test="name != null and name != ''">
      and name like CONCAT('%', #{name}, '%')
    </if>
    <if test="state != null">
      and state = #{state}
    </if>
    ORDER BY order_num, create_time DESC
  </select>
</mapper>