Pārlūkot izejas kodu

fix 替换时独立车位 车队下架

zoujiajian 8 mēneši atpakaļ
vecāks
revīzija
8729a6d801

+ 8 - 0
netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

@@ -3013,6 +3013,14 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 					TicketChangeDto ticketChangeDto = new TicketChangeDto();
 					ticketChangeDto.setOtherRelationId(relationId);
 					ticketChangeDto.setOtherOrderId(otherOrderDon.getId());
+					//独立车位 车队下架
+					if (sku.getNum() != null && sku.getNum() == 1) {
+						GroupsTrips groupsTrips = groupsMapper.selectById(relation.getGroupsId());
+						if (groupsTrips.getStatus() == GroupsTrips.Status.validity) {
+							groupsTrips.setStatus(GroupsTrips.Status.down);
+							groupsMapper.updateById(groupsTrips);
+						}
+					}
 					return ticketChangeDto;
 				}
 				log.error("发送用户:{} GPT镜像车票失败,进行重试", userId);