Commit 1c51f231 authored by zhangsen's avatar zhangsen

健康指数查询优化,排序analysisTime 字段转换为 ts主键字段

parent d742240b
...@@ -121,6 +121,9 @@ public class TdInfoQueryController { ...@@ -121,6 +121,9 @@ public class TdInfoQueryController {
public static String convert(String camelCase) { public static String convert(String camelCase) {
StringBuilder result = new StringBuilder(); StringBuilder result = new StringBuilder();
if (camelCase.equals("analysisTime")) {
return "ts";
}
for (int i = 0; i < camelCase.length(); i++) { for (int i = 0; i < camelCase.length(); i++) {
char currentChar = camelCase.charAt(i); char currentChar = camelCase.charAt(i);
if (Character.isUpperCase(currentChar)) { if (Character.isUpperCase(currentChar)) {
......
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