|
@@ -1049,7 +1049,7 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
|
|
|
}
|
|
|
}
|
|
|
- total4=total4.add(total2).add(total3);
|
|
|
+ total4=total2.add(total3);
|
|
|
System.out.println("total4.doubleValue()\t"+total4.doubleValue());
|
|
|
System.out.println("total1.doubleValue()*1.9\t"+total1.doubleValue()*1.9);
|
|
|
if(total4.doubleValue()>total1.doubleValue()*1.9){
|
|
@@ -1270,6 +1270,9 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
}
|
|
|
String rateSplit[] = dd.split("-");
|
|
|
Map<String, Object> rate= syShippingOrderMapper.queryU8Rate(rateSplit[0], rateSplit[1]);
|
|
|
+ if (rate==null||rate.size()==0){
|
|
|
+ throw new JeecgBootException("该船期查询不到汇率,请检查日期是否填错");
|
|
|
+ }
|
|
|
map5.put("IEXCHRATE",rate.get("nflat").toString());
|
|
|
}
|
|
|
}
|
|
@@ -1437,6 +1440,9 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
}
|
|
|
String rateSplit[] = dd.split("-");
|
|
|
Map<String, Object> rate= syShippingOrderMapper.queryU8Rate(rateSplit[0], rateSplit[1]);
|
|
|
+ if (rate==null||rate.size()==0){
|
|
|
+ throw new JeecgBootException("该船期查询不到汇率,请检查日期是否填错");
|
|
|
+ }
|
|
|
map6.put("IEXCHRATE",rate.get("nflat").toString());
|
|
|
}
|
|
|
}
|
|
@@ -2055,6 +2061,9 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
}
|
|
|
String rateSplit[] = dd.split("-");
|
|
|
Map<String, Object> rate= syShippingOrderMapper.queryU8Rate(rateSplit[0], rateSplit[1]);
|
|
|
+ if (rate==null||rate.size()==0){
|
|
|
+ throw new JeecgBootException("该船期查询不到汇率,请检查日期是否填错");
|
|
|
+ }
|
|
|
jsonObject1.put("IEXCHRATE",rate.get("nflat").toString());
|
|
|
}
|
|
|
JSONArray jsonArrays=new JSONArray();
|
|
@@ -2230,6 +2239,9 @@ public class SyPackingListTailoringServiceImpl extends ServiceImpl<SyPackingList
|
|
|
}
|
|
|
String rateSplit[] = dd.split("-");
|
|
|
Map<String, Object> rate= syShippingOrderMapper.queryU8Rate(rateSplit[0], rateSplit[1]);
|
|
|
+ if (rate==null||rate.size()==0){
|
|
|
+ throw new JeecgBootException("该船期查询不到汇率,请检查日期是否填错");
|
|
|
+ }
|
|
|
jsonObject1.put("IEXCHRATE",rate.get("nflat").toString());
|
|
|
}
|
|
|
JSONArray jsonArrays=new JSONArray();
|