|
@@ -39,32 +39,82 @@ public class InterfaceCheckServer {
|
|
|
|
|
|
|
|
|
case "COMPANY_ADD_V1":
|
|
|
- result = customerInterLowerService.customeInterRec(appKey,api,data,requestid);
|
|
|
+ if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ log.info(appKey+"被拒绝");
|
|
|
+ result = resultTimeOut;
|
|
|
+ }else{
|
|
|
+ statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
|
+ result = customerInterLowerService.customeInterRec(appKey,api,data,requestid);
|
|
|
+ statisRequestIdTimeComp.removeReQuestIdAndTime(requestid);
|
|
|
+ }
|
|
|
break;
|
|
|
case "PROTOCOL_ADD_V1":
|
|
|
- result = customerInterLowerService.customeProtocolUpLoad(appKey,api,data,requestid);
|
|
|
+ if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ log.info(appKey+"被拒绝");
|
|
|
+ result = resultTimeOut;
|
|
|
+ }else{
|
|
|
+ statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
|
+ result = customerInterLowerService.customeProtocolUpLoad(appKey,api,data,requestid);
|
|
|
+ statisRequestIdTimeComp.removeReQuestIdAndTime(requestid);
|
|
|
+ }
|
|
|
break;
|
|
|
case "COMPANY_QUERY_V1":
|
|
|
- result = customerInterLowerService.customeInterRecQuery(appKey,api,data,requestid);
|
|
|
+ if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ log.info(appKey+"被拒绝");
|
|
|
+ result = resultTimeOut;
|
|
|
+ }else{
|
|
|
+ statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
|
+ result = customerInterLowerService.customeInterRecQuery(appKey,api,data,requestid);
|
|
|
+ statisRequestIdTimeComp.removeReQuestIdAndTime(requestid);
|
|
|
+ }
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case "CARD_BIND_QUERY_LIST_V1":
|
|
|
- result = selfCarInterService.customerETCQuery(appKey,api,data,requestid);
|
|
|
+ if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ log.info(appKey+"被拒绝");
|
|
|
+ result = resultTimeOut;
|
|
|
+ }else{
|
|
|
+ statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
|
+ result = selfCarInterService.customerETCQuery(appKey,api,data,requestid);
|
|
|
+ statisRequestIdTimeComp.removeReQuestIdAndTime(requestid);
|
|
|
+ }
|
|
|
break;
|
|
|
case "CARD_QUERY_CARD_V1":
|
|
|
- result = selfCarInterService.customerQueryEtcInfo(appKey,api,data,requestid);
|
|
|
+ if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ log.info(appKey+"被拒绝");
|
|
|
+ result = resultTimeOut;
|
|
|
+ }else{
|
|
|
+ statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
|
+ result = selfCarInterService.customerQueryEtcInfo(appKey,api,data,requestid);
|
|
|
+ statisRequestIdTimeComp.removeReQuestIdAndTime(requestid);
|
|
|
+ }
|
|
|
break;
|
|
|
case "CARD_BINDING_V1":
|
|
|
- result = selfCarInterService.customerETCRec(appKey,api,data,requestid);
|
|
|
+ if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ log.info(appKey+"被拒绝");
|
|
|
+ result = resultTimeOut;
|
|
|
+ }else{
|
|
|
+ statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
|
+ result = selfCarInterService.customerETCRec(appKey,api,data,requestid);
|
|
|
+ statisRequestIdTimeComp.removeReQuestIdAndTime(requestid);
|
|
|
+ }
|
|
|
break;
|
|
|
case "CARD_VALID_CODE_V1":
|
|
|
- result = selfCarInterService.customerETCRecValid(appKey,api,data,requestid);
|
|
|
+ if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ log.info(appKey+"被拒绝");
|
|
|
+ result = resultTimeOut;
|
|
|
+ }else{
|
|
|
+ statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
|
+ result = selfCarInterService.customerETCRecValid(appKey,api,data,requestid);
|
|
|
+ statisRequestIdTimeComp.removeReQuestIdAndTime(requestid);
|
|
|
+ }
|
|
|
break;
|
|
|
case "CARD_TRADE_V1":
|
|
|
if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ log.info(appKey+"被拒绝");
|
|
|
result = resultTimeOut;
|
|
|
}else{
|
|
|
statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
@@ -74,6 +124,7 @@ public class InterfaceCheckServer {
|
|
|
break;
|
|
|
case "B2B_INVOICE_APPLY_V1":
|
|
|
if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ log.info(appKey+"被拒绝");
|
|
|
result = resultTimeOut;
|
|
|
}else{
|
|
|
statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
@@ -83,6 +134,7 @@ public class InterfaceCheckServer {
|
|
|
break;
|
|
|
case "B2B_INVOICE_QUERY_V1":
|
|
|
if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ log.info(appKey+"被拒绝");
|
|
|
result = resultTimeOut;
|
|
|
}else{
|
|
|
statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
@@ -91,7 +143,14 @@ public class InterfaceCheckServer {
|
|
|
}
|
|
|
break;
|
|
|
case "B2B_INVOICE_PACKAGE_V1":
|
|
|
- result = selfCarInterService.getSelfCarInvoicePackage(appKey,api,data,requestid);
|
|
|
+ if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ log.info(appKey+"被拒绝");
|
|
|
+ result = resultTimeOut;
|
|
|
+ }else{
|
|
|
+ statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
|
+ result = selfCarInterService.getSelfCarInvoicePackage(appKey,api,data,requestid);
|
|
|
+ statisRequestIdTimeComp.removeReQuestIdAndTime(requestid);
|
|
|
+ }
|
|
|
break;
|
|
|
case "CARD_UNBIND_V1":
|
|
|
result = selfCarInterService.customerCarUnRec(appKey,api,data,requestid);
|
|
@@ -102,7 +161,13 @@ public class InterfaceCheckServer {
|
|
|
|
|
|
|
|
|
case "VEHICLE_REGISTER":
|
|
|
- result = noCarInterService.customerCarRec(appKey,api,data,requestid);
|
|
|
+ if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ result = resultTimeOut;
|
|
|
+ }else{
|
|
|
+ statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
|
+ result = noCarInterService.customerCarRec(appKey,api,data,requestid);
|
|
|
+ statisRequestIdTimeComp.removeReQuestIdAndTime(requestid);
|
|
|
+ }
|
|
|
break;
|
|
|
case "VEHICLE_REGISTER_QUERY":
|
|
|
result = noCarInterService.customeRecUpperQuery(appKey,api,data,requestid);
|
|
@@ -144,13 +209,31 @@ public class InterfaceCheckServer {
|
|
|
}
|
|
|
break;
|
|
|
case "WAY_BILL_NUM_FIND_INVOICE":
|
|
|
- result = noCarInterService.noCarVoiceQuery(appKey,api,data,requestid);
|
|
|
+ if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ result = resultTimeOut;
|
|
|
+ }else{
|
|
|
+ statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
|
+ result = noCarInterService.noCarVoiceQuery(appKey,api,data,requestid);
|
|
|
+ statisRequestIdTimeComp.removeReQuestIdAndTime(requestid);
|
|
|
+ }
|
|
|
break;
|
|
|
case "FIND_NO_SEARCH_NUM":
|
|
|
- result = noCarInterService.noCarNoVoiceQuery(appKey,api,data,requestid);
|
|
|
+ if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ result = resultTimeOut;
|
|
|
+ }else{
|
|
|
+ statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
|
+ result = noCarInterService.noCarNoVoiceQuery(appKey,api,data,requestid);
|
|
|
+ statisRequestIdTimeComp.removeReQuestIdAndTime(requestid);
|
|
|
+ }
|
|
|
break;
|
|
|
case "BALANCE_QUERY":
|
|
|
- result = noCarInterService.balanceQuery(appKey,api,data,requestid);
|
|
|
+ if(StatisRequestIdTimeComp.isLimit){
|
|
|
+ result = resultTimeOut;
|
|
|
+ }else{
|
|
|
+ statisRequestIdTimeComp.putReQuestIdAndTime(requestid);
|
|
|
+ result = noCarInterService.balanceQuery(appKey,api,data,requestid);
|
|
|
+ statisRequestIdTimeComp.removeReQuestIdAndTime(requestid);
|
|
|
+ }
|
|
|
break;
|
|
|
default:
|
|
|
result = null;
|