|
|
@@ -125,12 +125,12 @@ public class KfTeamServiceImpl implements IKfTeamService {
|
|
|
List<KfGuestBo> guestBoList = bo.getGuestList();
|
|
|
if(guestBoList != null && guestBoList.size() > 0){
|
|
|
List<Long> guestIdList =
|
|
|
- guestBoList.stream().filter(item -> item.getId() != null).map(item -> item.getId()).toList();
|
|
|
+ new java.util.ArrayList<>(guestBoList.stream().filter(item -> item.getId() != null).map(item -> item.getId()).toList());
|
|
|
List<KfGuestBo> noIdBoList = guestBoList.stream().filter(item -> item.getId() == null).toList();
|
|
|
if(noIdBoList != null && noIdBoList.size() > 0){
|
|
|
Collection<KfGuest> noIdList = MapstructUtils.convert(noIdBoList, KfGuest.class);
|
|
|
guestMapper.insertBatch(noIdList);
|
|
|
- noIdList.stream().forEach(item -> guestIdList.add(item.getId()));
|
|
|
+ guestIdList.addAll(noIdList.stream().map(KfGuest::getId).toList());
|
|
|
}
|
|
|
//3.新增客人客团关系
|
|
|
List<KfGuestTeamR> relations = guestIdList.stream().map(item -> {
|