示例#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);
 }