|
|
@@ -368,6 +368,9 @@ public class ExchangeCodeServiceImpl extends ServiceImpl<ExchangeCodeMapper, Exc
|
|
|
//若是ChatGPT Plus 、MidJourney
|
|
|
//获取额外的车位
|
|
|
relation = getOutSideRelationIfAi(userId, groups, sku);
|
|
|
+ if (relation != null) {
|
|
|
+ groups = groupsMapper.selectById(relation.getGroupsId());
|
|
|
+ }
|
|
|
//待发车
|
|
|
if (relation == null) {
|
|
|
groups = groupsMapper.selectOne(Wrappers.lambdaQuery(GroupsTrips.class)
|
|
|
@@ -381,7 +384,9 @@ public class ExchangeCodeServiceImpl extends ServiceImpl<ExchangeCodeMapper, Exc
|
|
|
//新增车位 并关联
|
|
|
relation = createNewGroupTripsAndRelation(sku, groups, relation);
|
|
|
log.info("无合适规格车队,新增新车队,获取车位relationId:{}", relation.getId());
|
|
|
- } else {
|
|
|
+ }
|
|
|
+
|
|
|
+ if (relation == null) {
|
|
|
//寻找快满编车队进行占座
|
|
|
relation = groupsRelationMapper.selectOne(Wrappers.lambdaQuery(GroupsRelation.class)
|
|
|
.eq(GroupsRelation::getGroupsId, groups.getId())
|