|
- <?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.iformall.mapper.WxAuthorizerInfoMapper">
- <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxAuthorizerInfo">
- <id column="id" jdbcType="BIGINT" property="id" />
- <result column="authorizer_appid" jdbcType="VARCHAR" property="authorizerAppid" />
- <result column="head_img" jdbcType="VARCHAR" property="headImg" />
- <result column="alias" jdbcType="VARCHAR" property="alias" />
- <result column="qrcode_url" jdbcType="VARCHAR" property="qrcodeUrl" />
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
- <result column="authorization_status" jdbcType="INTEGER" property="authorizationStatus" />
- </resultMap>
-
- <sql id="allColumns">
- `id`,`authorizer_appid`,`head_img`,`alias`,`qrcode_url`,`create_time`,`authorization_status`
- </sql>
-
- <sql id="dynamicWhereConditions">
- where 1 = 1
- <if test=" null != id ">
- and `id` = #{id}
- </if>
- <if test=" null != authorizerAppid ">
- and `authorizer_appid` like concat('%', #{authorizerAppid},'%')
- </if>
- <if test=" null != headImg ">
- and `head_img` like concat('%', #{headImg},'%')
- </if>
- <if test=" null != alias ">
- and `alias` like concat('%', #{alias},'%')
- </if>
- <if test=" null != qrcodeUrl ">
- and `qrcode_url` like concat('%', #{qrcodeUrl},'%')
- </if>
- <if test=" null != createTime ">
- and `create_time` = #{createTime}
- </if>
- <if test=" null != authorizationStatus ">
- and `authorization_status` = #{authorizationStatus}
- </if>
- <if test=" null != ids ">
- and id in
- <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
- #{idItem}
- </foreach>
- </if>
- <if test=" null != sortColumns"> order by ${sortColumns} </if>
- </sql>
-
- <select id="findList" parameterType="com.iformall.domain.po.WxAuthorizerInfo" resultMap="BaseResultMap">
- select <include refid="allColumns" /> from wx_authorizer_info
- <include refid="dynamicWhereConditions" />
- </select>
-
-
-
-
-
-
- </mapper>
|