后台服务
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

55 líneas
2.1 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.SysConfigValueMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.SysConfigValue">
  5. <id column="id" jdbcType="BIGINT" property="id"/>
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/>
  7. <result column="parent_tenant_id" jdbcType="VARCHAR" property="parentTenantId"/>
  8. <result column="config_item_id" jdbcType="BIGINT" property="configItemId"/>
  9. <result column="config_item_value" jdbcType="VARCHAR" property="configItemValue"/>
  10. <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
  11. <result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
  12. </resultMap>
  13. <sql id="allColumns">
  14. `id`,`tenant_id`,`parent_tenant_id`,`config_item_id`,`config_item_value`,`update_date`,`create_date`
  15. </sql>
  16. <sql id="dynamicWhereConditions">
  17. where 1=1
  18. <if test=" null != id ">
  19. and `id` = #{id}
  20. </if>
  21. <if test=" null != tenantId and '' != tenantId">
  22. and `tenant_id` = #{tenantId}
  23. </if>
  24. <if test=" null != parentTenantId and '' != parentTenantId">
  25. and `parent_tenant_id` = #{parentTenantId}
  26. </if>
  27. <if test=" null != configItemId ">
  28. and `config_item_id` = #{configItemId}
  29. </if>
  30. <if test=" null != configItemValue ">
  31. and `config_item_value` = #{configItemValue}
  32. </if>
  33. <if test=" null != ids ">
  34. and id in
  35. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  36. #{idItem}
  37. </foreach>
  38. </if>
  39. <if test=" null != sortColumns">order by ${sortColumns}</if>
  40. </sql>
  41. <select id="findByItemId" parameterType="com.iformall.domain.po.SysConfigValue" resultMap="BaseResultMap">
  42. select <include refid="allColumns"/> from sys_config_value
  43. where `config_item_id` = #{configItemId} and `tenant_id` = #{tenantId}
  44. </select>
  45. </mapper>