|
@@ -444,6 +444,8 @@ public class EntityAnalyse {
|
|
String url = "http://116.182.4.67:50065/platform/api/v1/money";
|
|
String url = "http://116.182.4.67:50065/platform/api/v1/money";
|
|
SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
|
|
SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
|
|
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");//设置日期格式
|
|
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");//设置日期格式
|
|
|
|
+ DecimalFormat df1 = new DecimalFormat("0");
|
|
|
|
+
|
|
CloseableHttpClient httpClient = HttpClients.createDefault();
|
|
CloseableHttpClient httpClient = HttpClients.createDefault();
|
|
// 模拟登陆,按实际服务器端要求选用 Post 或 Get 请求方式
|
|
// 模拟登陆,按实际服务器端要求选用 Post 或 Get 请求方式
|
|
HttpPost httpPost = new HttpPost(url);
|
|
HttpPost httpPost = new HttpPost(url);
|
|
@@ -463,7 +465,7 @@ public class EntityAnalyse {
|
|
JSONObject shippingNote = new JSONObject();
|
|
JSONObject shippingNote = new JSONObject();
|
|
shippingNote.put("shippingNoteNumber", hyFreightSettlementInfo.getOrderNo());
|
|
shippingNote.put("shippingNoteNumber", hyFreightSettlementInfo.getOrderNo());
|
|
shippingNote.put("serialNumber", "0000");
|
|
shippingNote.put("serialNumber", "0000");
|
|
- shippingNote.put("totalMonetaryAmount", Integer.parseInt(String.valueOf(hyFreightSettlementInfo.getAmountMoney() * 1000)));
|
|
|
|
|
|
+ shippingNote.put("totalMonetaryAmount", Integer.valueOf(df1.format(hyFreightSettlementInfo.getAmountMoney() * 1000)));
|
|
shippingNote.put("fuelAmount", 0);
|
|
shippingNote.put("fuelAmount", 0);
|
|
shippingNoteList.add(shippingNote);
|
|
shippingNoteList.add(shippingNote);
|
|
params.put("shippingNoteList", shippingNoteList);
|
|
params.put("shippingNoteList", shippingNoteList);
|
|
@@ -494,7 +496,6 @@ public class EntityAnalyse {
|
|
financial.put("bankCode", hyFreightSettlementInfo.getBankKey());
|
|
financial.put("bankCode", hyFreightSettlementInfo.getBankKey());
|
|
financial.put("networkName", hyFreightSettlementInfo.getBankDepositBranch());
|
|
financial.put("networkName", hyFreightSettlementInfo.getBankDepositBranch());
|
|
financial.put("sequenceCode", hyFreightSettlementInfo.getSerialNumber());
|
|
financial.put("sequenceCode", hyFreightSettlementInfo.getSerialNumber());
|
|
- DecimalFormat df1 = new DecimalFormat("0");
|
|
|
|
// String str = String.valueOf(Double.valueOf(df1.format(hyFreightSettlementInfo.getAmountMoney())) * 1000);
|
|
// String str = String.valueOf(Double.valueOf(df1.format(hyFreightSettlementInfo.getAmountMoney())) * 1000);
|
|
int intValue1 = (int) (Double.valueOf(df1.format(hyFreightSettlementInfo.getAmountMoney())) * 1000);
|
|
int intValue1 = (int) (Double.valueOf(df1.format(hyFreightSettlementInfo.getAmountMoney())) * 1000);
|
|
financial.put("monetaryAmount", intValue1);
|
|
financial.put("monetaryAmount", intValue1);
|