Эх сурвалжийг харах

[fix]
增加拼团返利的关联用户字段

chenchen 2 сар өмнө
parent
commit
48dfd6c118

+ 7 - 0
application-webadmin/src/main/java/com/tourism/webadmin/back/model/TourProjectGroupPurchaseRebate.java

@@ -90,6 +90,13 @@ public class TourProjectGroupPurchaseRebate extends BaseModel {
     private TourUser tourUser;
 
     @RelationOneToOne(
+            masterIdField = "reasonRelationUserid",
+            slaveModelClass = TourUser.class,
+            slaveIdField = "userId")
+    @TableField(exist = false)
+    private TourUser reasonRelationUser;
+
+    @RelationOneToOne(
             masterIdField = "groupPurchaseProgressId",
             slaveModelClass = TourProjectGroupPurchase.class,
             slaveIdField = "id")

+ 6 - 0
application-webadmin/src/main/java/com/tourism/webadmin/back/vo/TourProjectGroupPurchaseRebateVo.java

@@ -84,4 +84,10 @@ public class TourProjectGroupPurchaseRebateVo extends BaseVo {
      */
     @Schema(description = "reason 常量字典关联数据")
     private Map<String, Object> reasonDictMap;
+
+    /**
+     * orderId 的一对一关联数据对象,数据对应类型为TourOrderVo。
+     */
+    @Schema(description = "orderId 的一对一关联数据对象,数据对应类型为TourOrderVo")
+    private Map<String, Object> reasonRelationUser;
 }