Commit 2728aab7941732fadc81a8da421cdc411789ed76
1 parent
b893029066
Exists in
master
and in
8 other branches
update
Showing 2 changed files with 31 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/FolicAcidFacade.java
View file @
2728aab
| ... | ... | @@ -316,7 +316,7 @@ |
| 316 | 316 | ResidentsArchiveModel model = residentsArchiveService.getResident(data.getParentId()); |
| 317 | 317 | map.put("username",model.getUsername()); |
| 318 | 318 | map.put("certificateNum",model.getCertificateNum()); |
| 319 | - map.put("phone",model.getPhone()); | |
| 319 | + map.put("phone",FunvCommonUtil.getXingPhone(model.getPhone())); | |
| 320 | 320 | map.put("drawTime", DateUtil.getyyyy_MM_dd(data.getDrawTime())); |
| 321 | 321 | map.put("drawCount", data.getDrawCount()); |
| 322 | 322 | if (data.getPregnancyType()!=null){ |
| ... | ... | @@ -344,6 +344,15 @@ |
| 344 | 344 | baseListResponse.setPageInfo(folicAcidQuery.getPageInfo()); |
| 345 | 345 | return baseListResponse; |
| 346 | 346 | } |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + public static void main(String[] str) { | |
| 351 | + String p = "13678024706"; | |
| 352 | + String a = p.substring(0,3)+"****"+p.substring(7,11); | |
| 353 | + System.out.print("哈哈" + a); | |
| 354 | + } | |
| 355 | + | |
| 347 | 356 | |
| 348 | 357 | public BaseResponse deleteFolicAcid(String id,Integer userId){ |
| 349 | 358 | BaseResponse br = new BaseResponse(); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/FunvCommonUtil.java
View file @
2728aab
| 1 | +package com.lyms.platform.operate.web.facade; | |
| 2 | + | |
| 3 | +import org.apache.commons.lang.StringUtils; | |
| 4 | + | |
| 5 | +/** | |
| 6 | + * 妇女模块公共方法 | |
| 7 | + * | |
| 8 | + * Created by Administrator on 2016/12/13 0013. | |
| 9 | + */ | |
| 10 | +public class FunvCommonUtil { | |
| 11 | + | |
| 12 | + //返回中间四位数为*号的手机号 | |
| 13 | + public static String getXingPhone(String phone){ | |
| 14 | + if (StringUtils.isNotEmpty(phone)){ | |
| 15 | + String a = phone.substring(0,3)+"****"+phone.substring(7,11); | |
| 16 | + return a; | |
| 17 | + } | |
| 18 | + return ""; | |
| 19 | + } | |
| 20 | + | |
| 21 | +} |