zoujiajian 2 жил өмнө
parent
commit
d84b08be99

+ 5 - 0
netflix-dao/src/main/java/com/cyksj/model/entity/GroupsRelation.java

@@ -74,6 +74,11 @@ public class GroupsRelation extends BaseEntity {
 
     private Long yhsId;
 
+    /**
+     * 车票获取类型 默认1购买,2.体验
+     */
+    private Integer aqType;
+
     /**
      * 获取权益时的订单id
      */

+ 2 - 1
netflix-dao/src/main/resources/mapper/GroupRelationMapper.xml

@@ -17,7 +17,8 @@
         send_time = null,
         submit_time = null,
         operator = null,
-        yhs_id = 0
+        yhs_id = 0,
+        aq_type = 1
         where id = #{entity.id}
         <if test="expireTime != null">
             and expiry_time = #{expireTime}

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

@@ -768,6 +768,8 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 						.set(GroupsRelation::getStartTime, startTime)
 						.set(GroupsRelation::getExpiryTime, expiryTime)
 						.set(GroupsRelation::getStatus, GroupsRelation.Status.validity)
+						//车票获取类型
+						.set(GroupsRelation::getAqType, 2)
 						.eq(GroupsRelation::getId, relation.getId())
 						.eq(GroupsRelation::getUserId, 0));
 				if (update > 0) {