From a1f77929bad5fcc078e76b7a36df646ef5024f8c Mon Sep 17 00:00:00 2001
From: whyczh <hzjl@qq.com>
Date: 星期五, 24 十二月 2021 14:59:59 +0800
Subject: [PATCH] 添加电池关注验证接口和备件电池接口

---
 src/main/java/com/whyc/controller/BattAttentionController.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/whyc/controller/BattAttentionController.java b/src/main/java/com/whyc/controller/BattAttentionController.java
index d0df798..61d936a 100644
--- a/src/main/java/com/whyc/controller/BattAttentionController.java
+++ b/src/main/java/com/whyc/controller/BattAttentionController.java
@@ -32,8 +32,15 @@
     @ApiOperation(value = "鍙栨秷鍏虫敞")
     public Response delete(@RequestBody BattAttention battAttention){
         UserInf userInf = ActionUtil.getUser();
-        battAttention.setUid(userInf.getUId().intValue());
+        battAttention.setUId(userInf.getUId().intValue());
         return service.deleteByEntity(battAttention);
     }
 
+    @GetMapping("/judgeInOrNot")
+    @ApiOperation(value = "鍏虫敞涔嬪墠璇嗗埆鏄惁鍏虫敞杩�")
+    public Response judgeInOrNot(int battGroupId,int monNum){
+        UserInf userInf = ActionUtil.getUser();
+        return service.judgeInOrNot(battGroupId,monNum,userInf.getUId().intValue());
+    }
+
 }

--
Gitblit v1.9.1