package com.ruoyi.oa.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.oa.domain.OaFeedback;
import com.ruoyi.oa.domain.vo.OaFeedbackVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

/**
 * 问题反馈Mapper接口
 *
 * @author ruoyi
 * @date 2025-03-28
 */
public interface OaFeedbackMapper extends BaseMapperPlus<OaFeedbackMapper, OaFeedback, OaFeedbackVo> {

    Page<OaFeedbackVo> selectVoPageAndStatus(@Param("page") Page<OaFeedbackVo> build, @Param(Constants.WRAPPER) QueryWrapper<OaFeedback> lqw);

    int updateToRead(@Param("feedbackId") Long feedbackId, @Param("userId") Long userId);

    void insertItem(Long feedbackId);

    int delItem(@Param("feedbackId") Long feedbackId, @Param("userId") Long userId);
}
