Commit 1615e3e4 by 陶光胜

取数平台调整

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