From 423f27b076fcd75df04005ae00e47ec26192434a Mon Sep 17 00:00:00 2001 From: xufenglei <xufenglei> Date: Tue, 12 Jun 2018 09:03:58 +0800 Subject: [PATCH] 实体更新 --- src/main/java/com/moral/controller/AccountController.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/moral/controller/AccountController.java b/src/main/java/com/moral/controller/AccountController.java index a535963..3799f3d 100644 --- a/src/main/java/com/moral/controller/AccountController.java +++ b/src/main/java/com/moral/controller/AccountController.java @@ -9,6 +9,7 @@ import javax.servlet.http.HttpServletRequest; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -44,4 +45,10 @@ Integer result = accountService.deleteAccountsByLogic(ids); return new ResultBean<Integer>(result); } + + @GetMapping("{accountName}") + public ResultBean<Integer> getAccountCountByAccountName(@PathVariable("accountName") String accountName) { + Integer result = accountService.getAccountCountByAccountName(accountName); + return new ResultBean<Integer>(result); + } } -- Gitblit v1.8.0