|
@ -37,4 +37,20 @@ public class TempTest { |
|
|
.uniqueResult(0); |
|
|
.uniqueResult(0); |
|
|
System.out.println(info); |
|
|
System.out.println(info); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
public void test02() { |
|
|
|
|
|
String dateStr = "2023-06-14 07:32:05"; |
|
|
|
|
|
String trimmedDateStr = dateStr.substring(dateStr.indexOf('-') + 1); |
|
|
|
|
|
System.out.println(trimmedDateStr); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
public void test03() { |
|
|
|
|
|
JSONObject point = new JSONObject(); |
|
|
|
|
|
point.put("point_code", "333"); |
|
|
|
|
|
JSONArray request_param = new JSONArray(); |
|
|
|
|
|
request_param.add(point.getString("point_code")); |
|
|
|
|
|
System.out.println(String.valueOf(request_param)); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|