소스 검색

feat:郑多燕销售端的会员详情电话和地址不加密

caoliqin 2 주 전
부모
커밋
6c22424ad3
1개의 변경된 파일11개의 추가작업 그리고 5개의 파일을 삭제
  1. 11 5
      fs-company/src/main/java/com/fs/company/controller/store/FsUserAddressController.java

+ 11 - 5
fs-company/src/main/java/com/fs/company/controller/store/FsUserAddressController.java

@@ -11,6 +11,7 @@ import com.fs.common.core.page.TableDataInfo;
 import com.fs.common.enums.BusinessType;
 import com.fs.common.utils.SecurityUtils;
 import com.fs.common.utils.poi.ExcelUtil;
+import com.fs.config.cloud.CloudHostProper;
 import com.fs.his.domain.FsUserAddress;
 import com.fs.his.dto.AddressInfoDTO;
 import com.fs.his.service.IFsUserAddressService;
@@ -33,6 +34,8 @@ public class FsUserAddressController extends BaseController
     @Autowired
     private IFsUserAddressService fsUserAddressService;
 
+    @Autowired
+    private CloudHostProper cloudHostProper;
     /**
      * 查询用户地址列表
      */
@@ -43,11 +46,14 @@ public class FsUserAddressController extends BaseController
         startPage();
         List<FsUserAddress> list = fsUserAddressService.selectFsUserAddressList(fsUserAddress);
         for (FsUserAddress userAddress : list) {
-            if (userAddress.getPhone()!=null){
-                userAddress.setPhone(userAddress.getPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
-            }
-            if (userAddress.getDetail()!=null&&userAddress.getDetail()!=""){
-                userAddress.setDetail(userAddress.getDetail().substring(0, userAddress.getDetail().length() / 2) + "********");
+            //郑多燕不需要加密
+            if(!"广州郑多燕".equals(cloudHostProper.getCompanyName())){
+                if (userAddress.getPhone()!=null){
+                    userAddress.setPhone(userAddress.getPhone().replaceAll("(\\d{3})\\d*(\\d{4})", "$1****$2"));
+                }
+                if (userAddress.getDetail()!=null&&userAddress.getDetail()!=""){
+                    userAddress.setDetail(userAddress.getDetail().substring(0, userAddress.getDetail().length() / 2) + "********");
+                }
             }
         }
         return getDataTable(list);