class AuditLogServiceImpl extends AbstractBaseService<AuditLogEntity> implements AuditLogService {

	@Override
	public AuditLogResponse logList(AuditLogRequest auditLogRequest) {
		Map<String, Object> conditionMap = new HashMap<>();
		if (StringUtils.isNotEmpty(auditLogRequest.getTbName())) {
			conditionMap.put(AuditLogEntity.FdTbName, auditLogRequest.getTbName());
		}
		if (StringUtils.isNotEmpty(auditLogRequest.getRefId())) {
			conditionMap.put(AuditLogEntity.FdRefId, auditLogRequest.getRefId());
		}
		if (StringUtils.isNotEmpty(auditLogRequest.getContent())) {
			conditionMap.put(AuditLogEntity.FdContent, auditLogRequest.getContent());
		}
		if (StringUtils.isNotEmpty(auditLogRequest.getId())) {
			conditionMap.put(AuditLogEntity.FdId, Long.valueOf(auditLogRequest.getId()));
		}
		Long count = count(conditionMap);
		if (count == 0) {
			return new AuditLogResponse(count, null);
		}
		return new AuditLogResponse(count, getList(conditionMap, Long.valueOf(auditLogRequest.getPage()),
				Long.valueOf(auditLogRequest.getLimit())));

	}

}