package com.zcloud.primeport.persistence.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jjb.saas.framework.datascope.annotation.DataScope;
import com.jjb.saas.framework.datascope.annotation.DataScopes;
import com.zcloud.primeport.persistence.dataobject.ClosedAreaPersonApplyDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zcloud.primeport.persistence.dataobject.ClosedAreaPersonApplyDeptDO;
import com.zcloud.primeport.persistence.dataobject.UserDto;
import com.zcloud.primeport.plan.mjDevice.TwoPersonUtil;
import com.zcloud.primeport.plan.mjDevice.dto.TwoLevelUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* web-infrastructure
* @Author dearLin
* @Date 2026-03-19 13:59:16
*/
@Mapper
@DataScopes(
        @DataScope(method = "listPage", menuPerms = "")
)
public interface ClosedAreaPersonApplyMapper extends BaseMapper<ClosedAreaPersonApplyDO> {

    IPage<UserDto> getCorpUserList(IPage<ClosedAreaPersonApplyDO> iPage, @Param("params") Map<String, Object> params);

    IPage<ClosedAreaPersonApplyDO> listPage(Page<Map<String, Object>> page, @Param("params") Map<String, Object> params, String menuPerms);

    List<TwoLevelUser> getDockAuthInfoById(Long applyId);

    List<ClosedAreaPersonApplyDeptDO> deptList();

    List<TwoLevelUser> getDockAuthTmpInfoById(Long applyId);
}

