package org.jeecg.modules.plan.mapper;

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

import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.plan.entity.Plan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 检修计划
 * @Author: jeecg-boot
 * @Date:   2025-01-16
 * @Version: V1.0
 */
public interface PlanMapper extends BaseMapper<Plan> {

    @Select("SELECT device_id,count(id) as num FROM bu_plan WHERE cal_day > now() GROUP BY device_id")
    List<Map<String, Long>> queryRegularPlan();

}
