|  | @@ -4,10 +4,12 @@ import cn.hnthyy.thmz.Utils.Tools;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.entity.MzException;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.entity.his.zd.ZdMzClass;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.entity.his.zd.ZdUnitCode;
 | 
	
		
			
				|  |  | +import cn.hnthyy.thmz.entity.thmz.Config;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.enums.ClassCodeEnum;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.enums.YesNoEnum;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.mapper.his.zd.ZdMzClassMapper;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.mapper.his.zd.ZdUnitCodeMapper;
 | 
	
		
			
				|  |  | +import cn.hnthyy.thmz.mapper.thmz.ConfigMapper;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.pageDto.ZdUnitCodePageDto;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.service.his.zd.ZdUnitCodeService;
 | 
	
		
			
				|  |  |  import cn.hnthyy.thmz.service.thmz.HaiCiAdapterService;
 | 
	
	
		
			
				|  | @@ -16,6 +18,7 @@ import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import javax.annotation.Resource;
 | 
	
		
			
				|  |  |  import java.util.ArrayList;
 | 
	
		
			
				|  |  |  import java.util.HashMap;
 | 
	
		
			
				|  |  |  import java.util.List;
 | 
	
	
		
			
				|  | @@ -31,6 +34,8 @@ public class ZdUnitCodeServiceImpl implements ZdUnitCodeService {
 | 
	
		
			
				|  |  |      private ZdMzClassMapper zdMzClassMapper;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private HaiCiAdapterService haiCiAdapterService;
 | 
	
		
			
				|  |  | +    @Resource
 | 
	
		
			
				|  |  | +    private ConfigMapper configMapper ;
 | 
	
		
			
				|  |  |      //部门缓存数据集
 | 
	
		
			
				|  |  |      private Map<String, ZdUnitCode> map = new HashMap<>();
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -297,5 +302,25 @@ public class ZdUnitCodeServiceImpl implements ZdUnitCodeService {
 | 
	
		
			
				|  |  |          return zdUnitCodeMapper.selectNightClinic();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * @description: 刷新科室缓存
 | 
	
		
			
				|  |  | +     * @author: lihong
 | 
	
		
			
				|  |  | +     * @date: 2023/12/27 11:17
 | 
	
		
			
				|  |  | +     **/
 | 
	
		
			
				|  |  | +    @Override
 | 
	
		
			
				|  |  | +    public void refreshDeptCache() {
 | 
	
		
			
				|  |  | +        initMap(null,YesNoEnum.YES);
 | 
	
		
			
				|  |  | +        Config config = configMapper.selectConfigByKey("thmz_group");
 | 
	
		
			
				|  |  | +        Tools.sendRefreshCacheService(config,"sendRefreshDeptCache");
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * @description: 刷新其他服务器科室缓存
 | 
	
		
			
				|  |  | +     * @author: lihong
 | 
	
		
			
				|  |  | +     * @date: 2023/12/27 11:17
 | 
	
		
			
				|  |  | +     **/
 | 
	
		
			
				|  |  | +    @Override
 | 
	
		
			
				|  |  | +    public void sendRefreshDeptCache() {
 | 
	
		
			
				|  |  | +        initMap(null,YesNoEnum.YES);
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  }
 |