Browse Source

[fix]
修正字段

chenchen 3 months ago
parent
commit
d88bd6119f

+ 5 - 5
application-webadmin/src/main/java/com/tourism/webadmin/back/dao/mapper/TourProjectGroupPurchaseDetailMapper.xml

@@ -3,7 +3,7 @@
 <mapper namespace="com.tourism.webadmin.back.dao.TourProjectGroupPurchaseDetailMapper">
     <resultMap id="BaseResultMap" type="com.tourism.webadmin.back.model.TourProjectGroupPurchaseDetail">
         <id column="id" jdbcType="BIGINT" property="id"/>
-        <result column="group_purchase_id" jdbcType="BIGINT" property="groupPurchaseId"/>
+        <result column="group_purchase_code" jdbcType="BIGINT" property="groupPurchaseCode"/>
         <result column="create_user_id" jdbcType="BIGINT" property="createUserId"/>
         <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
         <result column="update_user_id" jdbcType="BIGINT" property="updateUserId"/>
@@ -18,7 +18,7 @@
     <insert id="insertList">
         INSERT INTO tour_project_group_purchase_detail
             (id,
-            group_purchase_id,
+            group_purchase_code,
             create_user_id,
             create_time,
             update_user_id,
@@ -31,7 +31,7 @@
         VALUES
         <foreach collection="list" index="index" item="item" separator="," >
             (#{item.id},
-            #{item.groupPurchaseId},
+            #{item.groupPurchaseCode},
             #{item.createUserId},
             #{item.createTime},
             #{item.updateUserId},
@@ -54,8 +54,8 @@
     <!-- 这里仅包含调用接口输入的主表过滤条件 -->
     <sql id="inputFilterRef">
         <if test="tourProjectGroupPurchaseDetailFilter != null">
-            <if test="tourProjectGroupPurchaseDetailFilter.groupPurchaseId != null">
-                AND tour_project_group_purchase_detail.group_purchase_id = #{tourProjectGroupPurchaseDetailFilter.groupPurchaseId}
+            <if test="tourProjectGroupPurchaseDetailFilter.groupPurchaseCode != null">
+                AND tour_project_group_purchase_detail.group_purchase_code = #{tourProjectGroupPurchaseDetailFilter.groupPurchaseCode}
             </if>
             <if test="tourProjectGroupPurchaseDetailFilter.adultPriceStart != null">
                 AND tour_project_group_purchase_detail.adult_price &gt;= #{tourProjectGroupPurchaseDetailFilter.adultPriceStart}

+ 3 - 3
application-webadmin/src/main/java/com/tourism/webadmin/back/dto/TourProjectGroupPurchaseDetailDto.java

@@ -27,11 +27,11 @@ public class TourProjectGroupPurchaseDetailDto {
     private Long id;
 
     /**
-     * 关联 拼团设置的id
+     * 关联 拼团设置的code
      * NOTE: 可支持等于操作符的列表数据过滤。
      */
-    @Schema(description = "关联 拼团设置的id。可支持等于操作符的列表数据过滤。")
-    private Long groupPurchaseId;
+    @Schema(description = "关联 拼团设置的code。可支持等于操作符的列表数据过滤。")
+    private Long groupPurchaseCode;
 
     /**
      * 成人价格。

+ 4 - 4
application-webadmin/src/main/java/com/tourism/webadmin/back/model/TourProjectGroupPurchaseDetail.java

@@ -27,10 +27,10 @@ public class TourProjectGroupPurchaseDetail extends BaseModel {
     private Long id;
 
     /**
-     * 关联 拼团设置的id
+     * 关联 拼团设置的code
      */
-    @TableField(value = "group_purchase_id")
-    private Long groupPurchaseId;
+    @TableField(value = "group_purchase_code")
+    private Long groupPurchaseCode;
 
     /**
      * 逻辑删除标记字段(1: 正常 -1: 已删除)。
@@ -116,7 +116,7 @@ public class TourProjectGroupPurchaseDetail extends BaseModel {
      * 通常在一对多的关联中,我们基于从表数据过滤主表数据,此时需要先对从表数据进行嵌套子查询过滤,并将从表过滤数据列表集成到该字段。
      */
     @RelationOneToMany(
-            masterIdField = "groupPurchaseId",
+            masterIdField = "groupPurchaseCode",
             slaveModelClass = TourProjectGroupPurchase.class,
             slaveIdField = "code")
     @TableField(exist = false)

+ 3 - 3
application-webadmin/src/main/java/com/tourism/webadmin/back/vo/TourProjectGroupPurchaseDetailVo.java

@@ -27,10 +27,10 @@ public class TourProjectGroupPurchaseDetailVo extends BaseVo {
     private Long id;
 
     /**
-     * 关联 拼团设置的id
+     * 关联 拼团设置的code
      */
-    @Schema(description = "关联 拼团设置的id")
-    private Long groupPurchaseId;
+    @Schema(description = "关联 拼团设置的code")
+    private Long groupPurchaseCode;
 
     /**
      * 成人价格。