package com.hzya.frame.plugin.lets.dao;

import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.SoSaleEntity;
import com.hzya.frame.plugin.lets.u8cdto.QuantityHandDto;
import com.hzya.frame.plugin.lets.u8cdto.QuantityHandResultDto;

import java.util.List;

/**
 * (so_sale: table)表数据库访问层
 *
 * @author makejava
 * @since 2023-08-16 15:49:53
 */
public interface ISoSaleDao extends IBaseDao<SoSaleEntity, String> {
    /**
     * 查询U8C销售订单
     *
     * @author liuyang
     */
    List<SoSaleEntity> querySoSaleEntity(SoSaleEntity soSaleEntity) throws Exception;

    /**
     * 查询现存量(发货库存组织、仓库、公司)
     *
     * @author liuyang
     */
    List<QuantityHandResultDto> queryQuantityHand(QuantityHandDto soSaleEntity) throws Exception;

    /**
     * 查询现存量(发货库存组织、仓库、公司、货位)
     *
     * @author liuyang
     */
    List<QuantityHandResultDto> queryQuantityHandV2(QuantityHandDto soSaleEntity) throws Exception;


    void updateSoSale(SoSaleEntity soSaleEntity) throws Exception;
}
