suochencheng před 6 roky
rodič
revize
a9ef784976

+ 31 - 0
src/main/java/com/izouma/awesomeadmin/dao/LandMarkMapper.xml

@@ -35,6 +35,7 @@
         <result column="area_map_info" property="areaMapInfo" jdbcType="VARCHAR"/>
         <result column="ad_image" property="adImage" jdbcType="VARCHAR"/>
         <result column="map_angle" property="mapAngle" jdbcType="VARCHAR"/>
+        <result column="add_step" property="addStep" jdbcType="INTEGER"/>
     </resultMap>
     <sql id="Base_Column_List">
         <trim suffixOverrides=",">
@@ -97,6 +98,7 @@
             area_map_info,
             ad_image,
             map_angle,
+            add_step,
 
         </trim>
     </sql>
@@ -213,6 +215,9 @@
             <if test="mapAngle!= null">
                 map_angle,
             </if>
+            <if test="addStep!= null">
+                add_step,
+            </if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">
@@ -314,6 +319,9 @@
             <if test="mapAngle != null">
                 #{mapAngle,jdbcType=VARCHAR},
             </if>
+            <if test="addStep != null">
+                #{addStep},
+            </if>
         </trim>
     </insert>
     <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.LandMark">
@@ -418,6 +426,9 @@
             <if test="mapAngle != null">
                 map_angle = #{mapAngle,jdbcType=VARCHAR},
             </if>
+            <if test="addStep != null">
+                add_step= #{addStep,jdbcType=INTEGER},
+            </if>
         </set>
         where
         <if test="id != null and !&quot;&quot;.equals(id)">
@@ -528,6 +539,9 @@
             <if test="areaMapInfo != null and !&quot;&quot;.equals(areaMapInfo)">
                 and area_map_info = #{areaMapInfo}
             </if>
+            <if test="addStep != null and !&quot;&quot;.equals(addStep)">
+                and add_step = #{addStep}
+            </if>
             <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
 
                 and (front_level_id = #{frontLevelId}
@@ -715,6 +729,9 @@
             <if test="record.areaMapInfo != null and !&quot;&quot;.equals(record.areaMapInfo)">
                 and area_map_info = #{record.areaMapInfo}
             </if>
+            <if test="record.addStep != null and !&quot;&quot;.equals(record.addStep)">
+                and add_step = #{record.addStep}
+            </if>
             <if test="record.frontLevelId != null and !&quot;&quot;.equals(record.frontLevelId)">
 
                 and (front_level_id = #{record.frontLevelId}
@@ -920,6 +937,9 @@
             <if test="record.areaMapInfo != null and !&quot;&quot;.equals(record.areaMapInfo)">
                 and area_map_info = #{record.areaMapInfo}
             </if>
+            <if test="record.addStep != null and !&quot;&quot;.equals(record.addStep)">
+                and add_step = #{record.addStep}
+            </if>
             <if test="record.frontLevelId != null and !&quot;&quot;.equals(record.frontLevelId)">
 
                 and (front_level_id = #{record.frontLevelId}
@@ -1125,6 +1145,9 @@
             <if test="areaMapInfo != null and !&quot;&quot;.equals(areaMapInfo)">
                 and area_map_info = #{areaMapInfo}
             </if>
+            <if test="addStep != null and !&quot;&quot;.equals(addStep)">
+                and add_step = #{addStep}
+            </if>
             <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
 
                 and (front_level_id = #{frontLevelId}
@@ -1312,6 +1335,10 @@
                 and area_map_info = #{areaMapInfo}
             </if>
 
+            <if test="addStep != null and !&quot;&quot;.equals(addStep)">
+                and add_step = #{addStep}
+            </if>
+
         </where>
         LIMIT 1
     </select>
@@ -1417,6 +1444,10 @@
                 and area_map_info = #{areaMapInfo}
             </if>
 
+            <if test="addStep != null and !&quot;&quot;.equals(addStep)">
+                and add_step = #{addStep}
+            </if>
+
         </where>
         LIMIT 1
     </select>

+ 13 - 0
src/main/java/com/izouma/awesomeadmin/model/LandMark.java

@@ -66,6 +66,11 @@ public class LandMark {
 
     private String mapAngle;
 
+    /**
+     * 添加到第几步,默认5
+     */
+    private Integer addStep;
+
     /**
      * 闪屏广告图片
      */
@@ -469,5 +474,13 @@ public class LandMark {
     public void setMapAngle(String mapAngle) {
         this.mapAngle = mapAngle;
     }
+
+    public Integer getAddStep() {
+        return addStep;
+    }
+
+    public void setAddStep(Integer addStep) {
+        this.addStep = addStep;
+    }
 }