IClearApiSystemService.java 1.02 KB
package com.erry.iclear.dateInterface.service;


import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Administrator
 */
@Service
@Slf4j
public class IClearApiSystemService {

    @Autowired
    private AppInfoService appInfoService;

    @Autowired
    private DomesticDestinationMappingService domesticDestinationMappingService;

    @Autowired
    private DictionaryEntriesService dictionaryEntriesService;

    @Autowired
    private OrigplacecodeMappingService origplacecodeMappingService;

    @Autowired
    private ChmCarryPortService chmCarryPortService;

    /**
     * 刷新缓存
     */
    public void refreshAppInfoCache(){
        appInfoService.initAppInfo();
        dictionaryEntriesService.initDictionaryEntries();
        domesticDestinationMappingService.initDomesticDestinationMapping();
        origplacecodeMappingService.initOrigplacecodeMapping();
        chmCarryPortService.initChmCarryPort();
    }


}