Commit 777a9302 by fudahua

feat:脱敏卡号

parent 4a268e99
......@@ -84,5 +84,7 @@ public interface IFreeQueryService {
List<String> listFilterPhoneAndCardNoField();
List<String> listFilterPhoneAndCardNoCardNumField();
List<String> listFilterUserName();
}
......@@ -365,6 +365,11 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
}
@Override
public List<String> listFilterPhoneAndCardNoCardNumField() {
return FilterFieldUtils.FILTERS_PHONE_AND_CARD_COUPON;
}
@Override
public List<String> listFilterUserName() {
return FilterFieldUtils.FILETERS_USER_NAME;
}
......
......@@ -297,6 +297,13 @@ public class FlatQueryController {
condition.setEnableEncrypt(false);
}
}
if(dataPermission == 3){
if(freeQueryService.listFilterPhoneAndCardNoCardNumField().contains(condition.getFieldName())){
condition.setEnableEncrypt(true);
} else {
condition.setEnableEncrypt(false);
}
}
}
}
return this.flatQueryResultService.buildFlatQueryDownloadTask(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment