blob: 139e0e1b373adebd020aec48af7c06cc0729edb4 [file] [log] [blame]
visionegg7a4c2c02025-05-19 14:36:12 +08001<?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.ruoyi.system.mapper.SysTorrentCommentMapper">
4 <insert id="insertComment" parameterType="com.ruoyi.system.domain.SysTorrentComment">
5 insert into sys_torrent_comment (torrent_id, user_id, content, parent_id, create_time)
6 values (#{torrentId}, #{userId}, #{content}, #{parentId}, sysdate())
7 </insert>
8 <select id="selectCommentListByTorrentId" resultType="com.ruoyi.system.domain.SysTorrentComment">
9 select comment_id, torrent_id, user_id, content, parent_id, create_time
10 from sys_torrent_comment
11 where torrent_id = #{torrentId}
12 order by create_time desc
13 </select>
14 <delete id="deleteCommentById">
15 delete from sys_torrent_comment where comment_id = #{commentId}
16 </delete>
17</mapper>