修改 userId
This commit is contained in:
parent
3e485c2d0f
commit
f9e74ddacd
@ -37,7 +37,7 @@ public class UsersOrderController {
|
|||||||
public CommonResult<OrderCreateBO> createOrder(@RequestBody @Validated OrderCreatePO orderCreatePO) {
|
public CommonResult<OrderCreateBO> createOrder(@RequestBody @Validated OrderCreatePO orderCreatePO) {
|
||||||
Integer userId = UserSecurityContextHolder.getContext().getUserId();
|
Integer userId = UserSecurityContextHolder.getContext().getUserId();
|
||||||
OrderCreateDTO orderCreateDTO = OrderConvertAPP.INSTANCE.convert(orderCreatePO);
|
OrderCreateDTO orderCreateDTO = OrderConvertAPP.INSTANCE.convert(orderCreatePO);
|
||||||
orderCreateDTO.setUserId(1);
|
orderCreateDTO.setUserId(userId);
|
||||||
return orderService.createOrder(orderCreateDTO);
|
return orderService.createOrder(orderCreateDTO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user