인생 디벨로퍼

개인정보 detail 필수값 뿌리기 (select) 본문

Project/Mini Project - Rodonin (구인구직)

개인정보 detail 필수값 뿌리기 (select)

뫄뫙뫄 2023. 3. 6. 21:02
728x90

개인정보 필수값은 개인정보 detail 페이지를 포함한 모든 resume 페이지에 동일하게 적용되는 부분이다.


Controller

empInfo 를 키값으로 model에 담기.

세션에 저장된 emlpoyeeId 값으로 조회해아 하기 때문에,

principal.getId() 로 조회 한다.


Repository

 


.xml


view

 <div class="my_name">
                  <h3>${empInfo.employeeFullname}</h3>
                </div>

                <div class="d-flex">
                  <div>
                    <div>
                      <span class="my_info_title">아이디</span>
                      <span class="my_info">${empInfo.employeeName}</span>
                    </div>
                    <div>
                      <span class="my_info_title">생년월일</span>
                      <span class="my_info">${empInfo.employeeBirth}</span>
                    </div>
                    <div>
                      <span class="my_info_title">연락처</span>
                      <span class="my_info">${empInfo.employeeTel}</span>
                    </div>
                  </div>
                  <div class="my_info_title_margin">
                    <div>
                      <span class="my_info_title">주소</span>
                      <span class="my_info">${empInfo.employeeAddress}</span>
                    </div>
                    <div>
                      <span class="my_info_title">이메일</span>
                      <span class="my_info">${empInfo.employeeEmail}</span>
                    </div>
                  </div>
                </div>
              </div>
              <div class="my_info_thumbnail">
                <img src="${empInfo.employeeThumbnail == null ? '/images/kakao.jpg' : empInfo.employeeThumbnail}"
                  alt="Current Photo" class="img-fluid" id="imagePreview" />
              </div>
            </div>
          </div>
        </div>

model에 담은 키값 empInfo 로, 모든 값을 뿌려준다. 

728x90