This commit is contained in:
2025-12-19 15:03:08 +08:00
parent 22fc5e5693
commit 31caa37053

View File

@@ -260,6 +260,7 @@ public class GbOrderServiceImpl extends ServiceImpl<GbOrderMapper, GbOrder> impl
wareService.upGbWareGroupedNum(record.getWareId(), record.getNum());
GbWare ware = wareService.getById(record.getWareId());
if (ware == null || ware.getOnlineStatus() == 0 || ware.getIsDel()) {
detailService.updateById(record);
refundByGbOrderDetail(record, "商品已下架 自动退款。");
return;
}
@@ -482,7 +483,6 @@ public class GbOrderServiceImpl extends ServiceImpl<GbOrderMapper, GbOrder> impl
GbOrderDetail upRecord = new GbOrderDetail();
upRecord.setStatus("已退款");
upRecord.setCancelReason(reason);
upRecord.setIsDel(SystemConstants.OneZero.ZERO);
return detailService.update(upRecord, query().eq(GbOrderDetail::getId, record.getId()));
}