mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-28 18:05:08 +08:00
增加 podam 随机生成对象,简化单元测试的成本
This commit is contained in:
@ -122,7 +122,7 @@ public class DBConfigRepository extends AbstractConfigRepository {
|
||||
|
||||
private Properties buildProperties(List<InfConfigDO> configs) {
|
||||
Properties properties = propertiesFactory.getPropertiesInstance();
|
||||
configs.stream().filter(config -> 0 == config.getDeleted()) // 过滤掉被删除的配置
|
||||
configs.stream().filter(BaseDO::getDeleted) // 过滤掉被删除的配置
|
||||
.forEach(config -> properties.put(config.getKey(), config.getValue()));
|
||||
return properties;
|
||||
}
|
||||
|
@ -32,6 +32,6 @@ public class BaseDO implements Serializable {
|
||||
* 是否删除
|
||||
*/
|
||||
@TableLogic
|
||||
private Integer deleted;
|
||||
private Boolean deleted;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user