|
- <?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.simple.mapper.WxMallFloorMapper">
- <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMallFloor">
- <id column="id" jdbcType="BIGINT" property="id" />
- <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
- <result column="mall_id" jdbcType="BIGINT" property="mallId" />
- <result column="building_id" jdbcType="BIGINT" property="buildingId" />
- <result column="floor_name" jdbcType="VARCHAR" property="floorName" />
- </resultMap>
-
- <sql id="allColumns">
- `id`,`tenant_id`,`mall_id`,`building_id`,`floor_name`
- </sql>
-
- <sql id="dynamicWhereConditions">
- where 1 = 1
-
- <if test=" null != id ">
- and `id` = #{id}
-
- </if>
-
- <if test=" null != tenantId ">
- and `tenant_id` like concat('%', #{tenantId},'%')
-
- </if>
-
- <if test=" null != mallId ">
- and `mall_id` = #{mallId}
-
- </if>
-
- <if test=" null != buildingId ">
- and `building_id` = #{buildingId}
-
- </if>
-
- <if test=" null != floorName ">
- and `floor_name` like concat('%', #{floorName},'%')
-
- </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.simple.domain.po.WxMallFloor" resultMap="BaseResultMap">
- select <include refid="allColumns" /> from wx_mall_floor
- <include refid="dynamicWhereConditions" />
- </select>
-
-
-
-
-
-
- </mapper>
|