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

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzs.common.domain.system.sys.SysApprovalItem;
import com.hzs.common.domain.system.sys.ext.SysApprovalItemExt;
import com.hzs.system.sys.mapper.SysApprovalItemMapper;
import com.hzs.system.sys.service.ISysApprovalItemService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 审批配置项表 服务实现类
 *
 * @author hzs
 * @since 2022-09-15
 */
@Service
public class SysApprovalItemServiceImpl extends ServiceImpl<SysApprovalItemMapper, SysApprovalItem> implements ISysApprovalItemService {

    @Override
    public List<SysApprovalItemExt> queryListByApproval(Integer pkApproval) {
        return baseMapper.queryListByApproval(pkApproval);
    }

    @Override
    public Integer itemExistByUserAndDept(Long userId, Long deptId) {
        return baseMapper.itemExistByUserAndDept(userId, deptId);
    }

}
