| New file | 
 |  |  | 
 |  |  | package com.dy.pipIrrGlobal.daoIr; | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
 |  |  | import com.dy.pipIrrGlobal.pojoIr.IrPlanOperate; | 
 |  |  | import org.apache.ibatis.annotations.Mapper; | 
 |  |  | import org.apache.ibatis.annotations.Param; | 
 |  |  |  | 
 |  |  | import java.util.Date; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * @author ZhuBaoMin | 
 |  |  |  * @date 2025-02-21 11:11 | 
 |  |  |  * @LastEditTime 2025-02-21 11:11 | 
 |  |  |  * @Description | 
 |  |  |  */ | 
 |  |  |  | 
 |  |  | @Mapper | 
 |  |  | public interface IrPlanOperateMapper extends BaseMapper<IrPlanOperate> { | 
 |  |  |     int deleteByPrimaryKey(Long id); | 
 |  |  |  | 
 |  |  |     int insert(IrPlanOperate record); | 
 |  |  |  | 
 |  |  |     int insertSelective(IrPlanOperate record); | 
 |  |  |  | 
 |  |  |     IrPlanOperate selectByPrimaryKey(Long id); | 
 |  |  |  | 
 |  |  |     int updateByPrimaryKeySelective(IrPlanOperate record); | 
 |  |  |  | 
 |  |  |     int updateByPrimaryKey(IrPlanOperate record); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据计划ID获取终止时间 | 
 |  |  |      * @param planId | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     Date getTerminateTime(Long planId); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 获取最近一次计划终止的时间 | 
 |  |  |      * @param planTerminateLimitMinutes 计划终止后限制发布新计划的时间间隔(分钟) | 
 |  |  |      * @return 最近一次计划终止的时间,如果没有则返回null | 
 |  |  |      */ | 
 |  |  |     Date getLastTerminateTime(@Param("planTerminateLimitMinutes") Integer planTerminateLimitMinutes); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 获取最近一次终止的计划ID | 
 |  |  |      * @param planTerminateLimitMinutes 计划终止后限制发布新计划的时间间隔(分钟) | 
 |  |  |      * @return 最近一次终止的计划ID,如果没有则返回null | 
 |  |  |      */ | 
 |  |  |     Long getLastTerminatedPlanId(@Param("planTerminateLimitMinutes") Integer planTerminateLimitMinutes); | 
 |  |  | } |