package com.bonus.canteen.core.drp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.drp.model.DrpSupplier;
import com.bonus.canteen.core.drp.vo.DrpListSupplierVO;
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 DrpSupplierMapper extends BaseMapper<DrpSupplier> {
   @Select({"select supplier_id, supplier_num, supplier_name, address from drp_supplier where status = #{status} and area_id = #{areaId} and del_flag = #{delFlag}"})
   List<DrpListSupplierVO> selectSupplierListAndroid(@Param("status") Integer status, @Param("areaId") Long areaId, @Param("delFlag") Integer delFlag);

}
