|
@@ -692,16 +692,18 @@ public class SyShippingOrderServiceImpl extends ServiceImpl<SyShippingOrderMappe
|
|
for(Map<String,Object> li: itemList){
|
|
for(Map<String,Object> li: itemList){
|
|
|
|
|
|
if(rmbList.size()!=0) {
|
|
if(rmbList.size()!=0) {
|
|
-
|
|
|
|
|
|
+ int index = 0;
|
|
//人民币信息
|
|
//人民币信息
|
|
for (Map<String, Object> rmb : rmbList) {
|
|
for (Map<String, Object> rmb : rmbList) {
|
|
String id = "";
|
|
String id = "";
|
|
- int index = 0;
|
|
|
|
|
|
+
|
|
index++;
|
|
index++;
|
|
//ID
|
|
//ID
|
|
if(index < 10){
|
|
if(index < 10){
|
|
|
|
+ Thread.sleep(500);
|
|
id = sf2.format(new Date())+"0"+index;
|
|
id = sf2.format(new Date())+"0"+index;
|
|
}else {
|
|
}else {
|
|
|
|
+ Thread.sleep(500);
|
|
id = sf2.format(new Date()) + index;
|
|
id = sf2.format(new Date()) + index;
|
|
}
|
|
}
|
|
ii++;
|
|
ii++;
|
|
@@ -766,15 +768,18 @@ public class SyShippingOrderServiceImpl extends ServiceImpl<SyShippingOrderMappe
|
|
}
|
|
}
|
|
|
|
|
|
if(usdList.size()!=0) {
|
|
if(usdList.size()!=0) {
|
|
|
|
+ int index = 0;
|
|
//美元信息
|
|
//美元信息
|
|
for (Map<String, Object> usd : usdList) {
|
|
for (Map<String, Object> usd : usdList) {
|
|
String id = "";
|
|
String id = "";
|
|
- int index = 0;
|
|
|
|
index++;
|
|
index++;
|
|
//ID
|
|
//ID
|
|
if(index < 10){
|
|
if(index < 10){
|
|
|
|
+ Thread.sleep(500);
|
|
id = sf2.format(new Date())+"0"+index;
|
|
id = sf2.format(new Date())+"0"+index;
|
|
|
|
+
|
|
}else {
|
|
}else {
|
|
|
|
+ Thread.sleep(500);
|
|
id = sf2.format(new Date()) + index;
|
|
id = sf2.format(new Date()) + index;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -823,7 +828,10 @@ public class SyShippingOrderServiceImpl extends ServiceImpl<SyShippingOrderMappe
|
|
Double imoney = money * Double.parseDouble(usd.get("amount").toString());
|
|
Double imoney = money * Double.parseDouble(usd.get("amount").toString());
|
|
|
|
|
|
maps.put("cbSysBarCode", "||SA09|"+cCode+"|"+ii);
|
|
maps.put("cbSysBarCode", "||SA09|"+cCode+"|"+ii);
|
|
- maps.put("INatMoney", df.format(imoney*Double.parseDouble(nflat)));
|
|
|
|
|
|
+ Double usdMoney = Double.parseDouble(df.format(imoney))*Double.parseDouble(nflat);
|
|
|
|
+ maps.put("INatMoney", df.format(usdMoney));
|
|
|
|
+// System.out.println("调整前:"+df.format(imoney*Double.parseDouble(nflat)));
|
|
|
|
+// System.out.println("调整后:"+df.format(usdMoney));
|
|
maps.put("iMoney", df.format(imoney));
|
|
maps.put("iMoney", df.format(imoney));
|
|
maps.put("cExpCode",usd.get("itemColumn"));//项目编码
|
|
maps.put("cExpCode",usd.get("itemColumn"));//项目编码
|
|
maps.put("ID", id);
|
|
maps.put("ID", id);
|