/** * 分页查找OperLog * * @param cond 查询条件 * @return OperLog列表 */ public List<OperLog> findOperLogPage(OperLogCond cond) throws RuntimeException { int recordCount = operLogMapper.findOperLogCount(cond); cond.recordCount = recordCount; return operLogMapper.findOperLogPage(cond); }
/** 查找根据userId与日志数 */ @Override public List<Map> findByUserIdAndLogCount(OperLogCond operCond) throws RuntimeException { return operLogMapper.findByUserIdAndLogCount(operCond); }
/** 查找记录数 */ @Override public int findOperLogCount(OperLogCond operCond) throws RuntimeException { return operLogMapper.findOperLogCount(operCond); }
/** * 查找全部OperLog * * @param cond 查询条件 * @return OperLog列表 */ public List<OperLog> findOperLog(OperLogCond cond) throws RuntimeException { return operLogMapper.findOperLog(cond); }
/** * 修改OperLog * * @param operLog */ @Override public void updateOperLog(OperLog operLog) throws RuntimeException { operLogMapper.updateOperLog(operLog); }
/** * 查找一条OperLog * * @return OperLog * @param id 主键id */ @Override public OperLog findOperLogById(int id) throws RuntimeException { return operLogMapper.findOperLogById(id); }
/** * 新增OperLog * * @param operLog */ public void addOperLog(OperLog operLog) throws RuntimeException { operLog.setLogTime(new Date()); operLogMapper.addOperLog(operLog); }
/** * 删除一条OperLog * * @param id */ public void deleteOperLog(int id) throws RuntimeException { operLogMapper.deleteOperLog(id); }
/** 根据项目查找 */ @Override public List<Map> findByProjectId(OperLogCond operCond) throws RuntimeException { return operLogMapper.findByProjectId(operCond); }