|
@@ -2,20 +2,51 @@ package com.jkcredit.invoice.service.upservice.impl;
|
|
|
|
|
|
import cn.com.taiji.common.manager.net.http.binclient.ApiRequestException;
|
|
import cn.com.taiji.common.manager.net.http.binclient.ApiRequestException;
|
|
import cn.com.taiji.sdk.comm.ETCCommHelper;
|
|
import cn.com.taiji.sdk.comm.ETCCommHelper;
|
|
-import cn.com.taiji.sdk.model.comm.protocol.eoms.company.*;
|
|
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.eoms.EomsServiceType;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.eoms.company.CompanyDetailAddRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.eoms.company.CompanyDetailAddResponse;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.eoms.company.OperatorEditConfirmRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.eoms.company.OperatorEditConfirmResponse;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.eoms.company.OperatorEditRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.eoms.company.OperatorEditResponse;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.eoms.company.OperatorEvidenceRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.eoms.company.OperatorEvidenceResponse;
|
|
import cn.com.taiji.sdk.model.comm.protocol.tts.vehicle.VehicleQueryRequest;
|
|
import cn.com.taiji.sdk.model.comm.protocol.tts.vehicle.VehicleQueryRequest;
|
|
import cn.com.taiji.sdk.model.comm.protocol.tts.vehicle.VehicleQueryResponse;
|
|
import cn.com.taiji.sdk.model.comm.protocol.tts.vehicle.VehicleQueryResponse;
|
|
import cn.com.taiji.sdk.model.comm.protocol.tts.vehicle.VehicleRegisterRequest;
|
|
import cn.com.taiji.sdk.model.comm.protocol.tts.vehicle.VehicleRegisterRequest;
|
|
import cn.com.taiji.sdk.model.comm.protocol.tts.vehicle.VehicleRegisterResponse;
|
|
import cn.com.taiji.sdk.model.comm.protocol.tts.vehicle.VehicleRegisterResponse;
|
|
-import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.*;
|
|
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.OperatorSendCodeRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.OperatorSendCodeResponse;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.OperatorValidCodeRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.OperatorValidCodeResponse;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillCountPageRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillCountQueryRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillCountQueryResponse;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillEndRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillEndResponse;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillHistoryEndRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillHistoryEndResponse;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillHistoryStartRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillHistoryStartResponse;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillInvoiceRedQueryRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillInvoiceRedQueryResponse;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillNumFindInvoiceRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillNumFindInvoiceResponse;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillOriginEndRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillOriginEndResponse;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillStartRequest;
|
|
|
|
+import cn.com.taiji.sdk.model.comm.protocol.tts.waybill.WaybillStartResponse;
|
|
import com.jkcredit.invoice.service.upservice.NoCarInterface;
|
|
import com.jkcredit.invoice.service.upservice.NoCarInterface;
|
|
import com.jkcredit.invoice.util.DateUtil;
|
|
import com.jkcredit.invoice.util.DateUtil;
|
|
import com.jkcredit.invoice.util.RespR;
|
|
import com.jkcredit.invoice.util.RespR;
|
|
import com.jkcredit.invoice.util.StringUtil;
|
|
import com.jkcredit.invoice.util.StringUtil;
|
|
|
|
+import etc.com.fasterxml.jackson.annotation.JsonIgnore;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
|
+import java.util.Date;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @author mumuxigua
|
|
* @author mumuxigua
|
|
@@ -280,9 +311,10 @@ public class NoCarInterfaceImpl implements NoCarInterface {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public RespR<CompanyDetailAddResponse> companyDetailAdd(CompanyDetailAddRequest companyDetailAddRequest) {
|
|
public RespR<CompanyDetailAddResponse> companyDetailAdd(CompanyDetailAddRequest companyDetailAddRequest) {
|
|
- String fileName = companyDetailAddRequest.getFilename();
|
|
|
|
|
|
+ String fileName = EomsServiceType.COMPANY + "_" + CompanyCmd.COMPANYDETAILADD + "_REQ_" + this.getTimeMillStr() + ".json";
|
|
long startTime = System.currentTimeMillis();
|
|
long startTime = System.currentTimeMillis();
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -305,7 +337,7 @@ public class NoCarInterfaceImpl implements NoCarInterface {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public RespR<OperatorEditResponse> operatorEdit(OperatorEditRequest operatorEditRequest) {
|
|
public RespR<OperatorEditResponse> operatorEdit(OperatorEditRequest operatorEditRequest) {
|
|
- String fileName = operatorEditRequest.getFilename();
|
|
|
|
|
|
+ String fileName = EomsServiceType.COMPANY + "_" + CompanyCmd.COMPANYOPERATOREDIT + "_REQ_" + this.getTimeMillStr() + ".json";
|
|
long startTime = System.currentTimeMillis();
|
|
long startTime = System.currentTimeMillis();
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -328,7 +360,8 @@ public class NoCarInterfaceImpl implements NoCarInterface {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public RespR<OperatorEditConfirmResponse> operatorEditConfirm(OperatorEditConfirmRequest operatorEditConfirmRequest) {
|
|
public RespR<OperatorEditConfirmResponse> operatorEditConfirm(OperatorEditConfirmRequest operatorEditConfirmRequest) {
|
|
- String fileName = operatorEditConfirmRequest.getFilename();
|
|
|
|
|
|
+ String fileName = EomsServiceType.COMPANY + "_" + CompanyCmd.COMPANYOPERATOREDITCONFIRM + "_REQ_" + this.getTimeMillStr() + ".json";
|
|
|
|
+ ;
|
|
long startTime = System.currentTimeMillis();
|
|
long startTime = System.currentTimeMillis();
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -351,7 +384,7 @@ public class NoCarInterfaceImpl implements NoCarInterface {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public RespR<OperatorEvidenceResponse> operatorEvidence(OperatorEvidenceRequest operatorEvidenceRequest) {
|
|
public RespR<OperatorEvidenceResponse> operatorEvidence(OperatorEvidenceRequest operatorEvidenceRequest) {
|
|
- String fileName = operatorEvidenceRequest.getFilename();
|
|
|
|
|
|
+ String fileName = EomsServiceType.COMPANY + "_" + CompanyCmd.UPLOADOPERATOREVIDENCE + "_REQ_" + this.getTimeMillStr() + ".json";
|
|
long startTime = System.currentTimeMillis();
|
|
long startTime = System.currentTimeMillis();
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -417,4 +450,11 @@ public class NoCarInterfaceImpl implements NoCarInterface {
|
|
return new RespR(false, apie.getMessage());
|
|
return new RespR(false, apie.getMessage());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @JsonIgnore
|
|
|
|
+ protected String getTimeMillStr() {
|
|
|
|
+ return (new SimpleDateFormat("yyyyMMddHHmmssSSS")).format(new Date());
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|