package com.zcloud.personnel.positioning.persistence.mapper;

import com.zcloud.personnel.positioning.persistence.dataobject.OrgLocalCorpDO;
import com.zcloud.personnel.positioning.persistence.dataobject.OrgLocalDepartmentDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface OrgMatchMapper {
    List<OrgLocalCorpDO> listCorpsByNames(@Param("values") List<String> values);
    OrgLocalDepartmentDO findChildDepartment(@Param("parentId") String parentId,
                                             @Param("childName") String childName);
    int upsert(@Param("params") Map<String, Object> params);
    int disableMissing(@Param("sourceConfigCode") String sourceConfigCode,
                       @Param("syncTime") LocalDateTime syncTime);
    long countAll();
    long countMatched();
}
