package com.hzs.system.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzs.common.domain.system.sys.SysOperationLog;
import com.hzs.common.domain.system.sys.ext.SysOperationLogExt;
import com.hzs.system.sys.mapper.SysOperationLogMapper;
import com.hzs.system.sys.param.OperationLogParam;
import com.hzs.system.sys.service.ISysOperationLogService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 操作日志 服务实现类
 *
 * @author hzs
 * @since 2022-09-14
 */
@Service
public class SysOperationLogServiceImpl extends ServiceImpl<SysOperationLogMapper, SysOperationLog> implements ISysOperationLogService {

    @Override
    public int insertLog(SysOperationLog operationLog) {
        return baseMapper.insertLog(operationLog);
    }

    @Override
    public List<SysOperationLogExt> queryList(OperationLogParam param, Integer pkCountry) {
        return baseMapper.queryList(param, pkCountry);
    }

    /**
     * @description: 批量删除操作日志
     * @author: zhang jing
     * @date: 2024/1/30 11:29
     * @param: [syslog]
     * @return: boolean
     **/
    @Override
    public boolean delBatchSyslog(SysOperationLogExt syslog) {
        return baseMapper.delBatchSyslog(syslog);
    }



}
