modify address
This commit is contained in:
@@ -11,6 +11,7 @@ import com.peanut.config.DelayQueueConfig;
|
||||
import com.peanut.modules.book.entity.*;
|
||||
import com.peanut.modules.book.service.*;
|
||||
import com.peanut.modules.book.vo.request.BuyOrderListRequestVo;
|
||||
import com.peanut.modules.book.vo.request.ModifyOrderAddressRequestVo;
|
||||
import com.peanut.modules.book.vo.request.ProductRequestVo;
|
||||
import com.peanut.modules.book.vo.request.ProductTransportVo;
|
||||
import com.peanut.modules.book.vo.response.BuyOrderResponseVo;
|
||||
@@ -459,6 +460,13 @@ public class BuyOrderController {
|
||||
return BigDecimal.ZERO;
|
||||
}
|
||||
|
||||
@RequestMapping("/modifyOrderAddress")
|
||||
public R modifyOrderAddress(@RequestBody ModifyOrderAddressRequestVo requestVo) {
|
||||
QueryWrapper<BuyOrder> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("order_sn", requestVo.getOrderSn());
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算运费
|
||||
*
|
||||
|
||||
@@ -29,7 +29,7 @@ public class UserOrderVo {
|
||||
/**
|
||||
* 是否合并
|
||||
*/
|
||||
private String isMerge = "";
|
||||
private String isMerge;
|
||||
|
||||
|
||||
public List<BuyOrder> orderList;
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.peanut.modules.book.vo.request;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description: 修改地址 Value Object
|
||||
* @Author: Cauchy
|
||||
* @CreateTime: 2023/10/20
|
||||
*/
|
||||
@Data
|
||||
public class ModifyOrderAddressRequestVo {
|
||||
/**
|
||||
* 订单号
|
||||
*/
|
||||
private String orderSn;
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
private String province;
|
||||
/**
|
||||
* 市
|
||||
*/
|
||||
private String city;
|
||||
/**
|
||||
* 区县
|
||||
*/
|
||||
private String county;
|
||||
/**
|
||||
* 收货人姓名
|
||||
*/
|
||||
private String consigneeName;
|
||||
/**
|
||||
* 收货人电话
|
||||
*/
|
||||
private String consigneeMobile;
|
||||
}
|
||||
Reference in New Issue
Block a user