修改 userId

This commit is contained in:
sin 2019-04-10 19:17:47 +08:00
parent 3e485c2d0f
commit f9e74ddacd

View File

@ -37,7 +37,7 @@ public class UsersOrderController {
public CommonResult<OrderCreateBO> createOrder(@RequestBody @Validated OrderCreatePO orderCreatePO) {
Integer userId = UserSecurityContextHolder.getContext().getUserId();
OrderCreateDTO orderCreateDTO = OrderConvertAPP.INSTANCE.convert(orderCreatePO);
orderCreateDTO.setUserId(1);
orderCreateDTO.setUserId(userId);
return orderService.createOrder(orderCreateDTO);
}
}