package com.nis.web.dao; import java.util.List; import org.apache.ibatis.annotations.Param; import com.nis.domain.ScheduleCfg; import com.nis.domain.ScheduleExceInfo; import com.nis.domain.configuration.BaseCfg; @MyBatisDao public interface SchedulerDao extends CrudDao { List findScheduleList(ScheduleCfg cfg); /** * 查找最新的修改数据 * @param id * @param size * @return */ List findNewlyCfg(@Param("id")Long id,@Param("limit")Long limit,@Param("type")int type); /** * 更新 del_flag 字段为删除标识 * @param cfg * @return */ int deleteByCompileId(ScheduleCfg cfg); /** * 查找 配置 下发 最新记录 * @param compileId * @param isValid * @return */ ScheduleExceInfo findScheduleExceNew(ScheduleExceInfo se); /** * 修改配置表状态 * @param tableName * @param compileId * @param isValid * @return */ int updateCfgTableStatus(@Param("tableName")String tableName,@Param("compileId")Integer compileId,@Param("isValid")Integer isValid); /** * 查询 配置信息 * @param compileId * @return */ BaseCfg getCfgTableInfo(@Param("tableName")String tableName,@Param("compileId")Integer compileId); /** * 保存执行记录 * @param exceInfo * @return */ int insertScheduleExceLog(ScheduleExceInfo exceInfo); /** * 保存最新记录表 * @param exceInfo * @return */ int insertScheduleExceNew(ScheduleExceInfo exceInfo); /** * 更新最新记录表 * @param exceInfo * @return */ int updateScheduleExceNew(ScheduleExceInfo exceInfo); }