Пример #1
0
  /**
   * 分页查找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);
  }
Пример #2
0
 /** 查找根据userId与日志数 */
 @Override
 public List<Map> findByUserIdAndLogCount(OperLogCond operCond) throws RuntimeException {
   return operLogMapper.findByUserIdAndLogCount(operCond);
 }
Пример #3
0
 /** 查找记录数 */
 @Override
 public int findOperLogCount(OperLogCond operCond) throws RuntimeException {
   return operLogMapper.findOperLogCount(operCond);
 }
Пример #4
0
 /**
  * 查找全部OperLog
  *
  * @param cond 查询条件
  * @return OperLog列表
  */
 public List<OperLog> findOperLog(OperLogCond cond) throws RuntimeException {
   return operLogMapper.findOperLog(cond);
 }
Пример #5
0
 /**
  * 修改OperLog
  *
  * @param operLog
  */
 @Override
 public void updateOperLog(OperLog operLog) throws RuntimeException {
   operLogMapper.updateOperLog(operLog);
 }
Пример #6
0
 /**
  * 查找一条OperLog
  *
  * @return OperLog
  * @param id 主键id
  */
 @Override
 public OperLog findOperLogById(int id) throws RuntimeException {
   return operLogMapper.findOperLogById(id);
 }
Пример #7
0
 /**
  * 新增OperLog
  *
  * @param operLog
  */
 public void addOperLog(OperLog operLog) throws RuntimeException {
   operLog.setLogTime(new Date());
   operLogMapper.addOperLog(operLog);
 }
Пример #8
0
 /**
  * 删除一条OperLog
  *
  * @param id
  */
 public void deleteOperLog(int id) throws RuntimeException {
   operLogMapper.deleteOperLog(id);
 }
Пример #9
0
 /** 根据项目查找 */
 @Override
 public List<Map> findByProjectId(OperLogCond operCond) throws RuntimeException {
   return operLogMapper.findByProjectId(operCond);
 }