From c3434b1fe0132372b34ff0a46d84e6129a094bfc Mon Sep 17 00:00:00 2001
From: L <L@132>
Date: 星期四, 28 八月 2025 08:43:15 +0800
Subject: [PATCH] *
---
src/main/java/com/zy/asrs/controller/DeviceErrorController.java | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/zy/asrs/controller/DeviceErrorController.java b/src/main/java/com/zy/asrs/controller/DeviceErrorController.java
index c235ff5..fbd9636 100644
--- a/src/main/java/com/zy/asrs/controller/DeviceErrorController.java
+++ b/src/main/java/com/zy/asrs/controller/DeviceErrorController.java
@@ -12,11 +12,13 @@
import com.core.common.Cools;
import com.core.common.R;
import com.zy.common.web.BaseController;
+import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.*;
+@Slf4j
@RestController
public class DeviceErrorController extends BaseController {
@@ -60,10 +62,10 @@
continue;
}
if (entry.getKey().equals("id")) {
- id = Long.getLong(val);
+ id = (long) Integer.parseInt(val);
} else if (entry.getKey().equals("device")) {
device = val;
- } else if (entry.getKey().equals("deviceId")) {
+ } else if (entry.getKey().equals("device_id")) {
deviceId = Integer.valueOf(val);
}
}
@@ -72,6 +74,7 @@
page1.setTotal(deviceErrorService.selectDeviceErrorListTotal(id,device,deviceId));
return R.ok(page1);
} catch (Exception e) {
+ log.error("寮傚父" + e);
return R.error("寮傚父" + e);
}
}
--
Gitblit v1.9.1