Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

65 строки
2.3 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. <result column="sort" jdbcType="INTEGER" property="sort"/>
  11. <result column="print_data_type" jdbcType="VARCHAR" property="printDataType"/>
  12. <result column="print_data_json" jdbcType="VARCHAR" property="printDataJson"/>
  13. <result column="is_edit" jdbcType="INTEGER" property="isEdit"/>
  14. <result column="default_value" jdbcType="VARCHAR" property="defaultValue"/>
  15. </resultMap>
  16. <sql id="allColumns">
  17. `id`,`name`,`is_del`,`remark`,`type`,`sort`,`print_data_type`,`print_data_json`,`is_edit`,`default_value`
  18. </sql>
  19. <sql id="dynamicWhereConditions">
  20. where id &gt; 0
  21. <if test=" null != id ">
  22. and `id` = #{id}
  23. </if>
  24. <if test=" null != name ">
  25. and `name` like concat('%', #{name},'%')
  26. </if>
  27. <if test=" null != isDel ">
  28. and `is_del` = #{isDel}
  29. </if>
  30. <if test=" null != type ">
  31. and `type` = #{type}
  32. </if>
  33. <if test=" null != sort ">
  34. and `sort` = #{sort}
  35. </if>
  36. <if test=" null != isEdit ">
  37. and `is_edit` = #{isEdit}
  38. </if>
  39. <if test=" null != ids ">
  40. and id in
  41. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  42. #{idItem}
  43. </foreach>
  44. </if>
  45. <if test=" null != sortColumns">order by ${sortColumns}</if>
  46. </sql>
  47. <select id="findList" parameterType="com.iformall.domain.po.WxFinancePrintData" resultMap="BaseResultMap">
  48. select
  49. <include refid="allColumns"/>
  50. from wx_finance_print_data
  51. <include refid="dynamicWhereConditions"/>
  52. </select>
  53. </mapper>