package com.zhitan.airconditioner.mapper;
|
|
import java.util.List;
|
import java.util.Date;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.zhitan.airconditioner.domain.AirConditionerSchedule;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
/**
|
* 空调定时任务Mapper接口
|
*
|
* @author zhitan
|
*/
|
@Mapper
|
public interface AirConditionerScheduleMapper extends BaseMapper<AirConditionerSchedule>
|
{
|
/**
|
* 查询空调定时任务列表
|
*
|
* @param airConditionerSchedule 空调定时任务信息
|
* @return 空调定时任务集合
|
*/
|
public List<AirConditionerSchedule> selectAirConditionerScheduleList(AirConditionerSchedule airConditionerSchedule);
|
|
/**
|
* 查询空调定时任务信息
|
*
|
* @param id 空调定时任务ID
|
* @return 空调定时任务信息
|
*/
|
public AirConditionerSchedule selectAirConditionerScheduleById(Long id);
|
|
/**
|
* 根据空调ID查询定时任务列表
|
*
|
* @param airConditionerId 空调ID
|
* @return 定时任务列表
|
*/
|
public List<AirConditionerSchedule> selectAirConditionerScheduleByAirConditionerId(Long airConditionerId);
|
|
/**
|
* 查询当前时间内需要执行的定时任务
|
*
|
* @param currentTime 当前时间
|
* @return 定时任务列表
|
*/
|
public List<AirConditionerSchedule> selectActiveSchedules(@Param("currentTime") Date currentTime);
|
|
/**
|
* 根据时间点查询需要执行的定时任务
|
* 查询开始时间或结束时间与指定时间点匹配的任务
|
*
|
* @param timePoint 时间点,格式为HH:mm
|
* @return 定时任务列表
|
*/
|
public List<AirConditionerSchedule> selectSchedulesByTimePoint(@Param("timePoint") String timePoint);
|
|
/**
|
* 新增空调定时任务
|
*
|
* @param airConditionerSchedule 空调定时任务信息
|
* @return 结果
|
*/
|
public int insertAirConditionerSchedule(AirConditionerSchedule airConditionerSchedule);
|
|
/**
|
* 修改空调定时任务
|
*
|
* @param airConditionerSchedule 空调定时任务信息
|
* @return 结果
|
*/
|
public int updateAirConditionerSchedule(AirConditionerSchedule airConditionerSchedule);
|
|
/**
|
* 删除空调定时任务
|
*
|
* @param id 空调定时任务ID
|
* @return 结果
|
*/
|
public int deleteAirConditionerScheduleById(Long id);
|
|
/**
|
* 批量删除空调定时任务
|
*
|
* @param ids 需要删除的数据ID
|
* @return 结果
|
*/
|
public int deleteAirConditionerScheduleByIds(Long[] ids);
|
|
/**
|
* 根据空调ID删除定时任务
|
*
|
* @param airConditionerId 空调ID
|
* @return 结果
|
*/
|
public int deleteAirConditionerScheduleByAirConditionerId(String airConditionerId);
|
}
|