mirror of https://gitee.com/stylefeng/roses
【7.0.3】隐藏数据库密码展示
parent
35bb512e74
commit
0a9291da3a
|
@ -1,5 +1,6 @@
|
|||
package cn.stylefeng.roses.kernel.dsctn.api;
|
||||
|
||||
import cn.stylefeng.roses.kernel.dsctn.api.exception.DatasourceContainerException;
|
||||
import cn.stylefeng.roses.kernel.dsctn.api.pojo.DataSourceDto;
|
||||
|
||||
/**
|
||||
|
@ -15,6 +16,7 @@ public interface DataSourceApi {
|
|||
*
|
||||
* @param dbId 数据库连接id
|
||||
* @return 数据库连接信息
|
||||
* @throws DatasourceContainerException 找不到对应的dbId会抛出异常
|
||||
* @author fengshuonan
|
||||
* @date 2021/4/22 14:21
|
||||
*/
|
||||
|
|
|
@ -152,7 +152,14 @@ public class DatabaseInfoServiceImpl extends ServiceImpl<DatabaseInfoMapper, Dat
|
|||
@Override
|
||||
public List<DatabaseInfo> findList(DatabaseInfoRequest databaseInfoRequest) {
|
||||
LambdaQueryWrapper<DatabaseInfo> wrapper = createWrapper(databaseInfoRequest);
|
||||
return this.list(wrapper);
|
||||
List<DatabaseInfo> list = this.list(wrapper);
|
||||
|
||||
// 更新密码
|
||||
for (DatabaseInfo record : list) {
|
||||
record.setPassword("***");
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue