|
@@ -243,14 +243,19 @@ public class AwaitSendController {
|
|
SalesOrderItem item = new SalesOrderItem();
|
|
SalesOrderItem item = new SalesOrderItem();
|
|
item.setItemOrderId(salesOrderInfo.getSalesId());
|
|
item.setItemOrderId(salesOrderInfo.getSalesId());
|
|
List<SalesOrderItem> items = salesOrderService.listSalesOrderItem(item);
|
|
List<SalesOrderItem> items = salesOrderService.listSalesOrderItem(item);
|
|
|
|
+ Double colorIsWeight = 0.00; //克
|
|
String goodName = "";
|
|
String goodName = "";
|
|
for (SalesOrderItem temp : items) {
|
|
for (SalesOrderItem temp : items) {
|
|
goodName += temp.getProductAbbreviation() + "(" + (temp.getColorAbbreviation()) + ")*"+temp.getItemNum() + ";";
|
|
goodName += temp.getProductAbbreviation() + "(" + (temp.getColorAbbreviation()) + ")*"+temp.getItemNum() + ";";
|
|
|
|
+
|
|
|
|
+ if(temp.getColorIsWeight() != null){
|
|
|
|
+ colorIsWeight += temp.getColorIsWeight();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
Map<String, Object> product1 = new HashMap<String, Object>();
|
|
Map<String, Object> product1 = new HashMap<String, Object>();
|
|
product1.put("GoodsName", goodName);
|
|
product1.put("GoodsName", goodName);
|
|
// 计算产品重量
|
|
// 计算产品重量
|
|
- product1.put("GoodsWeight", 1.0);
|
|
|
|
|
|
+ product1.put("GoodsWeight", colorIsWeight/1000);
|
|
Commodity.add(product1);
|
|
Commodity.add(product1);
|
|
|
|
|
|
eOrderRequestData.setCommodity(Commodity);
|
|
eOrderRequestData.setCommodity(Commodity);
|