/*--------------------------------------------------------------------*/
@ApiOperation(value = "顺丰预下单")
@PostMapping("/PreOrder_add")
public R PreOrder_add(Long shopId,Long productId,Long addressID,BigDecimal buyNum){
Shopitem shopitem=shopitemDao.selectById(shopId);
Map<String,Object> shop=new HashMap<>();
shop.put("shop_name",URLEncoder.encode(shopitem.getShopName()));
shop.put("shop_phone",shopitem.getContactsPhone());
shop.put("shop_address",URLEncoder.encode(shopitem.getLocations()+shopitem.getAddress()));
shop.put("shop_lng",shopitem.getLng());
shop.put("shop_lat",shopitem.getLat());
//查询商品的重量和种类
Address address=addressService.getById(addressID);
Productitem item=productitemService.getById(productId);
if(item!=null){
BigDecimal weight=item.getWeight().multiply(buyNum).multiply(new BigDecima
顺丰同城快递预下单接口
最新推荐文章于 2024-04-18 10:34:55 发布
![](https://img-home.csdnimg.cn/images/20240611030827.png)