|
@@ -90,8 +90,7 @@ import com.fs.his.service.IFsUserService;
|
|
|
import org.springframework.transaction.annotation.Propagation;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
-import static com.fs.his.utils.PhoneUtil.decryptPhoneMk;
|
|
|
-import static com.fs.his.utils.PhoneUtil.encryptPhone;
|
|
|
+import static com.fs.his.utils.PhoneUtil.*;
|
|
|
import static com.fs.hisStore.enums.BillDetailEnum.CATEGORY_1;
|
|
|
import static com.fs.hisStore.enums.BillDetailEnum.CATEGORY_3;
|
|
|
|
|
@@ -584,11 +583,16 @@ public class FsUserServiceImpl implements IFsUserService
|
|
|
|
|
|
//解密
|
|
|
if(fsUserPageListVO.getPhone() != null && fsUserPageListVO.getPhone() != ""){
|
|
|
- if (fsUserPageListVO.getPhone().length()>11){
|
|
|
- fsUserPageListVO.setPhone(decryptPhoneMk(fsUserPageListVO.getPhone()));
|
|
|
- }else {
|
|
|
- fsUserPageListVO.setPhone(fsUserPageListVO.getPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
+ if(param.getIsHidePhoneMiddle()){
|
|
|
+ if (fsUserPageListVO.getPhone().length()>11){
|
|
|
+ fsUserPageListVO.setPhone(decryptPhoneMk(fsUserPageListVO.getPhone()));
|
|
|
+ }else {
|
|
|
+ fsUserPageListVO.setPhone(fsUserPageListVO.getPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ fsUserPageListVO.setPhone(decryptPhone(fsUserPageListVO.getPhone()));
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|