전화번호 바뀐것 적용

main
이범준 11 months ago
parent 2453c5c410
commit 7927686c25

@ -178,8 +178,8 @@ public class CommSmartPlatformFISServiceImpl implements CommSmartPlatformFISServ
strbuf.append("(타행이체시 수수료 본인 부담)");
map.put("virtualAcc", strbuf.toString());
map.put("ofiTel", "02-2290-6438~9, 02-2290-6179");
map.put("mainTel", "02-2290-6438");
map.put("ofiTel", "");
map.put("mainTel", "1666-6439");
// 모바일고지 확인상태 업데이트
@ -406,8 +406,8 @@ public class CommSmartPlatformFISServiceImpl implements CommSmartPlatformFISServ
strbuf.append("(타행이체시 수수료 본인 부담)");
map.put("virtualAcc", strbuf.toString());
map.put("ofiTel", "02-2290-6438~9, 02-2290-6179");
map.put("mainTel", "02-2290-6438");
map.put("ofiTel", "");
map.put("mainTel", "1666-6439");
// 모바일고지 확인상태 업데이트
@ -597,8 +597,8 @@ public class CommSmartPlatformFISServiceImpl implements CommSmartPlatformFISServ
strbuf.append("(타행이체시 수수료 본인 부담)");
map.put("virtualAcc", strbuf.toString());
map.put("ofiTel", "02-2290-6438~9, 02-2290-6179");
map.put("mainTel", "02-2290-6438");
map.put("ofiTel", "");
map.put("mainTel", "1666-6439");
// 모바일고지 확인상태 업데이트
param.put("MOB_NOTI_SEQ", obj.get(0).get("MOB_NOTI_SEQ").toString());
@ -782,7 +782,7 @@ public class CommSmartPlatformFISServiceImpl implements CommSmartPlatformFISServ
map.put("virtualAcc", strbuf.toString());
map.put("ofiTel", "02-2290-6438~9, 02-2290-6179");
map.put("ofiTel", "1666-6439");
result.setData(ResultSmartPlatform.RESULT_KEY_DEFAULT, map);
result.setMsg(ResultSmartPlatform.STATUS_SUCESS, "정상적으로 처리되었습니다.");
@ -863,20 +863,23 @@ public class CommSmartPlatformFISServiceImpl implements CommSmartPlatformFISServ
public Map<String, Object> selectMobliePenaltyNotificationKakao(Map<String, String> param) throws Exception {
ResultSmartPlatform result = new ResultSmartPlatform();
logger.info("############################################## 1");
List<Map<String, Object>> obj = null;
try {
Date time = new Date();
SimpleDateFormat sdf = new SimpleDateFormat ("yyyyMMddHHmmss");
Map<String, String> mapOrg = new HashMap<String, String>();
String secureResult = cfsCommonService.findCommonSecureGet("sysId");
mapOrg.put("sysId", secureResult);
// 카카오 인증 검증
Map<String, String> mapOrg = new HashMap<String, String>();
mapOrg.put("sysId", secureResult);
mapOrg.put("tranDate", "20190923000000");
mapOrg.put("tranDate", sdf.format(time));
//mapOrg.put("transId", param.get("insttDelngNo"));
mapOrg.put("transId", "11111");
mapOrg.put("txId", URLEncoder.encode(param.get("txId"), "UTF-8"));
mapOrg.put("envelopeId", URLEncoder.encode(param.get("txId"), "UTF-8"));
mapOrg.put("txId", URLEncoder.encode(param.get("txId"), "UTF-8"));
mapOrg.put("token", URLEncoder.encode(param.get("token"), "UTF-8"));
//String url = "http://192.168.0.137:8081/cfs/trsmrcv/testCallSearchCarInfo11111.do";
@ -901,34 +904,79 @@ public class CommSmartPlatformFISServiceImpl implements CommSmartPlatformFISServ
logger.info("============= A");
JSONParser parser = new JSONParser();
JSONObject jsonParamSub = (JSONObject)parser.parse(jsonParam.get("data").toString());
if(jsonParamSub.get("result").toString().equals("Y") == false) {
result.setErrorMsg("E001", "카카오 인증 검증 실패 !!!!", null);
logger.info(result.getResult().get("resultMessage").toString());
return result.getResult();
}
}
//열람 확인 토큰
url = cfsCommonService.findCommonSecureGet("ITF_CFS_O_053");
CallWebService callWebService_2 = new CallWebService(url);
Map<String, String> mapResult_2 = callWebService_2.callWebServicePost(mapOrg);
System.out.println("==== mapResult_2" + mapResult_2.toString());
if(mapResult_2 == null || mapResult_2.get("result").toString().equals("FAIL") == true) {
// 조회 실패
result.setErrorMsg("E001", "카카오 인증 검증 실패 !!!!", null);
logger.info(result.getResult().get("resultMessage").toString());
return result.getResult();
}
JSONObject jsonParam_2 = new JSONObject();
for(Map.Entry<String,String> entry : mapResult_2.entrySet()){
jsonParam_2.put(entry.getKey().toString(), entry.getValue().toString());
System.out.println("key : " + entry.getKey() + " , value : " + entry.getValue());
}
logger.info("============= B");
JSONObject jsonParamSub_2 = (JSONObject)parser.parse(jsonParam_2.get("data").toString());
if(jsonParamSub_2.get("result").toString().equals("Y") == false) {
result.setErrorMsg("E001", "카카오 인증 검증 실패 !!!!", null);
logger.info(result.getResult().get("resultMessage").toString());
return result.getResult();
}
//응답 요청
url = cfsCommonService.findCommonSecureGet("ITF_CFS_O_008");
CallWebService callWebService_3 = new CallWebService(url);
Map<String, String> mapResult_3 = callWebService_3.callWebServicePost(mapOrg);
System.out.println("==== mapResult_3" + mapResult_3.toString());
JSONObject jsonParam_3 = new JSONObject();
for(Map.Entry<String,String> entry : mapResult_3.entrySet()){
jsonParam_3.put(entry.getKey().toString(), entry.getValue().toString());
System.out.println("key : " + entry.getKey() + " , value : " + entry.getValue());
}
JSONObject jsonParamSub_3 = (JSONObject)parser.parse(jsonParam_3.get("data").toString());
// 모바일 고지 확인 만료일자 체크 "completedAt": "20190926140305",
Date today = new Date();
String strDate = jsonParamSub.get("completedAt").toString();
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
Date date = sdf.parse(strDate);
String strDate = jsonParamSub_3.get("completedAt").toString();
strDate = strDate.replaceAll("[^0-9]", "");
Date date = sdf.parse(strDate);
if(date.getTime() - today.getTime() > 0) {
logger.info("============= C");
result.setErrorMsg("E001", "카카오 인증 검증 실패(기한만료)", null);
logger.info(result.getResult().get("resultMessage").toString());
return result.getResult();
}
String str = "";
obj = commSmartPlatformFISDao.selectMobliePenaltyNotification(param);
if(obj != null && obj.size() > 0) {
Map<String, Object> map = new HashMap<String, Object>();
logger.info("############################################## 2");
map.put("insttNo", obj.get(0).get("INSTTNO"));
str = String.format("%s%s%s%06d"
map.put("insttNo", obj.get(0).get("INSTTNO"));
String str = String.format("%s%s%s%06d"
, obj.get(0).get("FARE_OFFICE_ID"), obj.get(0).get("BOOTH_ID")
, obj.get(0).get("PENALTY_MANAGE_YEAR"), Integer.parseInt(obj.get(0).get("PENALTY_SEQNO").toString())
);
@ -995,7 +1043,7 @@ public class CommSmartPlatformFISServiceImpl implements CommSmartPlatformFISServ
map.put("virtualAcc", strbuf.toString());
map.put("ofiTel", "02-2290-6438~9, 02-2290-6179");
map.put("ofiTel", "1666-6439");
result.setData(ResultSmartPlatform.RESULT_KEY_DEFAULT, map);
result.setMsg(ResultSmartPlatform.STATUS_SUCESS, "정상적으로 처리되었습니다.");
@ -1202,7 +1250,7 @@ public class CommSmartPlatformFISServiceImpl implements CommSmartPlatformFISServ
map.put("virtualAcc", strbuf.toString());
map.put("ofiTel", "02-2290-6438~9, 02-2290-6179");
map.put("ofiTel", "1666-6439");
result.setData(ResultSmartPlatform.RESULT_KEY_DEFAULT, map);
result.setMsg(ResultSmartPlatform.STATUS_SUCESS, "정상적으로 처리되었습니다.");

Loading…
Cancel
Save