76 lines
1.7 KiB
Java
76 lines
1.7 KiB
Java
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);
|
|
|
|
/**
|
|
* 更新 del_flag 字段为删除标识
|
|
* @param cfg
|
|
* @return
|
|
*/
|
|
int deleteByCompileIds(String compileIds);
|
|
|
|
/**
|
|
* 查找 配置 下发 最新记录
|
|
* @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);
|
|
|
|
} |