bug fix
This commit is contained in:
@@ -81,8 +81,14 @@ public class BuyOrderController {
|
||||
@Autowired
|
||||
private SysConfigService sysConfigService;
|
||||
|
||||
@RequestMapping(value = "/decomposeShipment", method = RequestMethod.GET)
|
||||
public R decomposeShipment(@RequestParam("userId") Integer userId) {
|
||||
Map<Integer, List<String>> result = buyOrderService.decomposeShipment(userId);
|
||||
return R.ok().put("result", result);
|
||||
}
|
||||
|
||||
|
||||
// TODO 新版本上线后废弃
|
||||
@RequestMapping("/list")
|
||||
public R list(@RequestParam Map<String, Object> params) throws Exception {
|
||||
PageUtils page = buyOrderService.list(params);
|
||||
@@ -299,6 +305,7 @@ public class BuyOrderController {
|
||||
|
||||
/**
|
||||
* 获取订单详情
|
||||
* TODO 新版本上线后删除
|
||||
*
|
||||
* @param orderId
|
||||
* @return
|
||||
@@ -467,10 +474,19 @@ public class BuyOrderController {
|
||||
return BigDecimal.ZERO;
|
||||
}
|
||||
|
||||
@RequestMapping("/modifyOrderAddress")
|
||||
public R modifyOrderAddress(@RequestBody ModifyOrderAddressRequestVo requestVo) {
|
||||
@RequestMapping("/modifyConsigneeAddress")
|
||||
public R modifyConsigneeAddress(@RequestBody ModifyOrderAddressRequestVo requestVo) {
|
||||
QueryWrapper<BuyOrder> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("order_sn", requestVo.getOrderSn());
|
||||
BuyOrder buyOrder = buyOrderService.getOne(queryWrapper);
|
||||
buyOrder.setShippingUser(requestVo.getConsigneeName());
|
||||
buyOrder.setUserPhone(requestVo.getConsigneeMobile());
|
||||
buyOrder.setProvince(requestVo.getProvince());
|
||||
buyOrder.setCity(requestVo.getCity());
|
||||
buyOrder.setDistrict(requestVo.getCounty());
|
||||
buyOrder.setAddress(requestVo.getAddress());
|
||||
buyOrder.setAddressModified(1);
|
||||
buyOrderService.updateById(buyOrder);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@@ -557,4 +573,5 @@ public class BuyOrderController {
|
||||
return message;
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user