|
|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package cfs.schd;
|
|
|
|
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Calendar;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
@ -147,20 +148,28 @@ public class ExemptCarInfo {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void getRdcxptInfoNtttnVhcle() {
|
|
|
|
|
public boolean getRdcxptInfoNtttnVhcle() {
|
|
|
|
|
ResultSmartPlatform result = new ResultSmartPlatform();
|
|
|
|
|
try {
|
|
|
|
|
List<Map<String, Object>> dspsnList = new ArrayList<Map<String,Object>>();
|
|
|
|
|
String url = "";
|
|
|
|
|
|
|
|
|
|
try{
|
|
|
|
|
//국가유공자 데이터 추출
|
|
|
|
|
List<Map<String, Object>> dspsnList = commSmartPlatformPRPService.exemptNtttn();
|
|
|
|
|
dspsnList = commSmartPlatformPRPService.exemptNtttn();
|
|
|
|
|
|
|
|
|
|
if(dspsnList == null || dspsnList.size() == 0){
|
|
|
|
|
logger.info("getRdcxptInfoNtttnVhcle_조회 실패(국가유공자 목록 없음)");
|
|
|
|
|
|
|
|
|
|
logger.info("getRdcxptInfoNtttnVhcle_조회 실패(국가유공자 목록 없음)");
|
|
|
|
|
result.setMsg(ResultSmartPlatform.STATUS_ERROR, ResultSmartPlatform.STATUS_ERROR_MESSAGE);
|
|
|
|
|
return ;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
url = cfsCommonService.findCommonSecureGet("ITF_FIS_O_012");
|
|
|
|
|
|
|
|
|
|
for(Map<String, Object> dspsn : dspsnList){
|
|
|
|
|
}catch(Exception e) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for(Map<String, Object> dspsn : dspsnList){
|
|
|
|
|
try {
|
|
|
|
|
//파라미터 설정
|
|
|
|
|
Map<String, String> pMap = new HashMap<String, String>();
|
|
|
|
|
|
|
|
|
|
@ -169,8 +178,7 @@ public class ExemptCarInfo {
|
|
|
|
|
pMap.put("transId", dspsn.get("TRANS_ID").toString());
|
|
|
|
|
pMap.put("carNo", dspsn.get("CAR_NO").toString());
|
|
|
|
|
|
|
|
|
|
// 사전등록결제 웹서비스 호출
|
|
|
|
|
String url = cfsCommonService.findCommonSecureGet("ITF_FIS_O_012");
|
|
|
|
|
//국가유공자 웹서비스 호출
|
|
|
|
|
CallWebService callWebService = new CallWebService(url);
|
|
|
|
|
Map<String, String> map = callWebService.callWebServicePost(pMap);
|
|
|
|
|
|
|
|
|
|
@ -182,56 +190,61 @@ public class ExemptCarInfo {
|
|
|
|
|
logger.info("getRdcxptInfoDspsnVhcle_조회 실패");
|
|
|
|
|
|
|
|
|
|
result.setMsg(ResultSmartPlatform.STATUS_ERROR, ResultSmartPlatform.STATUS_ERROR_MESSAGE);
|
|
|
|
|
return ;
|
|
|
|
|
}else {
|
|
|
|
|
//성공 처리 Table Insert
|
|
|
|
|
JSONParser parser = new JSONParser();
|
|
|
|
|
JSONObject jsonParam = (JSONObject)parser.parse(map.get("data").toString());
|
|
|
|
|
System.out.println("=== " + jsonParam.toJSONString());
|
|
|
|
|
|
|
|
|
|
Map<String, String> jMap = jsonParam;
|
|
|
|
|
jMap.put("carNo", pMap.get("carNo"));
|
|
|
|
|
|
|
|
|
|
commSmartPlatformPRPService.updateExemptNtttn(jMap);
|
|
|
|
|
|
|
|
|
|
result.setMsg(ResultSmartPlatform.STATUS_SUCESS, "정상적으로 처리되었습니다.");
|
|
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//성공 처리 Table Insert
|
|
|
|
|
JSONParser parser = new JSONParser();
|
|
|
|
|
JSONObject jsonParam = (JSONObject)parser.parse(map.get("data").toString());
|
|
|
|
|
System.out.println("=== " + jsonParam.toJSONString());
|
|
|
|
|
|
|
|
|
|
Map<String, String> jMap = jsonParam;
|
|
|
|
|
jMap.put("carNo", pMap.get("carNo"));
|
|
|
|
|
|
|
|
|
|
commSmartPlatformPRPService.updateExemptNtttn(jMap);
|
|
|
|
|
|
|
|
|
|
result.setMsg(ResultSmartPlatform.STATUS_SUCESS, "정상적으로 처리되었습니다.");
|
|
|
|
|
|
|
|
|
|
result.setMsg(ResultSmartPlatform.STATUS_SUCESS, "정상적으로 처리되었습니다.");
|
|
|
|
|
}catch(RuntimeException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
result.setErrorMsg(ResultSmartPlatform.STATUS_ERROR_DEFAULT_DETAIL_CODE, null);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
result.setErrorMsg(ResultSmartPlatform.STATUS_ERROR_DEFAULT_DETAIL_CODE, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}catch(RuntimeException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
result.setErrorMsg(ResultSmartPlatform.STATUS_ERROR_DEFAULT_DETAIL_CODE, null);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
result.setErrorMsg(ResultSmartPlatform.STATUS_ERROR_DEFAULT_DETAIL_CODE, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.setMsg(ResultSmartPlatform.STATUS_SUCESS, "정상적으로 처리되었습니다.");
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void getRdcxptInfoDspsnVhcle() {
|
|
|
|
|
public boolean getRdcxptInfoDspsnVhcle() {
|
|
|
|
|
ResultSmartPlatform result = new ResultSmartPlatform();
|
|
|
|
|
List<Map<String, Object>> dspsnList = new ArrayList<>();
|
|
|
|
|
String url = "";
|
|
|
|
|
try {
|
|
|
|
|
//장애인 테스트 데이터 추출
|
|
|
|
|
List<Map<String, Object>> dspsnList = commSmartPlatformPRPService.exemptDspsn();
|
|
|
|
|
dspsnList = commSmartPlatformPRPService.exemptDspsn();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(dspsnList == null || dspsnList.size() == 0){
|
|
|
|
|
logger.info("getRdcxptInfoDspsnVhcle_조회 실패(장애인 목록 없음)");
|
|
|
|
|
|
|
|
|
|
result.setMsg(ResultSmartPlatform.STATUS_ERROR, ResultSmartPlatform.STATUS_ERROR_MESSAGE);
|
|
|
|
|
return ;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for(Map<String, Object> dspsn : dspsnList){
|
|
|
|
|
url = cfsCommonService.findCommonSecureGet("ITF_CFS_O_013");
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for(Map<String, Object> dspsn : dspsnList){
|
|
|
|
|
try {
|
|
|
|
|
//파라미터 설정
|
|
|
|
|
Map<String, String> pMap = new HashMap<String, String>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pMap.put("sysId", "11-006");
|
|
|
|
|
pMap.put("tranDate", dspsn.get("TRAN_DATE").toString());
|
|
|
|
|
@ -241,7 +254,7 @@ public class ExemptCarInfo {
|
|
|
|
|
pMap.put("incarDt", dspsn.get("TRAN_DATE").toString());
|
|
|
|
|
|
|
|
|
|
// 사전등록결제 웹서비스 호출
|
|
|
|
|
String url = cfsCommonService.findCommonSecureGet("ITF_CFS_O_013");
|
|
|
|
|
|
|
|
|
|
CallWebService callWebService = new CallWebService(url);
|
|
|
|
|
Map<String, String> map = callWebService.callWebServicePost(pMap);
|
|
|
|
|
|
|
|
|
|
@ -253,7 +266,7 @@ public class ExemptCarInfo {
|
|
|
|
|
logger.info("getRdcxptInfoDspsnVhcle_조회 실패");
|
|
|
|
|
|
|
|
|
|
result.setMsg(ResultSmartPlatform.STATUS_ERROR, ResultSmartPlatform.STATUS_ERROR_MESSAGE);
|
|
|
|
|
return ;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//성공 처리 Table Insert
|
|
|
|
|
@ -265,24 +278,21 @@ public class ExemptCarInfo {
|
|
|
|
|
Map<String, String> jMap = jsonParam;
|
|
|
|
|
commSmartPlatformPRPService.updateExemptDspsn(jMap);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.setMsg(ResultSmartPlatform.STATUS_SUCESS, "정상적으로 처리되었습니다.");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}catch(RuntimeException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
result.setErrorMsg(ResultSmartPlatform.STATUS_ERROR_DEFAULT_DETAIL_CODE, null);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
result.setErrorMsg(ResultSmartPlatform.STATUS_ERROR_DEFAULT_DETAIL_CODE, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.setMsg(ResultSmartPlatform.STATUS_SUCESS, "정상적으로 처리되었습니다.");
|
|
|
|
|
|
|
|
|
|
}catch(RuntimeException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
result.setErrorMsg(ResultSmartPlatform.STATUS_ERROR_DEFAULT_DETAIL_CODE, null);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
result.setErrorMsg(ResultSmartPlatform.STATUS_ERROR_DEFAULT_DETAIL_CODE, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ;
|
|
|
|
|
result.setMsg(ResultSmartPlatform.STATUS_SUCESS, "정상적으로 처리되었습니다.");
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|