Merge branch 'master' of http://192.168.0.157:3000/DBNT/GGWEB
# Conflicts: # src/main/webapp/css/style.cssmaster
commit
74263cf57d
|
|
@ -110,7 +110,7 @@ public class CommonController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/userIdCheck")
|
@RequestMapping(value="/userIdCheck")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public String checkId(@RequestParam("checkId")String checkId) throws Exception {
|
public String userIdCheck(@RequestParam("checkId")String checkId) throws Exception {
|
||||||
try {
|
try {
|
||||||
int cnt = userService.selectUserIdCheck(checkId);
|
int cnt = userService.selectUserIdCheck(checkId);
|
||||||
if(cnt > 0) {
|
if(cnt > 0) {
|
||||||
|
|
@ -177,24 +177,19 @@ public class CommonController {
|
||||||
}
|
}
|
||||||
// 아이디 찾기 페이지 이동
|
// 아이디 찾기 페이지 이동
|
||||||
@RequestMapping(value = "findId")
|
@RequestMapping(value = "findId")
|
||||||
public String findIdView(){
|
public String findIdView(){ return "anonymous/html/findId"; }
|
||||||
|
|
||||||
return "anonymous/html/findId";
|
|
||||||
}
|
|
||||||
// 아이디 찾기 실행
|
// 아이디 찾기 실행
|
||||||
|
|
||||||
@RequestMapping(value = "findId", method = RequestMethod.POST)
|
@RequestMapping(value = "searchUserInfo")
|
||||||
public String findIdAction(UserVO userVO, Model model) {
|
@ResponseBody
|
||||||
UserVO user = userService.findId(userVO);
|
public String searchUserInfo(UserVO userVO) {
|
||||||
|
userVO = userService.findId(userVO);
|
||||||
|
|
||||||
if (user == null) {
|
if (userVO == null ) {
|
||||||
model.addAttribute("check", 1);
|
return "userNull";
|
||||||
} else {
|
|
||||||
model.addAttribute("check", 2);
|
|
||||||
model.addAttribute("id", user.getUserid());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return "anonymous/html/findId";
|
return userVO.getUserid();
|
||||||
|
|
||||||
}
|
}
|
||||||
//pw찾기 페이지 이동
|
//pw찾기 페이지 이동
|
||||||
|
|
|
||||||
|
|
@ -140,9 +140,12 @@
|
||||||
WHERE userid = #{userid}
|
WHERE userid = #{userid}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<!--아이디 비밀번호찾기-->
|
<!--아이디 비밀번호 찾기-->
|
||||||
<select id="findId" resultType="userVO">
|
<select id="findId" resultType="userVO">
|
||||||
select * from t_user where name=#{name} and phonenum=#{phonenum}
|
select userid
|
||||||
|
from t_user
|
||||||
|
where
|
||||||
|
name=#{name} and company=#{company} and email=#{email}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findPwd" resultType="userVO">
|
<select id="findPwd" resultType="userVO">
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<table class="detail_table">
|
<table class="detail_table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -140,6 +139,7 @@
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${useRequestVO.status eq '99'}">
|
<c:when test="${useRequestVO.status eq '99'}">
|
||||||
<table class="detail_table" style="margin-right: 1em">
|
<table class="detail_table" style="margin-right: 1em">
|
||||||
|
|
|
||||||
|
|
@ -3,3 +3,83 @@
|
||||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||||
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
|
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
|
||||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).on('click', '#checkId', function (){
|
||||||
|
checkId();
|
||||||
|
})
|
||||||
|
|
||||||
|
function checkId(){
|
||||||
|
if(inputCheck()){
|
||||||
|
$.ajax({
|
||||||
|
url: "/searchUserInfo",
|
||||||
|
type: "GET",
|
||||||
|
data: {
|
||||||
|
name: $("#username").val(),
|
||||||
|
company: $("#company").val(),
|
||||||
|
email: $("#email").val()
|
||||||
|
},
|
||||||
|
success: function (result) {
|
||||||
|
checkIdAfter(result)
|
||||||
|
},
|
||||||
|
error: function (request, status, error) {
|
||||||
|
alert("가입정보가 일치 하지 않습니다.\n 관리자에게 문의해주세요.");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function inputCheck(){
|
||||||
|
if(!$("#username").val()){
|
||||||
|
alert("이름을 입력해주세요.")
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(!$("#company").val()){
|
||||||
|
alert("회사명을 입력해주세요.")
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(!$("#email").val()){
|
||||||
|
alert("이메일을 입력해주세요.")
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function checkIdAfter(result) {
|
||||||
|
if(result==="userNull"){
|
||||||
|
alert("입력된 가입 정보가 없습니다.")
|
||||||
|
}else{
|
||||||
|
alert("해당 정보로 가입된 ID는 "+result+" 입니다.")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row justify-content-end">
|
||||||
|
<div class="col-12 row m-1">
|
||||||
|
<label for="username" class="col-4 text-end">이름</label>
|
||||||
|
<div class="col-8">
|
||||||
|
<input type="text" class="form-control" id="username">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-12 row m-1">
|
||||||
|
<label for="username" class="col-4 text-end">회사명</label>
|
||||||
|
<div class="col-8">
|
||||||
|
<input type="text" class="form-control" id="company">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-12 row m-1">
|
||||||
|
<label for="username" class="col-4 text-end">email</label>
|
||||||
|
<div class="col-8">
|
||||||
|
<input type="email" class="form-control" id="email">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-8">
|
||||||
|
<button type="button" id="checkId" class="btn btn-primary m-3">가입정보 확인</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue