package com.rj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rj.entity.QweiDepartment;

import java.util.Map;

public interface IQweiDepartmentService extends IService<QweiDepartment> {

    Map<String, Object> add(QweiDepartment entity);

    Map<String, Object> update(QweiDepartment entity);

    Map<String, Object> deleteById(String id);

    Map<String, Object> pageQuery(Integer current,
                                  Integer size,
                                  Long deptId,
                                  String deptName,
                                  Long parentDeptId);

    default Map<String, Object> syncFromQiWei() {
        return syncFromQiWei(null);
    }

    Map<String, Object> syncFromQiWei(String tenantId);
}

