diff --git a/src/main/java/com/no1/wms/account/AccountController.java b/src/main/java/com/no1/wms/account/AccountController.java index b4ebfd8..5cf6ea9 100644 --- a/src/main/java/com/no1/wms/account/AccountController.java +++ b/src/main/java/com/no1/wms/account/AccountController.java @@ -30,6 +30,7 @@ public class AccountController { int count = accountService.count(searchn, search, startRow, perPage); + int pageNum = 4;//보여질 페이지 번호 수 int totalPages = count / perPage + (count % perPage > 0 ? 1 : 0); // 전체 페이지 수 @@ -37,7 +38,7 @@ public class AccountController { //스톡서비스로 재고 리스트 출력 메서트 작성 - List list = accountService.selectAll(searchn, search, searchn, perPage); + List list = accountService.selectAll(searchn, search, startRow, perPage); int begin = (page - 1) / pageNum * pageNum + 1; int end = begin + pageNum - 1; @@ -48,8 +49,9 @@ public class AccountController { mav.addObject("end", end); mav.addObject("searchn", searchn); mav.addObject("search", search); - mav.addObject("page", startRow); + mav.addObject("pageNum", pageNum); mav.addObject("begin", begin); + mav.addObject("page", page); mav.setViewName("account/list"); return mav; } diff --git a/src/main/java/com/no1/wms/login/LoginController.java b/src/main/java/com/no1/wms/login/LoginController.java index 7ea9891..991231a 100644 --- a/src/main/java/com/no1/wms/login/LoginController.java +++ b/src/main/java/com/no1/wms/login/LoginController.java @@ -34,6 +34,21 @@ public class LoginController { } + @PostMapping("/pass_reset_call") + @ResponseBody + public String passResetCall(AccountDto dto, Gson gson) + { + return gson.toJson("s"); + + } + + @GetMapping("/passreset") + public String passReset() + { + return "pass_reset_call"; + + } + @PostMapping("/login/check_password") diff --git a/src/main/resources/mappers/AccountMapper.xml b/src/main/resources/mappers/AccountMapper.xml index 5696769..fa099aa 100644 --- a/src/main/resources/mappers/AccountMapper.xml +++ b/src/main/resources/mappers/AccountMapper.xml @@ -65,8 +65,8 @@ from account acc join authority auth join authority auth2 on acc.personal_authority_id = auth.id and acc.group_authority_id = auth2.id - acc.activation = 1 and acc.name like concat('%',#{search},'%') - acc.activation = 1 and acc.employee_number like concat('%',#{search},'%') + acc.activation = 1 and acc.name like concat('%',#{search},'%') + acc.activation = 1 and acc.employee_number like concat('%',#{search},'%') order by acc.id desc limit #{start}, #{perPage} @@ -140,6 +140,9 @@ update account SET activation = false WHERE id = #{id} + + update account SET password = #{password} WHERE employee_number = #{employeeNumber} + \ No newline at end of file diff --git a/src/main/resources/static/css/account.css b/src/main/resources/static/css/account.css new file mode 100644 index 0000000..1774d11 --- /dev/null +++ b/src/main/resources/static/css/account.css @@ -0,0 +1,3 @@ +tbody tr{ + cursor: pointer; +} \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/account/list.jsp b/src/main/webapp/WEB-INF/views/account/list.jsp index 392626b..d9f7422 100644 --- a/src/main/webapp/WEB-INF/views/account/list.jsp +++ b/src/main/webapp/WEB-INF/views/account/list.jsp @@ -1,7 +1,7 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> - + -
+
-

계정 관리

+

계정 관리


@@ -72,60 +78,56 @@
-
-
-
-
- -
-
-
-
- - - - - - - - - - - - - -
사번사용자 명활성 여부
${dto.employeeNumber}${dto.name} - - O - X - -
-
-
-
-
-
- - [<] - - - ${i} - - - [>] - -
-
+
+
+ + + + +
+ + +
+
+
+ + + + + + + + + + + + + +
사번사용자 명활성 여부
${dto.employeeNumber}${dto.name} + + O + X + +
+
+
+
+
+
+
diff --git a/src/main/webapp/WEB-INF/views/authority/list.jsp b/src/main/webapp/WEB-INF/views/authority/list.jsp index 916501b..88631fe 100644 --- a/src/main/webapp/WEB-INF/views/authority/list.jsp +++ b/src/main/webapp/WEB-INF/views/authority/list.jsp @@ -70,7 +70,7 @@
-
+
-
- - -
diff --git a/src/main/webapp/WEB-INF/views/modal/login.jsp b/src/main/webapp/WEB-INF/views/modal/login.jsp index fc03255..643cf70 100644 --- a/src/main/webapp/WEB-INF/views/modal/login.jsp +++ b/src/main/webapp/WEB-INF/views/modal/login.jsp @@ -66,7 +66,7 @@ diff --git a/src/main/webapp/WEB-INF/views/modal/pass_reset_call.jsp b/src/main/webapp/WEB-INF/views/modal/pass_reset_call.jsp new file mode 100644 index 0000000..a75f4e5 --- /dev/null +++ b/src/main/webapp/WEB-INF/views/modal/pass_reset_call.jsp @@ -0,0 +1,67 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%> + + + + + + + + + + + + No1 WMS + + + + + +
+ +

비밀번호 초기화 요청

+ +
+ + +
+ +

© 2023–2024

+
+ + + \ No newline at end of file