package com.zxdmy.excite.system.mapper.cloud.account;

import com.zxdmy.excite.system.entity.cloud.account.CloudDepartment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxdmy.excite.system.entity.req.account.ReqDepartment;
import com.zxdmy.excite.system.entity.vo.account.DepartmentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 部门表 Mapper 接口
 * </p>
 *
 * @author ss
 * @since 2026-01-24
 */
@Mapper
public interface CloudDepartmentMapper extends BaseMapper<CloudDepartment> {
    ArrayList<DepartmentVo> queryByPage(@Param("page")Integer pageNo, @Param("size")Integer pageSize, @Param("data") ReqDepartment data);
    Integer queryByPageCount(@Param("data") ReqDepartment data);
    DepartmentVo getData(@Param("data") ReqDepartment data);
    List<CloudDepartment> getList(@Param("id") Long id);

    List<CloudDepartment> selectByCompanyId(@Param("companyId") Long companyId);

}
