猫妈狗爸伴宠师小程序后端代码
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.

90 lines
4.6 KiB

3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruoyi.model.mapper.AppletConfigMapper">
  6. <resultMap type="AppletConfig" id="AppletConfigResult">
  7. <result property="id" column="id" />
  8. <result property="paramCode" column="param_code" />
  9. <result property="paramValueText" column="param_value_text" />
  10. <result property="paramValueImage" column="param_value_image" />
  11. <result property="paramValueArea" column="param_value_area" />
  12. <result property="delFlag" column="del_flag" />
  13. <result property="createBy" column="create_by" />
  14. <result property="createTime" column="create_time" />
  15. <result property="updateBy" column="update_by" />
  16. <result property="updateTime" column="update_time" />
  17. </resultMap>
  18. <sql id="selectAppletConfigVo">
  19. select id, param_code, param_value_text, param_value_image, param_value_area, del_flag, create_by, create_time, update_by, update_time from applet_config
  20. </sql>
  21. <select id="selectAppletConfigList" parameterType="AppletConfig" resultMap="AppletConfigResult">
  22. <include refid="selectAppletConfigVo"/>
  23. <where>
  24. <if test="paramCode != null and paramCode != ''"> and param_code = #{paramCode}</if>
  25. <if test="paramValueText != null and paramValueText != ''"> and param_value_text = #{paramValueText}</if>
  26. <if test="paramValueImage != null and paramValueImage != ''"> and param_value_image = #{paramValueImage}</if>
  27. <if test="paramValueArea != null and paramValueArea != ''"> and param_value_area = #{paramValueArea}</if>
  28. </where>
  29. </select>
  30. <select id="selectAppletConfigById" parameterType="Long" resultMap="AppletConfigResult">
  31. <include refid="selectAppletConfigVo"/>
  32. where id = #{id}
  33. </select>
  34. <insert id="insertAppletConfig" parameterType="AppletConfig" useGeneratedKeys="true" keyProperty="id">
  35. insert into applet_config
  36. <trim prefix="(" suffix=")" suffixOverrides=",">
  37. <if test="paramCode != null">param_code,</if>
  38. <if test="paramValueText != null">param_value_text,</if>
  39. <if test="paramValueImage != null">param_value_image,</if>
  40. <if test="paramValueArea != null">param_value_area,</if>
  41. <if test="delFlag != null">del_flag,</if>
  42. <if test="createBy != null">create_by,</if>
  43. <if test="createTime != null">create_time,</if>
  44. <if test="updateBy != null">update_by,</if>
  45. <if test="updateTime != null">update_time,</if>
  46. </trim>
  47. <trim prefix="values (" suffix=")" suffixOverrides=",">
  48. <if test="paramCode != null">#{paramCode},</if>
  49. <if test="paramValueText != null">#{paramValueText},</if>
  50. <if test="paramValueImage != null">#{paramValueImage},</if>
  51. <if test="paramValueArea != null">#{paramValueArea},</if>
  52. <if test="delFlag != null">#{delFlag},</if>
  53. <if test="createBy != null">#{createBy},</if>
  54. <if test="createTime != null">#{createTime},</if>
  55. <if test="updateBy != null">#{updateBy},</if>
  56. <if test="updateTime != null">#{updateTime},</if>
  57. </trim>
  58. </insert>
  59. <update id="updateAppletConfig" parameterType="AppletConfig">
  60. update applet_config
  61. <trim prefix="SET" suffixOverrides=",">
  62. <if test="paramCode != null">param_code = #{paramCode},</if>
  63. <if test="paramValueText != null">param_value_text = #{paramValueText},</if>
  64. <if test="paramValueImage != null">param_value_image = #{paramValueImage},</if>
  65. <if test="paramValueArea != null">param_value_area = #{paramValueArea},</if>
  66. <if test="delFlag != null">del_flag = #{delFlag},</if>
  67. <if test="createBy != null">create_by = #{createBy},</if>
  68. <if test="createTime != null">create_time = #{createTime},</if>
  69. <if test="updateBy != null">update_by = #{updateBy},</if>
  70. <if test="updateTime != null">update_time = #{updateTime},</if>
  71. </trim>
  72. where id = #{id}
  73. </update>
  74. <delete id="deleteAppletConfigById" parameterType="Long">
  75. delete from applet_config where id = #{id}
  76. </delete>
  77. <delete id="deleteAppletConfigByIds" parameterType="String">
  78. delete from applet_config where id in
  79. <foreach item="id" collection="array" open="(" separator="," close=")">
  80. #{id}
  81. </foreach>
  82. </delete>
  83. </mapper>