Commit 8a11ca8126a6d42595a02de3ab0873c612255931
1 parent
01e6140d
code review:拼团记录流程
Showing
1 changed file
with
1 additions
and
0 deletions
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/service/combination/CombinationRecordServiceImpl.java
| @@ -173,6 +173,7 @@ public class CombinationRecordServiceImpl implements CombinationRecordService { | @@ -173,6 +173,7 @@ public class CombinationRecordServiceImpl implements CombinationRecordService { | ||
| 173 | ProductSpuRespDTO spu = productSpuApi.getSpu(reqDTO.getSpuId()); | 173 | ProductSpuRespDTO spu = productSpuApi.getSpu(reqDTO.getSpuId()); |
| 174 | ProductSkuRespDTO sku = productSkuApi.getSku(reqDTO.getSkuId()); | 174 | ProductSkuRespDTO sku = productSkuApi.getSku(reqDTO.getSkuId()); |
| 175 | CombinationRecordDO record = CombinationActivityConvert.INSTANCE.convert(reqDTO, keyValue.getKey(), user, spu, sku); | 175 | CombinationRecordDO record = CombinationActivityConvert.INSTANCE.convert(reqDTO, keyValue.getKey(), user, spu, sku); |
| 176 | + // TODO @puhui:有 head 的情况下,以 head 结束为准 | ||
| 176 | recordMapper.insert(record); | 177 | recordMapper.insert(record); |
| 177 | 178 | ||
| 178 | // 3. 如果是团长需要设置 headId 为 CombinationRecordDO#HEAD_ID_GROUP | 179 | // 3. 如果是团长需要设置 headId 为 CombinationRecordDO#HEAD_ID_GROUP |