【功能修复】商城:虚拟成团时,headId 未使用团长编号
parent
2344332b03
commit
18f7591b38
|
@ -217,7 +217,8 @@ public interface CombinationActivityConvert {
|
||||||
List<CombinationRecordDO> createRecords = new ArrayList<>(count);
|
List<CombinationRecordDO> createRecords = new ArrayList<>(count);
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
// 基础信息和团长保持一致
|
// 基础信息和团长保持一致
|
||||||
CombinationRecordDO newRecord = convert5(headRecord);
|
CombinationRecordDO newRecord = BeanUtils.toBean(headRecord, CombinationRecordDO.class)
|
||||||
|
.setId(null).setHeadId(headRecord.getHeadId());
|
||||||
// 虚拟信息
|
// 虚拟信息
|
||||||
newRecord.setCount(0) // 会单独更新下,在后续的 Service 逻辑里
|
newRecord.setCount(0) // 会单独更新下,在后续的 Service 逻辑里
|
||||||
.setUserId(0L).setNickname("").setAvatar("").setOrderId(0L);
|
.setUserId(0L).setNickname("").setAvatar("").setOrderId(0L);
|
||||||
|
@ -225,7 +226,5 @@ public interface CombinationActivityConvert {
|
||||||
}
|
}
|
||||||
return createRecords;
|
return createRecords;
|
||||||
}
|
}
|
||||||
@Mapping(target = "id", ignore = true)
|
|
||||||
CombinationRecordDO convert5(CombinationRecordDO headRecord);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue