package com.ruoyi.frequency.orderpricerecord.service;

import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.enums.order.OrderPriceEnums;
import com.ruoyi.frequency.orderpricerecord.entity.OrderPriceRecord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 订单价格明细记录Service接口
 *
 * @author liwenlong
 * @date 2024-01-24
 */
public interface OrderPriceRecordService extends IService<OrderPriceRecord>
{
    /**
     * 查询订单价格明细记录
     *
     * @param id 订单价格明细记录主键
     * @return 订单价格明细记录
     */
    public OrderPriceRecord selectOrderPriceRecordById(Long id);

    /**
     * 查询订单价格明细记录列表
     *
     * @param orderPriceRecord 订单价格明细记录
     * @return 订单价格明细记录集合
     */
    public List<OrderPriceRecord> selectOrderPriceRecordList(OrderPriceRecord orderPriceRecord);

    /**
     * 新增订单价格明细记录
     *
     * @param orderPriceRecord 订单价格明细记录
     * @return 结果
     */
    public int insertOrderPriceRecord(OrderPriceRecord orderPriceRecord);

    /**
     * 修改订单价格明细记录
     *
     * @param orderPriceRecord 订单价格明细记录
     * @return 结果
     */
    public int updateOrderPriceRecord(OrderPriceRecord orderPriceRecord);

    /**
     * 批量删除订单价格明细记录
     *
     * @param ids 需要删除的订单价格明细记录主键集合
     * @return 结果
     */
    public int deleteOrderPriceRecordByIds(Long[] ids,Integer delFlag);

    /**
     * 订单金额流水
     * @param orderPriceEnums
     * @param id
     * @param amount
     */
    void addOrderPriceRecord(OrderPriceEnums orderPriceEnums, Long id, BigDecimal amount);
}
