package com.yh.saas.plugin.yiliangyiyun.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.yh.saas.plugin.yiliangyiyun.entity.FreightReceivingDispatching;
import com.baomidou.mybatisplus.service.IService;
import com.yh.saas.plugin.yiliangyiyun.entity.FreightReceivingDispatchingCar;
import com.yh.saas.plugin.yiliangyiyun.entity.ReceivingUser;

/**
 * <p>
 * 货运收发信息 服务类
 * </p>
 *
 * @author Gongdc
 * @since 2021-08-19
 */
public interface IFreightReceivingDispatchingService extends IService<FreightReceivingDispatching> {

    /**
     * 货运收发列表
     *
     * @param freightReceivingDispatching
     * @return
     */
    Page<FreightReceivingDispatching> selectFreightReceivingDispatchingPage(FreightReceivingDispatching freightReceivingDispatching);

    /**
     * 删除信息
     *
     * @param id
     */
    void deleteFreightReceivingDispatching(String id);

    /**
     * 添加
     * @param freightReceivingDispatching
     * @return
     */
    String insertFreightReceivingDispatching(FreightReceivingDispatching freightReceivingDispatching);
    /**
     * 查看详情
     * @param id
     * @return
     */
    FreightReceivingDispatching getFreightReceivingDispatching(String id);

    /**
     * 添加发车信息
     *
     * @param freightReceivingDispatchingCar
     * @return
     */
    String insertFreightReceivingDispatchingCar(FreightReceivingDispatchingCar freightReceivingDispatchingCar);

    /**
     * 付扣运费款
     *
     * @param freightReceivingDispatchingCar
     * @return
     */
   String paymentAndDeductionfreight(FreightReceivingDispatchingCar freightReceivingDispatchingCar);

    /**
     * 付扣货款
     *
     * @param freightReceivingDispatchingCar
     * @return
     */
   String PaymentDeduction(FreightReceivingDispatchingCar freightReceivingDispatchingCar);

    /**
     * 确认收货
     *
     * @param freightReceivingDispatchingCar
     * @return
     */
   String confirmFreightReceivingDispatchingCar(FreightReceivingDispatchingCar freightReceivingDispatchingCar);

    /**
     * 添加收货人
     *
     * @param receivingUser
     * @return
     */
    String insertReceivingUser(ReceivingUser receivingUser);
}
