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 | 37 ++++++++++++++++++++++++++----------- 1 files changed, 26 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/whyc/controller/AppController.java b/src/main/java/com/whyc/controller/AppController.java index 67b8336..2eb6d66 100644 --- a/src/main/java/com/whyc/controller/AppController.java +++ b/src/main/java/com/whyc/controller/AppController.java @@ -22,27 +22,25 @@ @Autowired private AreaInfService ainfService; - @Autowired - private LockCtlLogService ctlLogService; - @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(){ - return ainfService.getAinfByManage(); + public Response getAinfByManage(String uname){ + return ainfService.getAinfByManage(uname); } @ApiOperation(value = "鍖哄煙绠$悊鍛樼偣鍑绘寚瀹氬尯鍩熸煡鐪嬫墍鏈夌殑閿佷俊鎭�--鍖哄煙绠$悊鍛�") @@ -53,8 +51,8 @@ @ApiOperation(value = "鍖哄煙绠$悊鍛樼偣鍑绘煡鐪嬪紑閿佹搷浣滆褰�--鍖哄煙绠$悊鍛�") @GetMapping("getCtlog") - public Response getCtlog(int pageNum, int pageSize){ - return ainfService.getCtlog(pageNum,pageSize); + public Response getCtlog(int pageNum, int pageSize,String uname){ + return ainfService.getCtlog(pageNum,pageSize,uname); } @ApiOperation(value = "鍖哄煙绠$悊鍛樻煡鐪嬫寚瀹氬尯鍩熶笅鐨勯攣鐨勭姸鎬�--鍖哄煙绠$悊鍛�") @@ -63,4 +61,21 @@ 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