package com.bonus.canteen.core.supply.purchase.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.supply.purchase.domain.bo.DrpSupplier;
import com.bonus.canteen.core.supply.purchase.domain.param.DrpSupplierQueryDTO;
import com.bonus.canteen.core.supply.purchase.domain.vo.DrpSupplierMainInfoVO;
import com.bonus.canteen.core.supply.purchase.domain.vo.DrpSupplierVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DrpPurchaseSupplierMapper extends BaseMapper<DrpSupplier> {
    @Select({"select a.supplier_id,a.supplier_name from drp_supplier a where a.supplier_user_id = #{userId}"})
    DrpSupplierVO listSupplierByUserId(@Param("userId") Long userId);
    DrpSupplierMainInfoVO getSupplierMainInfoById(@Param("supplierId") Long supplierId);
    List<DrpSupplierVO> listSupplier(@Param("status") Integer status, @Param("delFlag") Integer delFlag, @Param("content") DrpSupplierQueryDTO content);
}
