增加定时器功能
Conflicts: src/main/webapp/WEB-INF/views/cfg/ipaddr/ipList.jsp
This commit is contained in:
76
src/main/java/com/nis/web/dao/SchedulerDao.java
Normal file
76
src/main/java/com/nis/web/dao/SchedulerDao.java
Normal file
@@ -0,0 +1,76 @@
|
||||
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);
|
||||
|
||||
/**
|
||||
* 更新 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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user