CcConferenceListMapper.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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.cc.mapper.CcConferenceListMapper">
  6. <resultMap type="CcConferenceList" id="CcConferenceListResult">
  7. <result property="id" column="id" />
  8. <result property="moderator" column="moderator" />
  9. <result property="userId" column="user_id" />
  10. <result property="startTime" column="start_time" />
  11. <result property="endTime" column="end_time" />
  12. <result property="timeLen" column="time_len" />
  13. <result property="confPassword" column="conf_password" />
  14. <result property="maxConcurrency" column="max_concurrency" />
  15. <result property="recordPath" column="record_path" />
  16. <result property="roomNo" column="room_no" />
  17. </resultMap>
  18. <sql id="selectCcConferenceListVo">
  19. select id, moderator, user_id, start_time, end_time, time_len, conf_password, max_concurrency, record_path, room_no from cc_conference_list
  20. </sql>
  21. <select id="selectCcConferenceListList" parameterType="CcConferenceList" resultMap="CcConferenceListResult">
  22. <include refid="selectCcConferenceListVo"/>
  23. <where>
  24. <if test="moderator != null and moderator != ''"> and moderator = #{moderator}</if>
  25. <if test="userId != null and userId != ''"> and user_id = #{userId}</if>
  26. <if test="startTime != null "> and start_time = #{startTime}</if>
  27. <if test="endTime != null "> and end_time = #{endTime}</if>
  28. <if test="timeLen != null "> and time_len = #{timeLen}</if>
  29. <if test="confPassword != null and confPassword != ''"> and conf_password = #{confPassword}</if>
  30. <if test="maxConcurrency != null "> and max_concurrency = #{maxConcurrency}</if>
  31. <if test="recordPath != null and recordPath != ''"> and record_path = #{recordPath}</if>
  32. <if test="roomNo != null and roomNo != ''"> and room_no = #{roomNo}</if>
  33. </where>
  34. </select>
  35. <select id="selectCcConferenceListById" parameterType="Long" resultMap="CcConferenceListResult">
  36. <include refid="selectCcConferenceListVo"/>
  37. where id = #{id}
  38. </select>
  39. <insert id="insertCcConferenceList" parameterType="CcConferenceList">
  40. insert into cc_conference_list
  41. <trim prefix="(" suffix=")" suffixOverrides=",">
  42. <if test="id != null">id,</if>
  43. <if test="moderator != null and moderator != ''">moderator,</if>
  44. <if test="userId != null and userId != ''">user_id,</if>
  45. <if test="startTime != null">start_time,</if>
  46. <if test="endTime != null">end_time,</if>
  47. <if test="timeLen != null">time_len,</if>
  48. <if test="confPassword != null and confPassword != ''">conf_password,</if>
  49. <if test="maxConcurrency != null">max_concurrency,</if>
  50. <if test="recordPath != null and recordPath != ''">record_path,</if>
  51. <if test="roomNo != null and roomNo != ''">room_no,</if>
  52. </trim>
  53. <trim prefix="values (" suffix=")" suffixOverrides=",">
  54. <if test="id != null">#{id},</if>
  55. <if test="moderator != null and moderator != ''">#{moderator},</if>
  56. <if test="userId != null and userId != ''">#{userId},</if>
  57. <if test="startTime != null">#{startTime},</if>
  58. <if test="endTime != null">#{endTime},</if>
  59. <if test="timeLen != null">#{timeLen},</if>
  60. <if test="confPassword != null and confPassword != ''">#{confPassword},</if>
  61. <if test="maxConcurrency != null">#{maxConcurrency},</if>
  62. <if test="recordPath != null and recordPath != ''">#{recordPath},</if>
  63. <if test="roomNo != null and roomNo != ''">#{roomNo},</if>
  64. </trim>
  65. </insert>
  66. <update id="updateCcConferenceList" parameterType="CcConferenceList">
  67. update cc_conference_list
  68. <trim prefix="SET" suffixOverrides=",">
  69. <if test="moderator != null and moderator != ''">moderator = #{moderator},</if>
  70. <if test="userId != null and userId != ''">user_id = #{userId},</if>
  71. <if test="startTime != null">start_time = #{startTime},</if>
  72. <if test="endTime != null">end_time = #{endTime},</if>
  73. <if test="timeLen != null">time_len = #{timeLen},</if>
  74. <if test="confPassword != null and confPassword != ''">conf_password = #{confPassword},</if>
  75. <if test="maxConcurrency != null">max_concurrency = #{maxConcurrency},</if>
  76. <if test="recordPath != null and recordPath != ''">record_path = #{recordPath},</if>
  77. <if test="roomNo != null and roomNo != ''">room_no = #{roomNo},</if>
  78. </trim>
  79. where id = #{id}
  80. </update>
  81. <delete id="deleteCcConferenceListById" parameterType="Long">
  82. delete from cc_conference_list where id = #{id}
  83. </delete>
  84. <delete id="deleteCcConferenceListByIds" parameterType="String">
  85. delete from cc_conference_list where id in
  86. <foreach item="id" collection="array" open="(" separator="," close=")">
  87. #{id}
  88. </foreach>
  89. </delete>
  90. </mapper>