|
@@ -1,5 +1,6 @@
|
|
|
package com.slibra.business.service.impl;
|
|
|
|
|
|
+import cn.hutool.http.HttpUtil;
|
|
|
import com.alibaba.fastjson2.JSON;
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
import com.slibra.business.domain.*;
|
|
@@ -857,5 +858,46 @@ public class FrontServiceImpl implements IFrontService {
|
|
|
System.out.println("parse = " + parse);
|
|
|
|
|
|
System.out.println(LocalDateTime.now().format(DateTimeFormatter.ofPattern(DateUtils.YYYYMMDD_TS)));
|
|
|
+
|
|
|
+ String req = "{\"data\": [\n" +
|
|
|
+ " {\n" +
|
|
|
+ " \"test_hour\": \"2025/04/22 10\",\n" +
|
|
|
+ " \"no3Hlj1Jqr\": \"2\",\n" +
|
|
|
+ " \"no3Qyc1Jqr\": \"3\",\n" +
|
|
|
+ " \"nh31Jqr\": \"4\"\n" +
|
|
|
+ " },\n" +
|
|
|
+ " {\n" +
|
|
|
+ " \"test_hour\": \"2025/04/23 11\",\n" +
|
|
|
+ " \"no3Hlj1Jqr\": \"5\",\n" +
|
|
|
+ " \"no3Qyc1Jqr\": \"6\",\n" +
|
|
|
+ " \"nh31Jqr\": \"7\"\n" +
|
|
|
+ " },\n" +
|
|
|
+ " {\n" +
|
|
|
+ " \"test_hour\": \"2025/04/22 12\",\n" +
|
|
|
+ " \"no3Hlj1Jqr\": \"2\",\n" +
|
|
|
+ " \"no3Qyc1Jqr\": \"3\",\n" +
|
|
|
+ " \"nh31Jqr\": \"4\"\n" +
|
|
|
+ " },\n" +
|
|
|
+ " {\n" +
|
|
|
+ " \"test_hour\": \"2025/04/23 13\",\n" +
|
|
|
+ " \"no3Hlj1Jqr\": \"5\",\n" +
|
|
|
+ " \"no3Qyc1Jqr\": \"6\",\n" +
|
|
|
+ " \"nh31Jqr\": \"7\"\n" +
|
|
|
+ " },\n" +
|
|
|
+ " {\n" +
|
|
|
+ " \"test_hour\": \"2025/04/22 14\",\n" +
|
|
|
+ " \"no3Hlj1Jqr\": \"2\",\n" +
|
|
|
+ " \"no3Qyc1Jqr\": \"3\",\n" +
|
|
|
+ " \"nh31Jqr\": \"4\"\n" +
|
|
|
+ " },\n" +
|
|
|
+ " {\n" +
|
|
|
+ " \"test_hour\": \"2025/04/23 16\",\n" +
|
|
|
+ " \"no3Hlj1Jqr\": \"5\",\n" +
|
|
|
+ " \"no3Qyc1Jqr\": \"6\",\n" +
|
|
|
+ " \"nh31Jqr\": \"7\"\n" +
|
|
|
+ " }\n" +
|
|
|
+ " ]}";
|
|
|
+ String post = HttpUtil.post("http://192.168.40.21:30076/setfeedback", req);
|
|
|
+ System.out.println(post);
|
|
|
}
|
|
|
}
|