|
|
@ -347,8 +347,11 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
|
|
|
|
|
|
|
|
//转换时间格式
|
|
|
|
//转换时间格式
|
|
|
|
Date date = new Date(); |
|
|
|
Date date = new Date(); |
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss"); |
|
|
|
SimpleDateFormat formatterTime = new SimpleDateFormat("yyyyMMdd"); |
|
|
|
String dateString = formatter.format(date); |
|
|
|
SimpleDateFormat formatterDate = new SimpleDateFormat("yyyyMMddHHmmss"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String timeString = formatterTime.format(date); |
|
|
|
|
|
|
|
String dateString = formatterDate.format(date); |
|
|
|
|
|
|
|
|
|
|
|
SAPInvoiceInfo info = new SAPInvoiceInfo(); |
|
|
|
SAPInvoiceInfo info = new SAPInvoiceInfo(); |
|
|
|
|
|
|
|
|
|
|
@ -371,12 +374,17 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
info.setZJK("0.00"); |
|
|
|
info.setZJK("0.00"); |
|
|
|
} |
|
|
|
} |
|
|
|
info.setZSCSJ(""); |
|
|
|
info.setZSCSJ("000000"); |
|
|
|
info.setZYSHW(snInvoice.getCargoInformation()); |
|
|
|
info.setZYSHW(snInvoice.getCargoInformation()); |
|
|
|
info.setZFPLX(snFplx); |
|
|
|
info.setZFPLX(snFplx); |
|
|
|
info.setZQYD(snInvoice.getTransportRoute()); |
|
|
|
info.setZQYD(snInvoice.getTransportRoute()); |
|
|
|
info.setZCCRXM(snInvoice.getRiderName()); |
|
|
|
info.setZCCRXM(snInvoice.getRiderName()); |
|
|
|
info.setZKPRQ(snInvoice.getBillingDate()); |
|
|
|
if (snInvoice.getBillingDate() != null) { |
|
|
|
|
|
|
|
String billingDate = snInvoice.getBillingDate(); |
|
|
|
|
|
|
|
String replace = billingDate.replace("-", ""); |
|
|
|
|
|
|
|
info.setZKPRQ(replace); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
info.setZSE(snInvoice.getTotalTax()); |
|
|
|
info.setZSE(snInvoice.getTotalTax()); |
|
|
|
info.setZTXBZ(snInvoice.getTollSign()); |
|
|
|
info.setZTXBZ(snInvoice.getTollSign()); |
|
|
|
info.setZSKPH(snInvoice.getMachineCode()); |
|
|
|
info.setZSKPH(snInvoice.getMachineCode()); |
|
|
@ -391,8 +399,8 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
// sapInvoiceDetail.setZZWDJ("");
|
|
|
|
// sapInvoiceDetail.setZZWDJ("");
|
|
|
|
sapInvoiceDetail.setIMG_ID(imageId); |
|
|
|
sapInvoiceDetail.setIMG_ID(imageId); |
|
|
|
sapInvoiceDetail.setZCPH(snInvoiceDetail.getLicensePlateNum()); |
|
|
|
sapInvoiceDetail.setZCPH(snInvoiceDetail.getLicensePlateNum()); |
|
|
|
// sapInvoiceDetail.setZCJSJ("");
|
|
|
|
// sapInvoiceDetail.setZCJSJ();
|
|
|
|
// sapInvoiceDetail.setZCJRQ("");
|
|
|
|
// sapInvoiceDetail.setZCJRQ();
|
|
|
|
sapInvoiceDetail.setFPYXBH(snInvoice.getFileId()); |
|
|
|
sapInvoiceDetail.setFPYXBH(snInvoice.getFileId()); |
|
|
|
sapInvoiceDetail.setZCFZ(snInvoice.getStationGetOn()); |
|
|
|
sapInvoiceDetail.setZCFZ(snInvoice.getStationGetOn()); |
|
|
|
sapInvoiceDetail.setZTXZ(snInvoiceDetail.getCurrentDateEnd()); |
|
|
|
sapInvoiceDetail.setZTXZ(snInvoiceDetail.getCurrentDateEnd()); |
|
|
@ -466,8 +474,8 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
info.setZBXF(snInvoice.getInsurance()); |
|
|
|
info.setZBXF(snInvoice.getInsurance()); |
|
|
|
info.setZRYFJ(snInvoice.getFuelSurcharge()); |
|
|
|
info.setZRYFJ(snInvoice.getFuelSurcharge()); |
|
|
|
info.setZCLSB(snInvoice.getVehicleNo()); |
|
|
|
info.setZCLSB(snInvoice.getVehicleNo()); |
|
|
|
info.setZKPSJ(snInvoice.getBillingDate()); |
|
|
|
info.setZKPSJ("000000"); |
|
|
|
info.setZXCSJ(""); |
|
|
|
info.setZXCSJ("000000"); |
|
|
|
info.setZXFMC(snInvoice.getSalesName()); |
|
|
|
info.setZXFMC(snInvoice.getSalesName()); |
|
|
|
info.setZCYRSBH(snInvoice.getCarrierName()); |
|
|
|
info.setZCYRSBH(snInvoice.getCarrierName()); |
|
|
|
|
|
|
|
|
|
|
@ -533,7 +541,7 @@ public class SDNYMainProcessController extends AbstractController { |
|
|
|
info.setZGXR("opentext"); |
|
|
|
info.setZGXR("opentext"); |
|
|
|
info.setZQM("opentext"); |
|
|
|
info.setZQM("opentext"); |
|
|
|
if (snInvoice.getCheckDate() != null){ |
|
|
|
if (snInvoice.getCheckDate() != null){ |
|
|
|
String checkDate = snInvoice.getCheckDate().replace("-", "/"); |
|
|
|
String checkDate = snInvoice.getCheckDate().replace("-", ""); |
|
|
|
info.setZCYRQ(checkDate); |
|
|
|
info.setZCYRQ(checkDate); |
|
|
|
} |
|
|
|
} |
|
|
|
if (snInvoice.getInvoiceCode() != null) { |
|
|
|
if (snInvoice.getInvoiceCode() != null) { |
|
|
|