This commit is contained in:
sxu 2023-12-09 22:09:32 +08:00
parent f3ba5a3618
commit 9a95b50acb
1 changed files with 1 additions and 2 deletions

View File

@ -62,8 +62,7 @@ public class OrderInfoServiceImpl implements IOrderInfoService
@Override
public int insertOrderInfo(OrderInfoVo orderInfo)
{
LoginUser user = SecurityUtils.getLoginUser();
orderInfo.setOrderUser(user.getUserid());
orderInfo.setOrderUser(SecurityUtils.getUserId());
orderInfoMapper.insertOrderInfo(orderInfo);
Long orderId = orderInfoMapper.selectLastInsertId();
orderInfo.setOrderId(orderId);