From 675af262e4e511c9a240d9c1fa3332d1dc8d0c42 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 13 一月 2026 13:15:37 +0800
Subject: [PATCH] 1.工时管理:辅助工时编辑后录入人姓名变成编辑人问题修复 2.外购下单:标签打印功能调整 3.人员:培训计划导入导出添加【培训大类】字段 4.业务管理:报检新增【物料属性】字段选择,其余页面添加【物料属性】查询条件以及数据回显
---
cnas-device/src/main/java/com/ruoyi/device/controller/DeviceDocumentsController.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/cnas-device/src/main/java/com/ruoyi/device/controller/DeviceDocumentsController.java b/cnas-device/src/main/java/com/ruoyi/device/controller/DeviceDocumentsController.java
index 0725f6f..6cfe1a7 100644
--- a/cnas-device/src/main/java/com/ruoyi/device/controller/DeviceDocumentsController.java
+++ b/cnas-device/src/main/java/com/ruoyi/device/controller/DeviceDocumentsController.java
@@ -34,7 +34,7 @@
*/
@ApiOperation(value = "鏂板璁惧妗f")
@PostMapping("/addDocument")
- public Result addDocument(DeviceDocuments document) {
+ public Result addDocument(@RequestBody DeviceDocuments document) {
if (document.getDeviceId() == null) {
throw new RuntimeException("璁惧id涓虹┖");
}
@@ -48,7 +48,7 @@
* @return
*/
@ApiOperation(value = "鏌ヨ璁惧妗f淇℃伅")
- @GetMapping("/id")
+ @GetMapping("/getDocumentById")
public Result getDocumentById(Integer id) {
return Result.success(deviceDocumentsService.getById(id));
}
@@ -77,14 +77,14 @@
/**
* 鏌ヨ璁惧妗f鍒楄〃
- * @param id
+ * @param deviceId
* @return
*/
@ApiOperation(value = "鏌ヨ璁惧妗f鍒楄〃")
@GetMapping("/getAllDocuments")
- public Result getAllDocuments(Integer id) {
+ public Result getAllDocuments(Integer deviceId) {
LambdaQueryWrapper<DeviceDocuments> lambdaQueryWrapper = new LambdaQueryWrapper<>();
- lambdaQueryWrapper.eq(DeviceDocuments::getDeviceId, id);
+ lambdaQueryWrapper.eq(DeviceDocuments::getDeviceId, deviceId);
return Result.success(deviceDocumentsService.list(lambdaQueryWrapper));
}
--
Gitblit v1.9.3