From a3cb6e57e1031099abf5f4739fc14a4a318487aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B3=BD=E8=85=BE?= <1178634255@qq.com> Date: Mon, 28 Aug 2023 13:59:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86-=E6=8A=80?= =?UTF-8?q?=E6=9C=AF=E8=B5=84=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/glxp/api/controller/inv/DeviceAssetCertController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/glxp/api/controller/inv/DeviceAssetCertController.java b/src/main/java/com/glxp/api/controller/inv/DeviceAssetCertController.java index b0b0baa7..a2caa206 100644 --- a/src/main/java/com/glxp/api/controller/inv/DeviceAssetCertController.java +++ b/src/main/java/com/glxp/api/controller/inv/DeviceAssetCertController.java @@ -18,7 +18,6 @@ import com.glxp.api.res.PageSimpleResponse; import com.glxp.api.service.inv.DeviceAssetCertService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; -import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -70,7 +69,7 @@ public class DeviceAssetCertController extends BaseController { @AuthRuleAnnotation("") @PostMapping("/inv/info/deleteDeviceCert") - public BaseResponse deleteDeviceCert(@RequestBody DeleteDeviceFileRequest deleteDeviceFileRequest, BindingResult bindingResult) { + public BaseResponse deleteDeviceCert(@RequestBody DeleteDeviceFileRequest deleteDeviceFileRequest) { boolean b = deviceAssetCertService.deleteById(deleteDeviceFileRequest.getId()); String URL = filePath + FileConstant.COMMON_FILE_PATH + deleteDeviceFileRequest.getFilePath(); File file = new File(URL);