package com.tmerclub.cloud.order.service;

import com.tmerclub.cloud.order.bo.OrderVirtualInfoLogBO;
import com.tmerclub.cloud.order.bo.mongo.MongoOrderVirtualInfoLogBO;

import java.util.List;

/**
 * @author TRACK
 */
public interface OrderVirtualInfoLogService {

    /**
     * 保存核销日志到mongo
     * @param mongoOrderVirtualInfoLogBO
     */
    void saveLog(MongoOrderVirtualInfoLogBO mongoOrderVirtualInfoLogBO);

    /**
     * 批量保存核销日志到mongodb
     * @param mongoOrderVirtualInfoLogBOList
     */
    void saveBatch(List<MongoOrderVirtualInfoLogBO> mongoOrderVirtualInfoLogBOList);

    /**
     * 根据订单id获取核销记录
     * @param orderId
     * @return
     */
    List<OrderVirtualInfoLogBO> getByOrderId(Long orderId);

    /**
     * 根据核销码获取核销记录
     * @param writeOffCode
     * @return
     */
    List<OrderVirtualInfoLogBO> getByWriteOffCode(String writeOffCode);
}
