后台服务
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

72 Zeilen
2.9 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.WxCustomizeModuleMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxCustomizeModule">
  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="theme_id" jdbcType="VARCHAR" property="themeId" />
  9. <result column="name" jdbcType="VARCHAR" property="name" />
  10. <result column="remarks" jdbcType="VARCHAR" property="remarks" />
  11. <result column="theme_type" jdbcType="INTEGER" property="themeType"/>
  12. <result column="icon" jdbcType="VARCHAR" property="icon" />
  13. <result column="style" jdbcType="VARCHAR" property="style" />
  14. <result column="link_type" jdbcType="INTEGER" property="linkType"/>
  15. <result column="link_url" jdbcType="VARCHAR" property="linkUrl" />
  16. <result column="out_link_appid" jdbcType="VARCHAR" property="outLinkAppid" />
  17. <result column="sort" jdbcType="INTEGER" property="sort"/>
  18. <result column="is_using" jdbcType="INTEGER" property="isUsing"/>
  19. <result column="create_date" property="createDate" />
  20. <result column="update_date" property="updateDate" />
  21. </resultMap>
  22. <sql id="allColumns">
  23. `id`,`tenant_id`,`parent_tenant_id`,`theme_id`,`name`,`remarks`,`theme_type`,`icon`,`style`,`link_type`,`link_url`,`out_link_appid`,
  24. `sort`,`is_using`,
  25. `create_date`,`update_date`
  26. </sql>
  27. <sql id="dynamicWhereConditions">
  28. where del_status = 0
  29. <if test=" null != id "> and `id` = #{id} </if>
  30. <if test=" null != tenantId and '' != tenantId">
  31. and `tenant_id` = #{tenantId}
  32. </if>
  33. <if test=" null != parentTenantId and '' != parentTenantId">
  34. and `parent_tenant_id` = #{parentTenantId}
  35. </if>
  36. <if test=" null != themeId">
  37. and `theme_id` = #{themeId}
  38. </if>
  39. <if test=" null != name and '' != name "> and `name` like concat('%', #{name},'%') </if>
  40. <if test=" null != themeType">
  41. and `theme_type` = #{themeType}
  42. </if>
  43. <if test=" null != linkType">
  44. and `link_type` = #{linkType}
  45. </if>
  46. <if test=" null != isUsing">
  47. and `is_using` = #{isUsing}
  48. </if>
  49. order by `is_using` desc, `sort` asc, `update_date` desc
  50. </sql>
  51. <select id="findList" parameterType="com.iformall.domain.po.WxCustomizeModule" resultMap="BaseResultMap">
  52. select
  53. <include refid="allColumns"/>
  54. from wx_customize_module
  55. <include refid="dynamicWhereConditions"/>
  56. </select>
  57. <update id="updateDel" parameterType="com.iformall.domain.po.WxCustomizeModule">
  58. update wx_customize_module set `del_status` = 1, update_date = now() where id = #{id};
  59. </update>
  60. <update id="updateDelByTenantId" parameterType="com.iformall.domain.po.WxCustomizeModule">
  61. update wx_customize_module set `del_status` = 1, update_date = now() where tenant_id = #{tenantId};
  62. </update>
  63. </mapper>