Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

83 rindas
2.5 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.iformall.mapper.WxMallFloorMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxMallFloor">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  7. <result column="mall_id" jdbcType="BIGINT" property="mallId" />
  8. <result column="building_id" jdbcType="BIGINT" property="buildingId" />
  9. <result column="floor_name" jdbcType="VARCHAR" property="floorName" />
  10. <result column="background_img" jdbcType="VARCHAR" property="backgroundImg" />
  11. <result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
  12. <result column="update_date" jdbcType="TIMESTAMP" property="updateDate" />
  13. <result column="total_area" jdbcType="DECIMAL" property="totalArea"/>
  14. <result column="operating_area" jdbcType="DECIMAL" property="operatingArea"/>
  15. </resultMap>
  16. <sql id="allColumns">
  17. `id`,`tenant_id`,`mall_id`,`building_id`,`floor_name`,`background_img`,`create_date`,`update_date`,`total_area`,`operating_area`
  18. </sql>
  19. <sql id="dynamicWhereConditions">
  20. where 1 = 1
  21. <if test=" null != id ">
  22. and `id` = #{id}
  23. </if>
  24. <if test=" null != tenantId ">
  25. and `tenant_id` = #{tenantId}
  26. </if>
  27. <if test=" null != mallId ">
  28. and `mall_id` = #{mallId}
  29. </if>
  30. <if test=" null != buildingId ">
  31. and `building_id` = #{buildingId}
  32. </if>
  33. <if test=" null != floorName ">
  34. and `floor_name` like concat('%', #{floorName},'%')
  35. </if>
  36. <if test=" null != backgroundImg ">
  37. and `background_img` like concat('%', #{backgroundImg},'%')
  38. </if>
  39. <if test=" null != createDate ">
  40. and `create_date` = #{createDate}
  41. </if>
  42. <if test=" null != updateDate ">
  43. and `update_date` = #{updateDate}
  44. </if>
  45. <if test=" null != ids ">
  46. and id in
  47. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  48. #{idItem}
  49. </foreach>
  50. </if>
  51. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  52. </sql>
  53. <select id="findList" parameterType="com.iformall.domain.po.WxMallFloor" resultMap="BaseResultMap">
  54. select <include refid="allColumns" /> from wx_mall_floor
  55. <include refid="dynamicWhereConditions" />
  56. </select>
  57. </mapper>