package com.trade.service.trade.salesorder.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.trade.service.trade.salesorder.domain.SalesOrder;
import com.trade.service.trade.salesorder.vo.SalesOrder4CustomsDeclarationVO;
import com.trade.service.trade.salesorder.vo.SalesOrderSearch;
import com.trade.service.trade.salesorder.vo.SalesOrderVO;

import java.util.List;

/**
 * <p>
 * 销售订单表 Mapper 接口
 * </p>
 *
 * @author zhangchenm
 * @since 2024-09-06
 */
public interface SalesOrderMapper extends BaseMapper<SalesOrder> {

    List<SalesOrderVO> queryListBySearch(SalesOrderSearch search);

    List<SalesOrder4CustomsDeclarationVO> queryOrderNo4GetCustomsDeclaration();

    int updateCustomsDeclarationStatusFinishedByOrderNo(String orderNo);
}
