|
- <?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.WxScoreRulesMapper">
- <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxScoreRules">
- <id column="id" jdbcType="BIGINT" property="id"/>
- <result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/>
- <result column="rules" jdbcType="VARCHAR" property="rules"/>
- <result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
- <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
- <result column="type" jdbcType="INTEGER" property="type"/>
- <result column="clear_year" jdbcType="INTEGER" property="clearYear"/>
- <result column="scale" jdbcType="INTEGER" property="scale"/>
- <result column="credit_locked" jdbcType="INTEGER" property="creditLocked"/>
-
- </resultMap>
-
- <sql id="allColumns">
- `id`,`tenant_id`,`rules`,`create_date`,`update_date`,`type`,`clear_year`,`scale`,credit_locked
- </sql>
-
- <sql id="dynamicWhereConditions">
- where 1 = 1
-
- <if test=" null != id ">
- and `id` = #{id}
- </if>
- <if test=" null != tenantId ">
- and `tenant_id` = #{tenantId}
- </if>
-
- <if test=" null != createDate ">
- and `create_date` = #{createDate}
- </if>
- <if test=" null != updateDate ">
- and `update_date` = #{updateDate}
- </if>
- <if test=" null != type ">
- and `type` = #{type}
- </if>
- <if test=" null != clearYear ">
- and `clear_year` = #{clearYear}
- </if>
-
- <if test=" null != scale ">
- and `scale` = #{scale}
- </if>
-
- <if test=" null != creditLocked ">
- and `credit_locked` = #{creditLocked}
- </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.WxScoreRules" resultMap="BaseResultMap">
- select
- <include refid="allColumns"/>
- from wx_score_rules
- <include refid="dynamicWhereConditions"/>
- </select>
-
-
- </mapper>
|