package com.ruoyi.frequency.orderchangerecord.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.page.PageResult;
import com.ruoyi.controller.req.OrderChangeRecordPageReq;
import com.ruoyi.frequency.orderchangerecord.entity.OrderChangeRecord;
import com.ruoyi.response.ResponseData;
import com.ruoyi.vo.UserVo;

import java.util.List;

/**
 * 订单改价记录Service接口
 * 
 * @author zj
 * @date 2023-10-13
 */
public interface OrderChangeRecordService extends IService<OrderChangeRecord>
{
    /**
     * 查询订单改价记录
     * 
     * @param id 订单改价记录主键
     * @return 订单改价记录
     */
    public OrderChangeRecord selectOrderChangeRecordById(Long id);

    /**
     * 查询订单改价记录列表
     * 
     * @param orderChangeRecord 订单改价记录
     * @return 订单改价记录集合
     */
    public List<OrderChangeRecord> selectOrderChangeRecordList(OrderChangeRecord orderChangeRecord);

    /**
     * 新增订单改价记录
     * 
     * @param orderChangeRecord 订单改价记录
     * @return 结果
     */
    public int insertOrderChangeRecord(OrderChangeRecord orderChangeRecord);

    /**
     * 修改订单改价记录
     * 
     * @param orderChangeRecord 订单改价记录
     * @return 结果
     */
    public int updateOrderChangeRecord(OrderChangeRecord orderChangeRecord);

    /**
     * 批量删除订单改价记录
     * 
     * @param ids 需要删除的订单改价记录主键集合
     * @return 结果
     */
    public int deleteOrderChangeRecordByIds(Long[] ids);

    /**
     * 删除订单改价记录信息
     * 
     * @param id 订单改价记录主键
     * @return 结果
     */
    public int deleteOrderChangeRecordById(Long id);


    /**
     * 订单调价记录
     * @param req
     * @param userVo
     * @return
     */
    ResponseData<PageResult<Page<OrderChangeRecord>>> orderChangeRecordPage(OrderChangeRecordPageReq req, UserVo userVo);
}
