浏览代码

修改抽奖内容

码头薯片 4 月之前
父节点
当前提交
63ef8420a2
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      ruoyi-system/src/main/resources/mapper/system/RecSaleInfoMapper.xml

+ 6 - 1
ruoyi-system/src/main/resources/mapper/system/RecSaleInfoMapper.xml

@@ -19,11 +19,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="eventStartTime"    column="event_start_time"    />
         <result property="endTimeOfActivity"    column="end_time_of_activity"    />
         <result property="topUp"    column="top_up"    />
+        <result property="topIndex"    column="top_index"    />
     </resultMap>
 
     <sql id="selectRecSaleInfoVo">
         select id, sale_name,catalog, sale_price, market, store_id, create_by, create_date, update_by, update_date,
-            images, event_start_time, end_time_of_activity, top_up  from rec_sale_info
+            images, event_start_time, end_time_of_activity, top_up, top_index  from rec_sale_info
     </sql>
 
     <select id="selectRecSaleInfoList" parameterType="RecSaleInfo" resultMap="RecSaleInfoResult">
@@ -40,6 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="eventStartTime != null "> and event_start_time = #{eventStartTime}</if>
             <if test="endTimeOfActivity != null "> and end_time_of_activity = #{endTimeOfActivity}</if>
             <if test="topUp != null "> and top_up = #{topUp}</if>
+            <if test="topIndex != null "> and top_index = #{topIndex}</if>
         </where>
     </select>
 
@@ -65,6 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="info.eventStartTime != null">event_start_time,</if>
             <if test="info.endTimeOfActivity != null">end_time_of_activity,</if>
             <if test="info.topUp != null">top_up,</if>
+            <if test="info.topIndex != null">top_index,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="info.id != null">#{info.id},</if>
@@ -81,6 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="info.eventStartTime != null">#{info.eventStartTime},</if>
             <if test="info.endTimeOfActivity != null">#{info.endTimeOfActivity},</if>
             <if test="info.topUp != null">#{info.topUp},</if>
+            <if test="info.topIndex != null">#{info.topIndex},</if>
          </trim>
     </insert>
 
@@ -100,6 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="eventStartTime != null">event_start_time = #{eventStartTime},</if>
             <if test="endTimeOfActivity != null">end_time_of_activity = #{endTimeOfActivity},</if>
             <if test="topUp != null">top_up = #{topUp},</if>
+            <if test="topIndex != null">top_index = #{topIndex},</if>
         </trim>
         where id = #{id}
     </update>