feat:회원가입 관서,부서입력란 추가
parent
29d05ee5a7
commit
094433f9f5
|
|
@ -45,7 +45,7 @@ public class CodeMgtService{
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<CodeMgt> selectCodeMgtOgList() {
|
public List<CodeMgt> selectCodeMgtOgList() {
|
||||||
return codeMgtRepository.findByCategoryCdOrderByItemCdAsc("OG");
|
return codeMgtRepository.findByCategoryCdOrderByItemCdAsc("OG");
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<CodeMgt> selectCodeMgtOfcList() {
|
public List<CodeMgt> selectCodeMgtOfcList() {
|
||||||
|
|
|
||||||
|
|
@ -39,20 +39,18 @@ public class BaseController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/login")
|
@GetMapping("/login")
|
||||||
public ModelAndView goLogin() {
|
public ModelAndView goLogin() {
|
||||||
ModelAndView mav = new ModelAndView("/login/login");
|
ModelAndView mav = new ModelAndView("/login/login");
|
||||||
List<CodeMgt> code = codeMgtService.selectCodeMgtOgList();
|
|
||||||
List<CodeMgt> ccode = codeMgtService.selectCodeMgtOfcList();
|
|
||||||
mav.addObject("OgList", codeMgtService.selectCodeMgtOgList());
|
mav.addObject("OgList", codeMgtService.selectCodeMgtOgList());
|
||||||
mav.addObject("OfcList", codeMgtService.selectCodeMgtOfcList());
|
mav.addObject("OfcList", codeMgtService.selectCodeMgtOfcList());
|
||||||
System.out.println("@@"+code);
|
|
||||||
System.out.println("@@@"+ccode);
|
|
||||||
return mav;
|
return mav;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/login-error")
|
@GetMapping("/login-error")
|
||||||
public ModelAndView loginError() {
|
public ModelAndView loginError() {
|
||||||
ModelAndView mav = new ModelAndView("/login/login");
|
ModelAndView mav = new ModelAndView("/login/login");
|
||||||
|
mav.addObject("OgList", codeMgtService.selectCodeMgtOgList());
|
||||||
|
mav.addObject("OfcList", codeMgtService.selectCodeMgtOfcList());
|
||||||
mav.addObject("loginError", true);
|
mav.addObject("loginError", true);
|
||||||
return mav;
|
return mav;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ function valueCheck(form){
|
||||||
}else{
|
}else{
|
||||||
if(password.val() !== passwordConfirm.val()){
|
if(password.val() !== passwordConfirm.val()){
|
||||||
alert("비밀번호가 같지 않습니다.");
|
alert("비밀번호가 같지 않습니다.");
|
||||||
returnFlag = false;
|
returnFlag = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@
|
||||||
<option value="">--선택--</option>
|
<option value="">--선택--</option>
|
||||||
<option th:each="val : ${OgList}" th:value="${val?.itemCd}" th:utext="${val?.itemValue}">
|
<option th:each="val : ${OgList}" th:value="${val?.itemCd}" th:utext="${val?.itemValue}">
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<label for="ofcCd" class="col-sm-2 col-form-label text-center">부서</label>
|
<label for="ofcCd" class="col-sm-2 col-form-label text-center">부서</label>
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue