From 88a106141826b817a6d4b8e41c48160cef011f5e Mon Sep 17 00:00:00 2001
From: tjx <t2856754968@163.com>
Date: 星期一, 22 十二月 2025 13:48:23 +0800
Subject: [PATCH] 初始化
---
src/test/java/com/hk/NumericalCollection/DeviceReceivingApplicationTests.java | 69 ++++++++++------------------------
1 files changed, 20 insertions(+), 49 deletions(-)
diff --git a/src/test/java/com/hk/NumericalCollection/DeviceReceivingApplicationTests.java b/src/test/java/com/hk/NumericalCollection/DeviceReceivingApplicationTests.java
index a1c7395..c55c6a0 100644
--- a/src/test/java/com/hk/NumericalCollection/DeviceReceivingApplicationTests.java
+++ b/src/test/java/com/hk/NumericalCollection/DeviceReceivingApplicationTests.java
@@ -54,16 +54,16 @@
@Test
void getDeviceDayCount() throws IOException {
- DateTime oneWeekAgo = DateUtil.offsetDay(DateUtil.date(), -1);
- String format = DateUtil.format(oneWeekAgo, "yyyy-MM-dd");
- try {
- List<DevMachine> list = devMachineService.list();
- for (DevMachine s : list) {
- numericalService.getDeviceDayCount(s.getDevNo(), format);
- }
- } catch (IOException e) {
- throw new RuntimeException(e);
- }
+// DateTime oneWeekAgo = DateUtil.offsetDay(DateUtil.date(), -1);
+// String format = DateUtil.format(oneWeekAgo, "yyyy-MM-dd");
+// try {
+// List<DevMachine> list = devMachineService.list();
+// for (DevMachine s : list) {
+// numericalService.getDeviceDayCount(s.getDevNo(), format);
+// }
+// } catch (IOException e) {
+// throw new RuntimeException(e);
+// }
//
//numericalService.getDeviceDayCount("862858070704174_1", "2025-04-22");
}
@@ -90,26 +90,17 @@
// numericalService.getDeviceRealTimeDataBycl("866042075016340");
- List<DevMacBycl> list = devMacByclService.list();
- list.forEach(s -> {
- try {
- numericalService.getDeviceRealTimeDataBycl(s.getDevNo());
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- });
+// List<DevMachine> list = devMachineService.list();
+// list.forEach(s -> {
+// try {
+// numericalNoOrderService.getDeviceRealTimeData(s.getDevNo());
+// } catch (Exception e) {
+// throw new RuntimeException(e);
+// }
+// });
}
- //deviceMetricsService.manualSynchronizationBycl(barcode)
- @Test
- public void get1() throws Exception {
- NumbericalDto barcode = new NumbericalDto();
- barcode.setMachineNo("C05");
- barcode.setOrderId(7890268L);
- deviceMetricsService.manualSynchronizationBycl(barcode);
- }
-
- @Test
+ //@Test
public void SoDeviceList() {
try {
boolean b = numericalService.SoDeviceList();
@@ -127,29 +118,9 @@
}
/**
- * 娴嬭瘯鑾峰彇璁惧鏁呴殰鍒楄〃
- */
- @Test
- public void testGetDeviceErrorList() throws Exception {
- // 璁剧疆娴嬭瘯鍙傛暟
- String uid = "864606067274372"; // 璁惧缂栧彿
- String startDate = "2024-01-01"; // 寮�濮嬫棩鏈�
- String endDate = "2024-12-31"; // 缁撴潫鏃ユ湡
-
- try {
- // 璋冪敤鏂规硶鑾峰彇璁惧鏁呴殰鍒楄〃
- numericalNoOrderService.getDeviceErrorList(uid, startDate, endDate);
- System.out.println("璁惧鏁呴殰鍒楄〃鑾峰彇鎴愬姛");
- } catch (Exception e) {
- System.err.println("璁惧鏁呴殰鍒楄〃鑾峰彇澶辫触: " + e.getMessage());
- throw e;
- }
- }
-
- /**
* 娴嬭瘯鎵归噺鑾峰彇鎵�鏈夎澶囩殑鏁呴殰鍒楄〃
*/
- @Test
+ //@Test
public void testGetAllDeviceErrorList() throws Exception {
DateTime yesterday = DateUtil.yesterday();
DateTime startDateTime = DateUtil.parse(DateUtil.format(yesterday, "yyyy-MM-dd") + " 07:30:00");
--
Gitblit v1.9.3