Commit 1615e3e4 by 陶光胜

取数平台调整

parent f2376f2f
...@@ -38,6 +38,11 @@ public class DecryptUtils { ...@@ -38,6 +38,11 @@ public class DecryptUtils {
public static String decrypt(String encryptString) { public static String decrypt(String encryptString) {
try { try {
String result = decryptionClient.decrypt(encryptString); String result = decryptionClient.decrypt(encryptString);
if(org.apache.commons.lang.StringUtils.isNotBlank(result)){
if(result.contains("E0")){
return result+"\t";
}
}
return result; return result;
} catch (DecryptException e) { } catch (DecryptException e) {
e.printStackTrace(); e.printStackTrace();
......
...@@ -191,7 +191,13 @@ public class CsvResultSetHelper implements ResultSetHelper { ...@@ -191,7 +191,13 @@ public class CsvResultSetHelper implements ResultSetHelper {
result.add(resultSet.getTimestamp(i+1) != null ? timeFormatter.format(resultSet.getTimestamp(i+1)) : ""); result.add(resultSet.getTimestamp(i+1) != null ? timeFormatter.format(resultSet.getTimestamp(i+1)) : "");
break; break;
default: default:
result.add(String.valueOf(resultSet.getObject(i+1))); String s2 = String.valueOf(resultSet.getObject(i + 1));
if(org.apache.commons.lang3.StringUtils.isNotBlank(s2)){
if(s2.contains("E0")){
s2 = s2 + "\t";
}
}
result.add(s2);
break; break;
} // SWITCH OVER } // SWITCH OVER
} // IF ELSE OVER } // IF ELSE OVER
......
...@@ -471,7 +471,13 @@ public class FreeQueryServiceImpl implements IFreeQueryService { ...@@ -471,7 +471,13 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
row.createCell(j).setCellValue(rs.getTimestamp(j + 1) != null ? timeFormatter.format(rs.getTimestamp(j + 1)) : ""); row.createCell(j).setCellValue(rs.getTimestamp(j + 1) != null ? timeFormatter.format(rs.getTimestamp(j + 1)) : "");
break; break;
default: default:
row.createCell(j).setCellValue(rs.getString(j + 1)); String string = rs.getString(j + 1);
if(StringUtils.isNotBlank(string)){
if(string.contains("E0")){
string = string + "\t";
}
}
row.createCell(j).setCellValue(string);
break; break;
} }
} }
......
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