feat: 모바일 페이지 테스트용 확인 기능 추가

main
jhseo 9 months ago
parent 68cfc0751c
commit 2ba6cb6167

@ -1,5 +1,6 @@
package kr.xit.biz.mbl.mapper;
import kr.xit.biz.ens.model.cntc.CntcDTO;
import kr.xit.biz.ens.model.kakao.KkopayDocDTO.OneTimeToken;
import kr.xit.biz.mbl.model.MobilePageDTO.MobilePageManage;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
@ -23,4 +24,5 @@ import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
public interface IMobilePageMapper {
MobilePageManage selectKkoMobilePage(final OneTimeToken dto);
<T> MobilePageManage selectKtMobilePage(final T t);
MobilePageManage selectXitMobilePage(final CntcDTO.XitPage dto);
}

@ -1,5 +1,6 @@
package kr.xit.biz.mbl.service;
import kr.xit.biz.ens.model.cntc.CntcDTO;
import kr.xit.biz.ens.model.kakao.KkopayDocDTO.OneTimeToken;
import kr.xit.biz.ens.model.kt.KtTokenDTO.KtTokenConfirmRequest;
import kr.xit.core.model.IApiResponse;
@ -24,4 +25,6 @@ public interface IMobilePageService {
IApiResponse findKkoMyDocReadyAndMblPage(OneTimeToken reqDTO);
IApiResponse findKtMblPage(final KtTokenConfirmRequest reqDTO);
IApiResponse findXitMyDocReadyAndMblPage(final CntcDTO.XitPage reqDTO);
}

@ -1,5 +1,6 @@
package kr.xit.biz.mbl.service;
import kr.xit.biz.ens.model.cntc.CntcDTO;
import kr.xit.biz.ens.model.kakao.KkopayDocDTO;
import kr.xit.biz.ens.model.kt.KtCommonDTO;
import kr.xit.biz.ens.model.kt.KtTokenDTO;
@ -124,4 +125,24 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
}
throw BizRuntimeException.create(cfmRes.getResultCd(), cfmRes.toStringErrorMsg());
}
/**
* <pre>
* XIT </h3>
* - : unitySndngDetailId
* - redirect url
*
* @param reqDTO CntcDTO.XitPage
* </pre>
*/
@Override
@TraceLogging
public IApiResponse findXitMyDocReadyAndMblPage(final CntcDTO.XitPage reqDTO) {
// unitySndngDetailId로 데이타 조회
final MobilePageManage mobilePageManage = mapper.selectXitMobilePage(reqDTO);
if(mobilePageManage == null) throw BizRuntimeException.create("데이타 오류[내문서함 문서가 없습니다]");
return ApiResponseDTO.success(mobilePageManage.getMobilePageCn());
}
}

@ -5,6 +5,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import javax.servlet.http.HttpServletRequest;
import kr.xit.biz.common.ApiConstants;
import kr.xit.biz.common.ApiConstants.SignguCode;
import kr.xit.biz.ens.model.cntc.CntcDTO;
import kr.xit.biz.ens.model.kakao.KkopayDocDTO;
import kr.xit.biz.ens.model.kt.KtTokenDTO;
import kr.xit.biz.mbl.service.IMobilePageService;
@ -90,4 +91,19 @@ public class MobilePageController {
}
return service.findKtMblPage(cfmReqDTO);
}
/**
* <pre>
* XIT
* - mens-web : {@code EnsInboundApiController.findXitMblPage}
* <a href="http://localhost:8080/api/web/mbl/v1/xit/mblPage.do">xit mobile page</a>
* @param reqDTO CntcDTO.XitPage
* @return IApiResponse String return
* </pre>
*/
@Operation(summary = "XIT 모바일 데이타 요청(모바일 페이지에서 호출)", description = "XIT 모바일 데이타 요청(모바일 페이지에서 호출)")
@PostMapping(value = "/xit/mblPage", produces = MediaType.APPLICATION_JSON_VALUE)
public IApiResponse findXitMyDocReadyAndMblData(@RequestBody final CntcDTO.XitPage reqDTO) {
return service.findXitMyDocReadyAndMblPage(reqDTO);
}
}

@ -28,4 +28,11 @@
WHERE tekbd.unity_sndng_detail_id = #{srcKey}
</select>
<select id="selectXitMobilePage" resultType="kr.xit.biz.mbl.model.MobilePageDTO$MobilePageManage">
/** ens-mbl-mysql-mapper|selectXitMobilePage-XIT 모바일 페이지 콘텐트 조회|jhseo */
SELECT tempm.mobile_page_cn
FROM tb_ens_mobile_page_manage tempm
WHERE sndng_detail_id = #{unitySndngDetailId}
</select>
</mapper>

@ -1,11 +1,11 @@
package kr.xit.biz.ens.model.cntc;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import kr.xit.biz.common.AuditFields;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.*;
import lombok.experimental.SuperBuilder;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
@ -265,4 +265,19 @@ public class CntcDTO {
*/
private String taxNum4;
}
@Schema(name = "XitPage DTO", description = "XIT 모바일 페이지 DTO")
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString
@JsonInclude(JsonInclude.Include.NON_NULL)
public static class XitPage {
/**
* Xit Detail ID( - max:40)
*/
@Schema(requiredMode = Schema.RequiredMode.AUTO, title = "Xit Detail ID(max:40)", example = " ")
@Length(max = 40, message = "Xit Detail ID(max:40)")
private String unitySndngDetailId;
}
}

Loading…
Cancel
Save