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<ScheduleCfg> {
List<ScheduleCfg> findScheduleList(ScheduleCfg cfg);
/**
* 查找最新的修改数据
* @param id
* @param size
* @return
*/
List<ScheduleCfg> findNewlyCfg(@Param("id")Long id,@Param("limit")Long limit,@Param("type")int type,@Param("delFlag")Integer delFlag);
* 删除定时任务
* @param cfg
int deleteByCompileIds(@Param("compileIds")String compileIds,@Param("type")Integer type);
* 更新 del_flag 字段为删除标识
int inValidByCompileIds(@Param("compileIds")String compileIds);
* 查找 配置 下发 最新记录
* @param compileId
* @param isValid
ScheduleExceInfo findScheduleExceNew(ScheduleExceInfo se);
* 修改配置表状态
* @param tableName
int updateCfgTableStatus(@Param("tableName")String tableName,@Param("compileId")Integer compileId,@Param("isValid")Integer isValid);
* 查询 配置信息
BaseCfg getCfgTableInfo(@Param("tableName")String tableName,@Param("compileId")Integer compileId);
* 保存执行记录
* @param exceInfo
int insertScheduleExceLog(ScheduleExceInfo exceInfo);
* 保存最新记录表
int insertScheduleExceNew(ScheduleExceInfo exceInfo);
* 更新最新记录表
int updateScheduleExceNew(ScheduleExceInfo exceInfo);
}