Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

52 righe
1.7 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.WxFinancePrintDataMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxFinancePrintData">
  5. <id column="id" jdbcType="BIGINT" property="id"/>
  6. <result column="name" jdbcType="VARCHAR" property="name"/>
  7. <result column="is_del" jdbcType="INTEGER" property="isDel"/>
  8. <result column="remark" jdbcType="VARCHAR" property="remark"/>
  9. <result column="type" jdbcType="INTEGER" property="type"/>
  10. </resultMap>
  11. <sql id="allColumns">
  12. `id`,`name`,`is_del`,`remark`,`type`
  13. </sql>
  14. <sql id="dynamicWhereConditions">
  15. where id &gt; 0
  16. <if test=" null != id ">
  17. and `id` = #{id}
  18. </if>
  19. <if test=" null != name ">
  20. and `name` like concat('%', #{name},'%')
  21. </if>
  22. <if test=" null != isDel ">
  23. and `is_del` = #{isDel}
  24. </if>
  25. <if test=" null != type ">
  26. and `type` = #{type}
  27. </if>
  28. <if test=" null != ids ">
  29. and id in
  30. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  31. #{idItem}
  32. </foreach>
  33. </if>
  34. <if test=" null != sortColumns">order by ${sortColumns}</if>
  35. </sql>
  36. <select id="findList" parameterType="com.iformall.domain.po.WxFinancePrintData" resultMap="BaseResultMap">
  37. select
  38. <include refid="allColumns"/>
  39. from wx_finance_print_data
  40. <include refid="dynamicWhereConditions"/>
  41. </select>
  42. </mapper>