package com.zcloud.fire.check.persistence.repository.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jjb.saas.framework.repository.repo.impl.BaseRepositoryImpl;
import com.zcloud.fire.check.persistence.dataobject.DepartmentDO;
import com.zcloud.fire.check.persistence.mapper.DepartmentMapper;
import com.zcloud.fire.check.persistence.repository.DepartmentRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * web-infrastructure
 *
 * @Author zhaokai
 * @Date 2025-10-29 16:03:20
 */
@Service
@RequiredArgsConstructor
public class DepartmentRepositoryImpl extends BaseRepositoryImpl<DepartmentMapper, DepartmentDO> implements DepartmentRepository {
    private final DepartmentMapper departmentMapper;


    @Override
    public List<DepartmentDO> listByCorpinfoId(Long corpinfoId) {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("corpinfo_id", corpinfoId);
        return list(queryWrapper);
    }
}

