后台服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WxGroupMapper.xml 2.2 KiB

2 jaren geleden
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.WxGroupMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxGroup">
  5. <id column="id" jdbcType="INTEGER" property="id" />
  6. <result column="name" jdbcType="VARCHAR" property="name" />
  7. <result column="country" jdbcType="VARCHAR" property="country" />
  8. <result column="province" jdbcType="VARCHAR" property="province" />
  9. <result column="city" jdbcType="VARCHAR" property="city" />
  10. <result column="addr" jdbcType="VARCHAR" property="addr" />
  11. <result column="longitude" jdbcType="VARCHAR" property="longitude" />
  12. <result column="latitude" jdbcType="VARCHAR" property="latitude" />
  13. <result column="createtime" jdbcType="TIMESTAMP" property="createtime" />
  14. <result column="logurl" jdbcType="VARCHAR" property="logurl" />
  15. </resultMap>
  16. <sql id="allColumns">
  17. `id`,`name`,`country`,`province`,`city`,`addr`,`longitude`,`latitude`,`createtime`,`logurl`
  18. </sql>
  19. <sql id="dynamicWhereConditions">
  20. where 1 = 1
  21. <if test=" null != id "> and `id` = #{id} </if>
  22. <if test=" null != name "> and `name` = #{name} </if>
  23. <if test=" null != country "> and `country` = #{country} </if>
  24. <if test=" null != province "> and `province` = #{province} </if>
  25. <if test=" null != city "> and `city` = #{city} </if>
  26. <if test=" null != addr "> and `addr` = #{addr} </if>
  27. <if test=" null != longitude "> and `longitude` = #{longitude} </if>
  28. <if test=" null != latitude "> and `latitude` = #{latitude} </if>
  29. <if test=" null != createtime "> and `createtime` = #{createtime} </if>
  30. <if test=" null != logurl "> and `logurl` = #{logurl} </if>
  31. <if test=" null != ids ">
  32. and id in
  33. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  34. #{idItem}
  35. </foreach>
  36. </if>
  37. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  38. </sql>
  39. <select id="findList" parameterType="com.iformall.domain.po.WxGroup" resultMap="BaseResultMap">
  40. select <include refid="allColumns" /> from wx_group
  41. <include refid="dynamicWhereConditions" />
  42. </select>
  43. </mapper>