|
@@ -29,6 +29,7 @@ import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
|
|
|
import static com.alibaba.fastjson.JSON.parseArray;
|
|
@@ -124,6 +125,31 @@ public class ShipServiceImpl implements ShipService {
|
|
|
return ResponseJson.success(map);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 供应商售货清单
|
|
|
+ *
|
|
|
+ * @param shopOrderId 子订单Id
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public ResponseJson<Map<String, Object>> getSalesList(Integer shopOrderId) {
|
|
|
+ ShopOrderVo shopOrder = shipMapper.getShopOrder(shopOrderId);
|
|
|
+ // 供应商名称
|
|
|
+ String shopName = baseMapper.getShopNameById(shopOrder.getShopId());
|
|
|
+ shopOrder.setShopName(shopName);
|
|
|
+ // 收货地址
|
|
|
+ OrderUserinfoVo userInfo = addressMapper.getOrderUserinfo(shopOrder.getOrderId());
|
|
|
+ shopOrder.setUserInfo(userInfo);
|
|
|
+ // 订单商品
|
|
|
+ List<OrderProductVo> orderProductList = orderCommonMapper.getShopOrderProduct(shopOrder.getShopOrderId());
|
|
|
+ shopOrder.setOrderProductList(orderProductList);
|
|
|
+
|
|
|
+ Map<String, Object> map = new HashMap<>(2);
|
|
|
+ String currentTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
|
|
|
+ map.put("shopOrder", shopOrder);
|
|
|
+ map.put("currentTime", currentTime);
|
|
|
+ return ResponseJson.success(map);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 发货页面子订单数据
|
|
|
*
|