From 1a0fda23b15719b699fd9372b2418ffd6cf0cda8 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sat, 7 Oct 2023 17:11:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=9B=A2=E8=AE=B0=E5=BD=95=EF=BC=9A?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=9B=A2=E9=95=BF=E7=9A=84=20headId=20?= =?UTF-8?q?=E4=B8=BA=20CombinationRecordDO#HEAD=5FID=5FGROUP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/combination/CombinationRecordServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/service/combination/CombinationRecordServiceImpl.java b/yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/service/combination/CombinationRecordServiceImpl.java index 47e7c552a..cbf2440f7 100644 --- a/yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/service/combination/CombinationRecordServiceImpl.java +++ b/yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/service/combination/CombinationRecordServiceImpl.java @@ -179,9 +179,9 @@ public class CombinationRecordServiceImpl implements CombinationRecordService { CombinationRecordDO recordDO = CombinationActivityConvert.INSTANCE.convert(reqDTO, keyValue.getKey(), user, spu, sku); recordMapper.insert(recordDO); - // 3、如果是团长需要设置 headId 为它自己 + // 3、如果是团长需要设置 headId 为 CombinationRecordDO#HEAD_ID_GROUP if (reqDTO.getHeadId() == null) { - recordMapper.updateById(new CombinationRecordDO().setId(recordDO.getId()).setHeadId(recordDO.getId())); + recordMapper.updateById(new CombinationRecordDO().setId(recordDO.getId()).setHeadId(CombinationRecordDO.HEAD_ID_GROUP)); return; }