package cn.exrick.xboot.your.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import cn.exrick.xboot.your.entity.Equipment; import org.apache.ibatis.annotations.Select; import java.util.List; /** * 设备表表数据处理层 * @author zhangzeli */ public interface EquipmentMapper extends BaseMapper { @Select("select count(id) from t_equipment where type=#{arg0} and status=0") int countByTypeAndStatus(int type); }