Commit 065f58bed6fb7ce3c20040071888a1020c10f864
1 parent
186e1bb2b0
Exists in
master
and in
6 other branches
脱敏
Showing 2 changed files with 16 additions and 3 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientFacade.java
View file @
065f58b
| ... | ... | @@ -915,7 +915,7 @@ |
| 915 | 915 | data.put("dueDate", rp.getDueDate()); |
| 916 | 916 | data.put("checkDoctor", rp.getCheckDoctor()); |
| 917 | 917 | data.put("lName", rp.getlName()); |
| 918 | - data.put("phone", com.lyms.platform.common.utils.StringUtils.encryPhone(rp.getRealPhone())); | |
| 918 | + data.put("phone", patientsQueryRequest.getIsEncry() == 0 ? rp.getRealPhone() : com.lyms.platform.common.utils.StringUtils.encryPhone(rp.getRealPhone())); | |
| 919 | 919 | data.put("serviceType", rp.getServiceType()); |
| 920 | 920 | data.put("serviceStatus", rp.getServiceStatus()); |
| 921 | 921 | datas.add(data); |
| ... | ... | @@ -951,7 +951,7 @@ |
| 951 | 951 | data.put("dueDate", rp.getDueDate()); |
| 952 | 952 | data.put("checkDoctor", rp.getCheckDoctor()); |
| 953 | 953 | data.put("lName", rp.getlName()); |
| 954 | - data.put("phone", com.lyms.platform.common.utils.StringUtils.encryPhone(rp.getRealPhone())); | |
| 954 | + data.put("phone", patientsQueryRequest.getIsEncry() == 0 ? rp.getRealPhone() : com.lyms.platform.common.utils.StringUtils.encryPhone(rp.getRealPhone())); | |
| 955 | 955 | data.put("serviceType", rp.getServiceType()); |
| 956 | 956 | data.put("serviceStatus", rp.getServiceStatus()); |
| 957 | 957 | datas.add(data); |
| ... | ... | @@ -984,7 +984,7 @@ |
| 984 | 984 | data.put("cHTimes", rp.getcHTimes()); |
| 985 | 985 | data.put("checkDoctor", rp.getCheckDoctor()); |
| 986 | 986 | data.put("lName", rp.getlName()); |
| 987 | - data.put("phone", com.lyms.platform.common.utils.StringUtils.encryPhone(rp.getRealPhone())); | |
| 987 | + data.put("phone", patientsQueryRequest.getIsEncry() == 0 ? rp.getRealPhone() : com.lyms.platform.common.utils.StringUtils.encryPhone(rp.getRealPhone())); | |
| 988 | 988 | data.put("serviceType", "服务类型"); |
| 989 | 989 | data.put("serviceStatus", "服务类型"); |
| 990 | 990 | datas.add(data); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/RiskPatientsQueryRequest.java
View file @
065f58b
| ... | ... | @@ -159,6 +159,19 @@ |
| 159 | 159 | //居住类别 |
| 160 | 160 | private String liveType; |
| 161 | 161 | |
| 162 | + | |
| 163 | + //0不脱敏 1脱敏 | |
| 164 | + private int isEncry; | |
| 165 | + | |
| 166 | + | |
| 167 | + public int getIsEncry() { | |
| 168 | + return isEncry; | |
| 169 | + } | |
| 170 | + | |
| 171 | + public void setIsEncry(int isEncry) { | |
| 172 | + this.isEncry = isEncry; | |
| 173 | + } | |
| 174 | + | |
| 162 | 175 | /** |
| 163 | 176 | * 排序策略枚举 |
| 164 | 177 | */ |