|  |  |  | 
|---|
|  |  |  | 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 | 
|---|
|  |  |  | 
|---|
|  |  |  | 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); | 
|---|
|  |  |  | } | 
|---|