Commit afdb14e0 by 陶光胜

取数平台调整

parent 924906a7
......@@ -152,7 +152,11 @@ public class CsvResultSetHelper implements ResultSetHelper {
if(needDecryptByEnt && isPhoneNumber(columnName)){
//导出数据中需要增加加密列,先解密再加密
String value = DecryptUtils.getInstance().decrypt(resultSet.getString(columnName));
decyptValue.add(new String(rsa.encrypt(value.getBytes("UTF-8"), KeyType.PublicKey)));
if(org.apache.commons.lang3.StringUtils.isNotBlank(value)){
decyptValue.add(new String(rsa.encrypt(value.getBytes("UTF-8"), KeyType.PublicKey)));
} else {
decyptValue.add("");
}
}
}
} else if (doDecrypt) { // 如果需要解密处理
......
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