package com.ktg.iscs.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ktg.iscs.domain.IsException;
import com.ktg.iscs.mapper.IsExceptionMapper;
import com.ktg.iscs.service.IIsExceptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 异常记录Service业务层处理
 *
 * @author cgj
 * @date 2025-03-06
 */
@Service
public class IsExceptionServiceImpl extends ServiceImpl<IsExceptionMapper, IsException> implements IIsExceptionService {

    @Autowired
    private IsExceptionMapper isExceptionMapper;

    @Override
    public Page<IsException> getIsExceptionPage(Page<IsException> page, IsException isException) {
        Page<IsException> result = isExceptionMapper.getIsExceptionPage(page, isException);
        return result;
    }

    @Override
    public IsException selectIsExceptionById(Long exceptionId) {
        return isExceptionMapper.selectIsExceptionById(exceptionId);
    }

}
