package com.ibeetl.admin.console.service;

import com.ibeetl.admin.console.dao.AuditConsoleDao;
import com.ibeetl.admin.core.entity.CoreAudit;
import com.ibeetl.admin.core.service.CoreBaseService;
import org.beetl.sql.core.page.PageRequest;
import org.beetl.sql.core.page.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class AuditConsoleService extends CoreBaseService<CoreAudit> {

  @Autowired
  AuditConsoleDao auditConsoleDao;

  /**
   * 根据条件查询
   */
  public void queryByCondtion(PageRequest<CoreAudit> query) {

    PageResult<CoreAudit> ret = auditConsoleDao.queryByCondtion(query);
    handleStrDictValueFields(ret.getList());
  }

}
