|
123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?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.WxMallApplyMapper">
- <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxMallApply">
- <id column="id" jdbcType="BIGINT" property="id" />
- <result column="mall_name" jdbcType="VARCHAR" property="mallName" />
- <result column="applicant" jdbcType="VARCHAR" property="applicant" />
- <result column="phone" jdbcType="VARCHAR" property="phone" />
- <result column="apply_date" jdbcType="TIMESTAMP" property="applyDate" />
- </resultMap>
-
- <sql id="allColumns">
- `id`,`mall_name`,`applicant`,`phone`,`apply_date`
- </sql>
-
- <sql id="dynamicWhereConditions">
- where 1 = 1
- <if test=" null != id "> and `id` = #{id} </if>
- <if test=" null != mallName "> and `mall_name` = #{mallName} </if>
- <if test=" null != applicant "> and `applicant` = #{applicant} </if>
- <if test=" null != phone "> and `phone` = #{phone} </if>
- <if test=" null != applyDate "> and `apply_date` = #{applyDate} </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.WxMallApply" resultMap="BaseResultMap">
- select <include refid="allColumns" /> from wx_mall_apply
- <include refid="dynamicWhereConditions" />
- </select>
-
-
-
-
-
-
- </mapper>
|