소스 검색

[fix]
增加拼团的字段

chenchen 2 달 전
부모
커밋
9f93ccf1a0

+ 1 - 0
application-webadmin/src/main/java/com/tourism/webadmin/back/controller/TourProjectGroupPurchaseController.java

@@ -11,6 +11,7 @@ import com.tourism.common.log.model.constant.SysOperationLogType;
 import com.github.pagehelper.page.PageMethod;
 import com.tourism.webadmin.back.model.TourProjectGroupPurchase;
 import com.tourism.webadmin.back.dto.*;
+import com.tourism.webadmin.back.model.TourismDatePrice;
 import com.tourism.webadmin.back.service.*;
 import com.tourism.common.core.object.*;
 import com.tourism.common.core.util.*;

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

@@ -23,6 +23,7 @@
         <result column="title" jdbcType="VARCHAR" property="title"/>
         <result column="image" jdbcType="VARCHAR" property="image"/>
         <result column="price_unit" jdbcType="VARCHAR" property="priceUnit"/>
+        <result column="origin_price" jdbcType="DECIMAL" property="originPrice"/>
     </resultMap>
 
     <insert id="insertList">
@@ -47,7 +48,8 @@
             success,
             title,
             image,
-            price_unit)
+            price_unit,
+            origin_price)
         VALUES
         <foreach collection="list" index="index" item="item" separator="," >
             (#{item.id},
@@ -70,7 +72,8 @@
             #{item.success},
             #{item.title},
             #{item.image},
-            #{item.priceUnit})
+            #{item.priceUnit},
+            #{item.originPrice}})
         </foreach>
     </insert>
 

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

@@ -133,6 +133,12 @@ public class TourProjectGroupPurchase extends BaseModel {
     private String priceUnit;
 
     /**
+     * 成人原价。
+     */
+    @TableField(value = "origin_price")
+    private BigDecimal originPrice;
+
+    /**
      * endTime 范围过滤起始值(>=)。
      */
     @TableField(exist = false)