package com.ruoyi.frequency.appealdetail.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.controller.req.AppealMessagePageReq;
import com.ruoyi.controller.resp.AppealMessagePageResp;
import com.ruoyi.frequency.appealdetail.entity.AppealDetail;
import com.ruoyi.vo.UserVo;
import org.apache.ibatis.annotations.Param;

/**
 * 申诉详情Mapper接口
 * 
 * @author zj
 * @date 2023-10-13
 */
public interface AppealDetailMapper  extends BaseMapper<AppealDetail>
{
    /**
     * 查询申诉详情
     * 
     * @param id 申诉详情主键
     * @return 申诉详情
     */
    public AppealDetail selectAppealDetailById(Long id);

    /**
     * 查询申诉详情列表
     * 
     * @param appealDetail 申诉详情
     * @return 申诉详情集合
     */
    public List<AppealDetail> selectAppealDetailList(AppealDetail appealDetail);

    /**
     * 新增申诉详情
     * 
     * @param appealDetail 申诉详情
     * @return 结果
     */
    public int insertAppealDetail(AppealDetail appealDetail);

    /**
     * 修改申诉详情
     * 
     * @param appealDetail 申诉详情
     * @return 结果
     */
    public int updateAppealDetail(AppealDetail appealDetail);

    /**
     * 删除申诉详情
     * 
     * @param id 申诉详情主键
     * @return 结果
     */
    public int deleteAppealDetailById(Long id);

    /**
     * 批量删除申诉详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppealDetailByIds(Long[] ids);

    Page<AppealMessagePageResp> appealMessagePage(@Param("page") Page<Object> objectPage, @Param("req")AppealMessagePageReq req, @Param("userVo") UserVo userVo);
}
