package com.sckw.contract.service;

import com.sckw.system.api.RemoteSystemService;
import com.sckw.system.api.model.dto.res.EntCacheResDto;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

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

@Service
public class CommonBusinessService {

    @DubboReference(version = "2.0.0", group = "design", check = false)
    private RemoteSystemService remoteSystemService;

    /**
     * @return Map
     * @desc: 查企业
     * @param: entIdList 企业id集合
     * @author: czh
     * @date 2023/7/16
     */
    public Map<Long, EntCacheResDto> queryEntCacheMapByIds(List<Long> entIdList) {
        return remoteSystemService.queryEntCacheMapByIds(entIdList);
    }
}
