feat:회원가입 관서,부서입력란 추가
parent
24fa44aada
commit
29d05ee5a7
|
|
@ -43,4 +43,13 @@ public class CodeMgtService{
|
|||
public List<CodeMgt> selectCommonCodeList() {
|
||||
return codeMgtRepository.findByUseChkOrderByItemCdAsc("T");
|
||||
}
|
||||
|
||||
public List<CodeMgt> selectCodeMgtOgList() {
|
||||
return codeMgtRepository.findByCategoryCdOrderByItemCdAsc("OG");
|
||||
}
|
||||
|
||||
public List<CodeMgt> selectCodeMgtOfcList() {
|
||||
return codeMgtRepository.findByCategoryCdOrderByItemCdAsc("OFC");
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,12 +2,17 @@ package com.dbnt.faisp.controller;
|
|||
|
||||
import com.dbnt.faisp.userInfo.model.UserInfo;
|
||||
import com.dbnt.faisp.codeMgt.CodeMgtService;
|
||||
import com.dbnt.faisp.codeMgt.model.CodeCatg;
|
||||
import com.dbnt.faisp.codeMgt.model.CodeMgt;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.security.core.annotation.AuthenticationPrincipal;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
@RestController
|
||||
|
|
@ -36,6 +41,12 @@ public class BaseController {
|
|||
@GetMapping("/login")
|
||||
public ModelAndView goLogin() {
|
||||
ModelAndView mav = new ModelAndView("/login/login");
|
||||
List<CodeMgt> code = codeMgtService.selectCodeMgtOgList();
|
||||
List<CodeMgt> ccode = codeMgtService.selectCodeMgtOfcList();
|
||||
mav.addObject("OgList", codeMgtService.selectCodeMgtOgList());
|
||||
mav.addObject("OfcList", codeMgtService.selectCodeMgtOfcList());
|
||||
System.out.println("@@"+code);
|
||||
System.out.println("@@@"+ccode);
|
||||
return mav;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,9 @@ function valueCheck(form){
|
|||
const userId = targetForm.find("#userId").val();
|
||||
const password = targetForm.find("#modalPassword");
|
||||
const passwordConfirm = targetForm.find("#passwordConfirm");
|
||||
const userNm = targetForm.find("#userNm").val()
|
||||
const userNm = targetForm.find("#userNm").val();
|
||||
const ogCd = targetForm.find("#ogCd").val();
|
||||
const ofcCd = targetForm.find("#ofcCd").val();
|
||||
let returnFlag = true;
|
||||
|
||||
if(!userId){
|
||||
|
|
@ -74,5 +76,13 @@ function valueCheck(form){
|
|||
}
|
||||
}
|
||||
}
|
||||
if(!ogCd){
|
||||
alert("관서를 선택해주세요.");
|
||||
returnFlag = false;
|
||||
}
|
||||
if(!ofcCd){
|
||||
alert("부서를 선택해주세요.");
|
||||
returnFlag = false;
|
||||
}
|
||||
return returnFlag;
|
||||
}
|
||||
|
|
@ -97,6 +97,24 @@
|
|||
<input type="tel" class="form-control" id="telP">
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-3 row">
|
||||
<label for="ogCd" class="col-sm-2 col-form-label text-center">관서</label>
|
||||
<div class="col-sm-4">
|
||||
<select class="form-control" id="ogCd" name="ogCd">
|
||||
<option value="">--선택--</option>
|
||||
<option th:each="val : ${OgList}" th:value="${val?.itemCd}" th:utext="${val?.itemValue}">
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<label for="ofcCd" class="col-sm-2 col-form-label text-center">부서</label>
|
||||
<div class="col-sm-4">
|
||||
<select class="form-control" id="ofcCd" name="ofcCd">
|
||||
<option value="">--선택--</option>
|
||||
<option th:each="val : ${OfcList}" th:value="${val?.itemCd}" th:utext="${val?.itemValue}">
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-3 row" >
|
||||
<label for="address" class="col-sm-2 col-form-label text-center">주소</label>
|
||||
<div class="col-sm-8">
|
||||
|
|
|
|||
Loading…
Reference in New Issue