feat : MapStruct 매퍼 하나로 통합. QueryDsl 매서드 내에서 변환하여 리턴하도록 로직 구성

pull/11/head
Kurt92 1 month ago
parent 1c3a4aac93
commit 93a8c08486

@ -248,18 +248,18 @@
// .val 은 제이쿼리 함수로 테그의 value를 세팅하는 함수이다.
// 기본적으로 제이쿼리를 쓸텐데 아래 링크를 참조한다.
// https://xianeml.tistory.com/70
$("#mmKeum1").val(response.data.mmKeum1);
$("#mmKeum2").val(response.data.mmKeum2);
$("#mmSgcont").val(response.data.mmSgcont);
$("#mmSgnm").val(response.data.mmSgnm);
$("#mmSgtel").val(response.data.mmSgtel);
$("#mmDate").val(response.data.mmDate);
$("#mmKeum1").val(response.data.cpMain.mmKeum1);
$("#mmKeum2").val(response.data.cpMain.mmKeum2);
$("#mmSgcont").val(response.data.cpMain.mmSgcont);
$("#mmSgnm").val(response.data.cpMain.mmSgnm);
$("#mmSgtel").val(response.data.cpMain.mmSgtel);
$("#mmDate").val(response.data.cpMain.mmDate);
$("#mmCode").text(response.data.mmCode.substring(5).replace(/^(\d{4})(.*)$/, '$1-$2'))
$("#mmCode").text(response.data.cpMain.mmCode.substring(5).replace(/^(\d{4})(.*)$/, '$1-$2'))
// 이미지 태그 동적 추가
const mmCode = response.data.mmCode;
const mmCode = response.data.cpMain.mmCode;
const imgPath = "${sessionScope.sessionVO.imgPath}";
console.log(imgPath)
const thumbContainer = $("#photoThumbs");

Loading…
Cancel
Save