feat: kt BC/GIBIS 모바일 페이지 조회 반영

main
Jonguk. Lim 3 months ago
parent 12ee3f1599
commit 0769129417

@ -85,7 +85,7 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
.build() .build()
); );
if(!res.isSuccess()){ if(!res.isSuccess()){
throw BizRuntimeException.create(res.getMessage()); throw BizRuntimeException.create(res.getCode(), res.getMessage());
} }
return mobilePageManage.getMobilePageCn(); return mobilePageManage.getMobilePageCn();
} }
@ -125,9 +125,8 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
.build() .build()
); );
if(!res.isSuccess()){ if(!res.isSuccess()){
throw BizRuntimeException.create(res.getMessage()); throw BizRuntimeException.create(res.getCode(), res.getMessage());
} }
return mobilePageManage.getMobilePageCn(); return mobilePageManage.getMobilePageCn();
} }

@ -73,6 +73,9 @@ public class MobilePageController {
}else{ }else{
mav.addObject("details", service.findKkotalkReadyAndMblPage(reqDTO));; mav.addObject("details", service.findKkotalkReadyAndMblPage(reqDTO));;
} }
} catch (BizRuntimeException e){
mav.addObject("errCode", e.getErrorCode());
mav.addObject("errMsg", e.getMessage());
}catch (Exception e){ }catch (Exception e){
mav.addObject("errCode", e.getMessage()); mav.addObject("errCode", e.getMessage());
mav.addObject("errMsg", e.getMessage()); mav.addObject("errMsg", e.getMessage());
@ -150,6 +153,9 @@ public class MobilePageController {
} }
mav.addObject("details", mblCnts); mav.addObject("details", mblCnts);
} catch (BizRuntimeException e){
mav.addObject("errCode", e.getErrorCode());
mav.addObject("errMsg", e.getMessage());
} catch (Exception e){ } catch (Exception e){
mav.addObject("errCode", e.getMessage()); mav.addObject("errCode", e.getMessage());
mav.addObject("errMsg", e.getMessage()); mav.addObject("errMsg", e.getMessage());

Loading…
Cancel
Save