12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?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.zhgd.scs.mapper.SysHiddenTroubleMapper">
- <resultMap id="BaseResultMap" type="com.zhgd.scs.domain.SysHiddenTrouble">
- <id property="id" column="id" jdbcType="BIGINT"/>
- <result property="item" column="item" jdbcType="INTEGER"/>
- <result property="type" column="type" jdbcType="INTEGER"/>
- <result property="content" column="content" jdbcType="VARCHAR"/>
- <result property="description" column="description" jdbcType="VARCHAR"/>
- <result property="updateUser" column="update_user_id" jdbcType="BIGINT"/>
- <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
- <result property="state" column="state" jdbcType="INTEGER"/>
- </resultMap>
- <sql id="Base_Column_List">
- id,item,type,
- content,description,update_user_id,
- update_time,state
- </sql>
- <select id="pagelist" resultType="com.zhgd.scs.domain.SysHiddenTrouble">
- SELECT t.*
- FROM sys_hidden_trouble t
- WHERE 1=1
- <if test="item!=null">
- AND t.item = #{item}
- </if>
- <if test="type!=null">
- AND t.type = #{type}
- </if>
- <if test="state!=null">
- AND t.state = #{state}
- </if>
- <if test="updateUser!=null and updateUser!= ''">
- AND t.update_user LIKE concat('%',#{updateUser},'%')
- </if>
- <if test="startTime!=null and endTime!=null">
- AND t.update_time BETWEEN #{startTime} AND #{endTime}
- </if>
- </select>
- </mapper>
|