Commit 1a0fda23b15719b699fd9372b2418ffd6cf0cda8
1 parent
89b240c1
拼团记录:调整团长的 headId 为 CombinationRecordDO#HEAD_ID_GROUP
Showing
1 changed file
with
2 additions
and
2 deletions
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 { | @@ -179,9 +179,9 @@ public class CombinationRecordServiceImpl implements CombinationRecordService { | ||
| 179 | CombinationRecordDO recordDO = CombinationActivityConvert.INSTANCE.convert(reqDTO, keyValue.getKey(), user, spu, sku); | 179 | CombinationRecordDO recordDO = CombinationActivityConvert.INSTANCE.convert(reqDTO, keyValue.getKey(), user, spu, sku); |
| 180 | recordMapper.insert(recordDO); | 180 | recordMapper.insert(recordDO); |
| 181 | 181 | ||
| 182 | - // 3、如果是团长需要设置 headId 为它自己 | 182 | + // 3、如果是团长需要设置 headId 为 CombinationRecordDO#HEAD_ID_GROUP |
| 183 | if (reqDTO.getHeadId() == null) { | 183 | if (reqDTO.getHeadId() == null) { |
| 184 | - recordMapper.updateById(new CombinationRecordDO().setId(recordDO.getId()).setHeadId(recordDO.getId())); | 184 | + recordMapper.updateById(new CombinationRecordDO().setId(recordDO.getId()).setHeadId(CombinationRecordDO.HEAD_ID_GROUP)); |
| 185 | return; | 185 | return; |
| 186 | } | 186 | } |
| 187 | 187 |