|
@@ -86,11 +86,11 @@ public class OrderServiceImpl implements OrderService {
|
|
FreePostageCard freePostageCard = orderMapper.queryFree(userId);
|
|
FreePostageCard freePostageCard = orderMapper.queryFree(userId);
|
|
String freight = "";
|
|
String freight = "";
|
|
if (freePostageCard != null && classifyIDS.contains("3")) {
|
|
if (freePostageCard != null && classifyIDS.contains("3")) {
|
|
- freight = "仪器到付,产品包邮";
|
|
|
|
|
|
+ freight = "-2";
|
|
} else if (freePostageCard != null) {
|
|
} else if (freePostageCard != null) {
|
|
- freight = "包邮";
|
|
|
|
|
|
+ freight = "0";
|
|
} else {
|
|
} else {
|
|
- freight = "到付";
|
|
|
|
|
|
+ freight = "-1";
|
|
}
|
|
}
|
|
//客服热线号码
|
|
//客服热线号码
|
|
String cellPhone = loginMapper.cellPhone(organizeID);
|
|
String cellPhone = loginMapper.cellPhone(organizeID);
|
|
@@ -192,13 +192,16 @@ public class OrderServiceImpl implements OrderService {
|
|
//支付记录
|
|
//支付记录
|
|
List<CmDiscernReceipt> discernReceiptList = orderMapper.findDiscernReceipt(orderID);
|
|
List<CmDiscernReceipt> discernReceiptList = orderMapper.findDiscernReceipt(orderID);
|
|
//退款记录
|
|
//退款记录
|
|
- List<CmReturnedPurchase> returnedPurchaseList = orderMapper.findReturnedPurchase(orderID);
|
|
|
|
|
|
+ List<CmReturnedPurchase> returnedPurchaseList = orderMapper.findReturnedPurchase(order.getOrderID());
|
|
|
|
+ //客服热线号码
|
|
|
|
+ String cellPhone = loginMapper.cellPhone(orderID);
|
|
map.put("order", order);
|
|
map.put("order", order);
|
|
map.put("userInfo", userInfo);
|
|
map.put("userInfo", userInfo);
|
|
map.put("shopOrderList", shopOrderList);
|
|
map.put("shopOrderList", shopOrderList);
|
|
map.put("invoice", invoice);
|
|
map.put("invoice", invoice);
|
|
map.put("discernReceiptList", discernReceiptList);
|
|
map.put("discernReceiptList", discernReceiptList);
|
|
map.put("returnedPurchaseList", returnedPurchaseList);
|
|
map.put("returnedPurchaseList", returnedPurchaseList);
|
|
|
|
+ map.put("cellPhone", cellPhone);
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -391,6 +394,7 @@ public class OrderServiceImpl implements OrderService {
|
|
logisticsRecord.setImage(AppUtils.getImageURL("product", logisticsRecord.getImage(), 0, domain));
|
|
logisticsRecord.setImage(AppUtils.getImageURL("product", logisticsRecord.getImage(), 0, domain));
|
|
}
|
|
}
|
|
shopOrder.setCmLogisticsRecords(logisticsRecordList);
|
|
shopOrder.setCmLogisticsRecords(logisticsRecordList);
|
|
|
|
+ shopOrder.setShopLogo(AppUtils.getImageURL("shopLogo", shopOrder.getShopLogo(), 0, domain));
|
|
}
|
|
}
|
|
//物流信息
|
|
//物流信息
|
|
List<LogisticsInfo> logisticsInfoList = orderMapper.findLogisticsInfo(orderID);
|
|
List<LogisticsInfo> logisticsInfoList = orderMapper.findLogisticsInfo(orderID);
|
|
@@ -402,4 +406,28 @@ public class OrderServiceImpl implements OrderService {
|
|
map.put("shopOrderList", shopOrderList);
|
|
map.put("shopOrderList", shopOrderList);
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public List<CmOrder> myOrder(Integer userID, Integer orderState) {
|
|
|
|
+ List<CmOrder> orderList = orderMapper.findAllOrder(userID, orderState);
|
|
|
|
+ for (CmOrder order : orderList) {
|
|
|
|
+ String[] ShopOrderIDs = {};
|
|
|
|
+ if (order.getShopOrderIDs().contains(",")) {
|
|
|
|
+ ShopOrderIDs = order.getShopOrderIDs().split(",");
|
|
|
|
+ } else {
|
|
|
|
+ ShopOrderIDs = new String[]{order.getShopOrderIDs()};
|
|
|
|
+ }
|
|
|
|
+ List<CmShopOrder> shopOrderList = orderMapper.findAllShopOrder(ShopOrderIDs);
|
|
|
|
+ for (CmShopOrder shopOrder : shopOrderList) {
|
|
|
|
+ List<CmOrderProduct> orderProductList = orderMapper.findOrderProduct(shopOrder.getShopOrderID());
|
|
|
|
+ for (CmOrderProduct orderProduct : orderProductList) {
|
|
|
|
+ orderProduct.setProductImage(AppUtils.getImageURL("product", orderProduct.getProductImage(), 0, domain));
|
|
|
|
+ }
|
|
|
|
+ shopOrder.setCmOrderProducts(orderProductList);
|
|
|
|
+ shopOrder.setShopLogo(AppUtils.getImageURL("shopLogo", shopOrder.getShopLogo(), 0, domain));
|
|
|
|
+ }
|
|
|
|
+ order.setShopOrderList(shopOrderList);
|
|
|
|
+ }
|
|
|
|
+ return orderList;
|
|
|
|
+ }
|
|
}
|
|
}
|