/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.enums.ShopWalletAmountType;
import com.yami.shop.bean.enums.ShopWalletChangeReason;
import com.yami.shop.bean.model.ShopWallet;
import com.yami.shop.bean.model.ShopWalletLog;

/**
 * 商家钱包记录
 *
 * @author Dwl
 * @date 2019-09-19 14:02:57
 */
public interface ShopWalletLogService extends IService<ShopWalletLog> {

    /**
     * 插入店铺钱包日志
     * @param oldShopWallet 旧的钱包记录
     * @param newShopWallet 新的钱包记录
     * @param shopWalletChangeReason 改变原因
     * @param orderNumber 订单号
     * @return
     */
    void saveShopWalletLog(ShopWallet oldShopWallet, ShopWallet newShopWallet , ShopWalletChangeReason shopWalletChangeReason, String orderNumber);
}
