From e16302f9d475c7cc4dd18c5abf1a23cb5502e362 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期三, 28 五月 2025 14:57:56 +0800 Subject: [PATCH] 密码验证加- --- src/main/java/com/whyc/controller/PowerInfController.java | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/whyc/controller/PowerInfController.java b/src/main/java/com/whyc/controller/PowerInfController.java index d50f167..c69744e 100644 --- a/src/main/java/com/whyc/controller/PowerInfController.java +++ b/src/main/java/com/whyc/controller/PowerInfController.java @@ -85,19 +85,25 @@ return res; } - @PutMapping + @PostMapping("update") @ApiOperation(value = "鏇存柊鐢垫簮") public Response update(@RequestBody PowerInf powerInf){ service.updateByPowerDeviceId(powerInf); return new Response().set(1,true,"鏇存柊鎴愬姛"); } - @DeleteMapping + @PostMapping("delete") @ApiOperation(value = "鍒犻櫎鐢垫簮") public Response delete(@RequestParam Integer powerDeviceId){ service.deleteByPowerDeviceId(powerDeviceId); return new Response().set(1,true,"鍒犻櫎鎴愬姛"); } + @GetMapping("updateSwtichNum") + @ApiOperation(value = "鏇存柊寮�鍏宠矾鏁�") + public Response updateSwtichNum(@RequestParam int swtichNum,@RequestParam int powerId){ + service.updateSwtichNum(swtichNum,powerId); + return new Response().set(1,true,"鏇存柊鎴愬姛"); + } @GetMapping("getProvincesContainBatt") @@ -180,13 +186,13 @@ }*/ @ApiOperation(value = "濉啓寮傚父鍘熷洜",notes = "浼犲叆瀛楁 num,exceptionCause,exceptionCauseAnalysis") - @PutMapping("exceptionCause") + @PostMapping("exceptionCause") public Response updateExceptionCause(@RequestBody PowerInf powerInf){ return service.updateExceptionCause(powerInf); } @ApiOperation(value = "鍙栨秷寮傚父鍘熷洜", notes = "浼犲叆瀛楁 num") - @PutMapping("cancelExceptionCause") + @PostMapping("cancelExceptionCause") public Response updateCancelExceptionCause(@RequestParam int num) { return service.updateCancelExceptionCause(num); } -- Gitblit v1.9.1