【功能优化】商城: 虚拟成团创建团成员时设置团长 ID
This commit is contained in:
parent
a2e9eccee7
commit
1285acc49e
|
@ -217,7 +217,7 @@ public interface CombinationActivityConvert {
|
|||
List<CombinationRecordDO> createRecords = new ArrayList<>(count);
|
||||
for (int i = 0; i < count; i++) {
|
||||
// 基础信息和团长保持一致
|
||||
CombinationRecordDO newRecord = convert5(headRecord);
|
||||
CombinationRecordDO newRecord = convert5(headRecord).setHeadId(headRecord.getId());
|
||||
// 虚拟信息
|
||||
newRecord.setCount(0) // 会单独更新下,在后续的 Service 逻辑里
|
||||
.setUserId(0L).setNickname("").setAvatar("").setOrderId(0L);
|
||||
|
|
|
@ -375,7 +375,7 @@ public class CombinationRecordServiceImpl implements CombinationRecordService {
|
|||
CombinationRecordDO updateRecord = new CombinationRecordDO().setId(item.getId())
|
||||
.setStatus(status.getStatus()).setEndTime(now);
|
||||
if (CombinationRecordStatusEnum.isSuccess(status.getStatus())) { // 虚拟成团完事更改状态成功后还需要把参与人数修改为成团需要人数
|
||||
updateRecord.setUserCount(updateRecord.getUserSize());
|
||||
updateRecord.setUserCount(records.size());
|
||||
}
|
||||
updateRecords.add(updateRecord);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue