mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 02:08:43 +08:00 
			
		
		
		
	多模块重构 5:infra 模块的修改~~~
This commit is contained in:
		| @@ -24,6 +24,7 @@ import java.util.List; | ||||
| import java.util.Properties; | ||||
| import java.util.concurrent.Executors; | ||||
| import java.util.concurrent.ScheduledExecutorService; | ||||
| import java.util.function.Predicate; | ||||
|  | ||||
| @Slf4j | ||||
| public class DBConfigRepository extends AbstractConfigRepository { | ||||
| @@ -135,7 +136,7 @@ public class DBConfigRepository extends AbstractConfigRepository { | ||||
|  | ||||
|     private Properties buildProperties(List<ConfigRespDTO> configs) { | ||||
|         Properties properties = propertiesFactory.getPropertiesInstance(); | ||||
|         configs.stream().filter(ConfigRespDTO::getDeleted) // 过滤掉被删除的配置 | ||||
|         configs.stream().filter(config -> !config.getDeleted()) // 过滤掉被删除的配置 | ||||
|                 .forEach(config -> properties.put(config.getKey(), config.getValue())); | ||||
|         return properties; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV