소스 검색

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

zoujiajian 10 달 전
부모
커밋
8729a6d801
1개의 변경된 파일과 8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

+ 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);