---
title: "组织人事系统信息加解密、脱敏"
docId: "957955956917051392"
source: "https://weapp.eteams.cn/build/techdoc/wdoc/index.html#/public/repository/91f5067f-775e-48f4-93a2-ce84ca0b9c2e/doc/957955956917051392"
---
# 解密接口

```java
com.weaver.common.hrm.manage.datasecurity.HrmCommDsDataSecurityHandler#decriptEmployeeSysField
```

- 入参说明

| 标识 | 类型 | 说明 |
| --- | --- | --- |
| beans | List<T> | 任意实体bean数据 |
| tenantKey | String | 租户 |
| getSetPairMap | Map<HrmEncryptFieldType,         Pair<Function<T, String>,BiConsumer<T, String>>> | 字段配置说明 |

- 字段配置说明（Map<HrmEncryptFieldType,    Pair<Function<T, String>,BiConsumer<T, String>>>）
  
    1. HrmEncryptFieldType说明: mobile 手机、email 邮箱、telephone 电话、resp_desc 职责描述、other_telephone 其他电话、fax 传真、office 办公室
    2. Pair<Function<T, String>,BiConsumer<T, String>>> 说明bean中对应字段的getter\setter方法
- 示例:

```java
  List<HrmEmployeeComInfo> hrmEmployeeComInfos = Lists.newArrayList(info);
 dataSecurityHandler.decriptEmployeeSysField(hrmEmployeeComInfos,
                tenantKey, ImmutableMapUtil.of(
                        HrmEncryptFieldType.mobile, Pair.of(HrmEmployeeComInfo::getMobile, HrmEmployeeComInfo::setMobile),
                        HrmEncryptFieldType.email, Pair.of(HrmEmployeeComInfo::getEmail, HrmEmployeeComInfo::setEmail)
                )
        );
```
