fix: 购物车状态统一

This commit is contained in:
2024-10-31 09:42:28 +08:00
parent 0b93b474ec
commit efe907d9af

View File

@@ -34,6 +34,7 @@ public class MpCashierCartServiceImpl extends ServiceImpl<MPCashierCartMapper, T
public boolean updateStateByOrderId(TableConstant.OrderInfo.Status status, Integer orderId) {
return update(new LambdaUpdateWrapper<TbCashierCart>()
.eq(TbCashierCart::getOrderId, orderId)
.ne(TbCashierCart::getStatus, TableConstant.Status.RETURN.getValue())
.set(TbCashierCart::getStatus, status.getValue()));
}
}