package com.yc.ship.module.trade.dal.mysql.supplier;

import com.yc.ship.framework.mybatis.core.mapper.BaseMapperX;
import com.yc.ship.framework.tenant.core.aop.TenantIgnore;
import com.yc.ship.module.trade.controller.admin.supplier.vo.SupplierRespVO;
import com.yc.ship.module.trade.dal.dataobject.supplier.TradeSupplierOrderDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 供应商订单 Mapper
 *
 * @author 管理员
 */
@Mapper
public interface TradeSupplierOrderMapper extends BaseMapperX<TradeSupplierOrderDO> {

    Map<String,Long> selectSupplierOrderSuccessCount(@Param("orderId") Long orderId);

    @TenantIgnore
    int selectSupplierOrderNoCheckCount(@Param("orderId") Long orderId);

    List<Map<String,Object>> getPlatformOrderList(@Param("orderId") Long orderId);
    void deleteOrderById(@Param("id") Long id);

    @TenantIgnore
    List<SupplierRespVO> selectSupplierByUserId(@Param("userId") Long userId);
}
