package com.ruoyi.frequency.illegaldeductionrecord.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.controller.req.IllegalDeductionPageReq;
import com.ruoyi.controller.req.MonthReq;
import com.ruoyi.controller.resp.IllegalDeductionPageResp;
import com.ruoyi.frequency.illegaldeductionrecord.entity.IllegalDeductionRecord;
import com.ruoyi.frequency.illegaldeductionrecord.model.result.IllegalDeductionResp;
import com.ruoyi.frequency.illegaldeductionrecord.model.result.OrderInfoResp;
import com.ruoyi.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 扣款记录Mapper接口
 * 
 * @author liwenlong
 * @date 2023-11-08
 */
public interface IllegalDeductionRecordMapper  extends BaseMapper<IllegalDeductionRecord>
{
    /**
     * 查询扣款记录
     * 
     * @param id 扣款记录主键
     * @return 扣款记录
     */
    public IllegalDeductionRecord selectIllegalDeductionRecordById(Long id);

    /**
     * 查询扣款记录列表
     * 
     * @param illegalDeductionRecord 扣款记录
     * @return 扣款记录集合
     */
    public List<IllegalDeductionRecord> selectIllegalDeductionRecordList(IllegalDeductionRecord illegalDeductionRecord);

    /**
     * 新增扣款记录
     * 
     * @param illegalDeductionRecord 扣款记录
     * @return 结果
     */
    public int insertIllegalDeductionRecord(IllegalDeductionRecord illegalDeductionRecord);

    /**
     * 修改扣款记录
     * 
     * @param illegalDeductionRecord 扣款记录
     * @return 结果
     */
    public int updateIllegalDeductionRecord(IllegalDeductionRecord illegalDeductionRecord);

    Page<IllegalDeductionPageResp> illegalDeductionPage(@Param("page") Page<Object> objectPage, @Param("req")IllegalDeductionPageReq req,@Param("userVo") UserVo userVo);


    OrderInfoResp getOrderInfo(@Param("orderId") Long orderId);
}
