diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java index ecccfd747..42eca6e55 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java @@ -1262,11 +1262,11 @@ public class StoreOrderServiceImpl extends ServiceImpl recordDOS = phoneRecordMapper.selectList(Wrappers.lambdaQuery().eq(PhoneRecordDO::getRechargeOrderId, orderId)); - log.info("-------------------------recordDOS{},{}",recordDOS,recordDOS.size()); if (!CollectionUtils.isEmpty(recordDOS)) { - recordDOS.forEach(e->{ - e.setDeleted(Boolean.TRUE); - int i = phoneRecordMapper.updateById(e); - log.info("-------------------------i{}---------------------",i); - }); + Set ids = recordDOS.stream().map(PhoneRecordDO::getId).collect(Collectors.toSet()); + phoneRecordMapper.deleteBatchIds(ids); } return null; }