From a7fef2846505b08e0711345b17902e7381612d23 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期二, 25 三月 2025 14:02:16 +0800 Subject: [PATCH] 查询锁的蓝牙开启时间段记录添加area_path --- src/main/java/com/whyc/controller/AppController.java | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 50 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/whyc/controller/AppController.java b/src/main/java/com/whyc/controller/AppController.java index 3038f10..2eb6d66 100644 --- a/src/main/java/com/whyc/controller/AppController.java +++ b/src/main/java/com/whyc/controller/AppController.java @@ -1,14 +1,15 @@ package com.whyc.controller; import com.whyc.dto.Response; -import com.whyc.pojo.db_area.AuthiruzeInf; import com.whyc.service.AreaInfService; import com.whyc.service.AuthiruzeInfService; +import com.whyc.service.LockCtlLogService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @RestController @@ -21,17 +22,60 @@ @Autowired private AreaInfService ainfService; - @ApiOperation(value = "鏅�氱敤鎴风櫥褰曟煡鐪嬭嚜宸辨巿鏉冭褰�--鏅�氱敤鎴�") + + + @ApiOperation(value = "鏅�氱敤鎴风櫥褰曟煡鐪嬭嚜宸辨巿鏉冮攣璁板綍--鏅�氱敤鎴�") @GetMapping("getAuthByUid") - public Response getAuthByUid(){ - return authService.getAuthByUid(); + public Response getAuthByUid(String uname){ + return authService.getAuthByUid(uname); } @ApiOperation(value = "鍖哄煙绠$悊鍛樼櫥褰曟煡鐪嬭嚜宸辩鐞嗗尯鍩燂紝閿佸叿鍜屽尯鍩熷搴旂殑鐢ㄦ埛--鍖哄煙绠$悊鍛�") @GetMapping("getInfByAreaManage") - public Response getInfByAreaManage(){ - return ainfService.getInfByAreaManage(); + public Response getInfByAreaManage(String uname){ + return ainfService.getInfByAreaManage(uname); } + @ApiOperation(value = "鍖哄煙绠$悊鍛樼偣鍑荤鐞嗙殑鍖哄煙璺宠浆--鍖哄煙绠$悊鍛�") + @GetMapping("getAinfByManage") + public Response getAinfByManage(String uname){ + return ainfService.getAinfByManage(uname); + } + + @ApiOperation(value = "鍖哄煙绠$悊鍛樼偣鍑绘寚瀹氬尯鍩熸煡鐪嬫墍鏈夌殑閿佷俊鎭�--鍖哄煙绠$悊鍛�") + @GetMapping("getlinfByAid") + public Response getlinfByAid(@RequestParam int id){ + return ainfService.getlinfByAid(id); + } + + @ApiOperation(value = "鍖哄煙绠$悊鍛樼偣鍑绘煡鐪嬪紑閿佹搷浣滆褰�--鍖哄煙绠$悊鍛�") + @GetMapping("getCtlog") + public Response getCtlog(int pageNum, int pageSize,String uname){ + return ainfService.getCtlog(pageNum,pageSize,uname); + } + + @ApiOperation(value = "鍖哄煙绠$悊鍛樻煡鐪嬫寚瀹氬尯鍩熶笅鐨勯攣鐨勭姸鎬�--鍖哄煙绠$悊鍛�") + @GetMapping("getAreaLockById") + public Response getAreaLockById(@RequestParam int id){ + return ainfService.getAreaLockById(id); + } + + @ApiOperation(value = "鍖哄煙绠$悊鍛樻煡鐪嬫寚瀹氬尯鍩熶笅鐨勯攣鍏峰憡璀�(澶辫触鐨�)--鍖哄煙绠$悊鍛�") + @GetMapping("getErrLogByUid") + public Response getErrLogByUid(int pageNum, int pageSize,String uname){ + return ainfService.getErrLogByUid(pageNum,pageSize,uname); + } + + @ApiOperation(value = "鍖哄煙绠$悊鍛樻煡鐪嬫寚瀹氬尯鍩熶笅鐨勯攣鍏峰憡璀�(鍏ㄩ儴鐨勭殑)--鍖哄煙绠$悊鍛�") + @GetMapping("getAllLogByUid") + public Response getAllLogByUid(int pageNum, int pageSize,String uname){ + return ainfService.getAllLogByUid(pageNum,pageSize,uname); + } + + @ApiOperation(value = "鍖哄煙绠$悊鍛樿褰曟墜鏈鸿摑鐗欏紑閿佹棩蹇�--鍖哄煙绠$悊鍛�") + @GetMapping("setLogByUid") + public Response setLogByUid(String mac, int result,String uname){ + return ainfService.setLogByUid(mac,result,uname); + } } \ No newline at end of file -- Gitblit v1.9.1