in sql 异常

This commit is contained in:
gong
2026-03-30 09:58:38 +08:00
parent 5ee4c22001
commit 7d619b8260

View File

@@ -592,8 +592,12 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
OrderDetail orderDetailUp = new OrderDetail(); OrderDetail orderDetailUp = new OrderDetail();
orderDetailUp.setOrderId(targetOrder.getId()); orderDetailUp.setOrderId(targetOrder.getId());
orderDetailUp.setPlaceNum(1); orderDetailUp.setPlaceNum(1);
QueryWrapper updateWrapper = new QueryWrapper().eq(OrderDetail::getOrderId, sourceOrder.getId());
if (CollUtil.isNotEmpty(param.getDetailIds())) {
updateWrapper.in(OrderDetail::getId, param.getDetailIds());
}
orderDetailService.update(orderDetailUp, orderDetailService.update(orderDetailUp,
new QueryWrapper().eq(OrderDetail::getOrderId, sourceOrder.getId()).in(OrderDetail::getId, param.getDetailIds())); updateWrapper);
redisService.set(RedisCst.classKeyExpired.EXPIRED_ORDER + targetOrder.getId(), "", 60 * 15); redisService.set(RedisCst.classKeyExpired.EXPIRED_ORDER + targetOrder.getId(), "", 60 * 15);
} }
} else { } else {