Browse Source

[fix]
增加拼团主表与当前在线人数表的关联关系

chenchen 3 months ago
parent
commit
6cd356f666

+ 8 - 0
application-webadmin/src/main/java/com/tourism/webadmin/back/model/TourProjectGroupPurchase.java

@@ -9,6 +9,7 @@ import lombok.EqualsAndHashCode;
 
 import java.math.BigDecimal;
 import java.util.Date;
+import java.util.List;
 import java.util.Map;
 
 /**
@@ -168,6 +169,13 @@ public class TourProjectGroupPurchase extends BaseModel {
     @TableField(exist = false)
     private TourismProject tourismProject;
 
+    @RelationOneToMany(
+            masterIdField = "id",
+            slaveModelClass = TourProjectGroupPurchaseProgress.class,
+            slaveIdField = "groupPurchaseId")
+    @TableField(exist = false)
+    private List<TourProjectGroupPurchaseProgress> TourProjectGroupPurchaseProgressList;
+
 //    @RelationDict(
 //            masterIdField = "projectId",
 //            equalOneToOneRelationField = "tourismProject",

+ 7 - 0
application-webadmin/src/main/java/com/tourism/webadmin/back/vo/TourProjectGroupPurchaseVo.java

@@ -7,6 +7,7 @@ import lombok.EqualsAndHashCode;
 
 import java.math.BigDecimal;
 import java.util.Date;
+import java.util.List;
 import java.util.Map;
 
 /**
@@ -87,6 +88,12 @@ public class TourProjectGroupPurchaseVo extends BaseVo {
     private Map<String, Object> tourismProject;
 
     /**
+     * id 的一对多关联数据对象,数据对应类型为TourProjectGroupPurchaseProgress。
+     */
+    @Schema(description = "id 的一对多关联数据对象,数据对应类型为TourismProjectVo")
+    private List<Map<String, Object>> TourProjectGroupPurchaseProgressList;
+
+    /**
      * projectId 字典关联数据。
      */
     @Schema(description = "projectId 字典关联数据")