mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
拼团记录:调整团长的 headId 为 CombinationRecordDO#HEAD_ID_GROUP
This commit is contained in:
parent
89b240c1f9
commit
1a0fda23b1
@ -179,9 +179,9 @@ public class CombinationRecordServiceImpl implements CombinationRecordService {
|
|||||||
CombinationRecordDO recordDO = CombinationActivityConvert.INSTANCE.convert(reqDTO, keyValue.getKey(), user, spu, sku);
|
CombinationRecordDO recordDO = CombinationActivityConvert.INSTANCE.convert(reqDTO, keyValue.getKey(), user, spu, sku);
|
||||||
recordMapper.insert(recordDO);
|
recordMapper.insert(recordDO);
|
||||||
|
|
||||||
// 3、如果是团长需要设置 headId 为它自己
|
// 3、如果是团长需要设置 headId 为 CombinationRecordDO#HEAD_ID_GROUP
|
||||||
if (reqDTO.getHeadId() == null) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user