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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bonus.canteen.core.menu.dto.DrpUnitPageDTO;
import com.bonus.canteen.core.menu.vo.DrpUnitPageVO;
import com.bonus.canteen.core.supply.purchase.domain.bo.DrpUnit;
import com.bonus.canteen.core.supply.purchase.domain.bo.DrpUnitModel;
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 DrpUnitMapper extends BaseMapper<DrpUnit> {
    @Select({"select unit_id,unit_name,rate from drp_unit where unit_id = #{unitId}"})
    DrpUnitModel getUnit(@Param("unitId") Long unitId);
}
