feat(admin): 举报工单返回短剧与分集信息
This commit is contained in:
1 parent
6ddddef5ec
commit
9a74876b3f
8 files changed
+727
-4
No files matched your search
+25
@@ -4,6 +4,31 @@ package com.fruitshorts.interaction.dal.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.fruitshorts.interaction.dal.entity.ContentComment;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public interface ContentCommentMapper extends BaseMapper<ContentComment> {
|
||||
|
||||
/**
|
||||
* 后台举报工单按评论 id 批量读取,包含逻辑删除记录。
|
||||
*
|
||||
* <p>普通 BaseMapper 查询会自动追加 deleted = 0,无法判断被举报评论是否已删除;
|
||||
* 这里显式列出字段并绕过逻辑删除过滤。
|
||||
*/
|
||||
@Select("""
|
||||
<script>
|
||||
SELECT id, drama_id, episode_id, user_id, parent_id, root_id, content, status,
|
||||
audit_type, audit_reason, like_count, reply_count, report_count, ip,
|
||||
device_id, country_code, created_at, updated_at, deleted
|
||||
FROM content_comment
|
||||
WHERE id IN
|
||||
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</script>
|
||||
""")
|
||||
List<ContentComment> selectByIdsIncludingDeleted(@Param("ids") Collection<Long> ids);
|
||||
}
|
||||
Reference in new issue
Block a user