suochencheng пре 6 година
родитељ
комит
863f113f52

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

@@ -36,6 +36,9 @@
         <result column="ad_image" property="adImage" jdbcType="VARCHAR"/>
         <result column="map_angle" property="mapAngle" jdbcType="VARCHAR"/>
         <result column="add_step" property="addStep" jdbcType="INTEGER"/>
+        <result column="mark_level" property="markLevel" jdbcType="VARCHAR"/>
+        <result column="mark_price" property="markPrice" jdbcType="VARCHAR"/>
+        <result column="bus_route" property="busRoute" jdbcType="VARCHAR"/>
     </resultMap>
     <sql id="Base_Column_List">
         <trim suffixOverrides=",">
@@ -99,6 +102,9 @@
             ad_image,
             map_angle,
             add_step,
+            mark_level,
+            mark_price,
+            bus_route,
 
         </trim>
     </sql>
@@ -218,6 +224,15 @@
             <if test="addStep!= null">
                 add_step,
             </if>
+            <if test="markLevel!= null">
+                mark_level,
+            </if>
+            <if test="markPrice!= null">
+                mark_price,
+            </if>
+            <if test="busRoute!= null">
+                bus_route,
+            </if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">
@@ -322,6 +337,15 @@
             <if test="addStep != null">
                 #{addStep},
             </if>
+            <if test="markLevel != null">
+                #{markLevel,jdbcType=VARCHAR},
+            </if>
+            <if test="markPrice != null">
+                #{markPrice,jdbcType=VARCHAR},
+            </if>
+            <if test="busRoute != null">
+                #{busRoute,jdbcType=VARCHAR},
+            </if>
         </trim>
     </insert>
     <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.LandMark">
@@ -429,6 +453,15 @@
             <if test="addStep != null">
                 add_step= #{addStep,jdbcType=INTEGER},
             </if>
+            <if test="markLevel != null">
+                mark_level = #{markLevel,jdbcType=VARCHAR},
+            </if>
+            <if test="markPrice != null">
+                mark_price = #{markPrice,jdbcType=VARCHAR},
+            </if>
+            <if test="busRoute != null">
+                bus_route = #{busRoute,jdbcType=VARCHAR},
+            </if>
         </set>
         where
         <if test="id != null and !&quot;&quot;.equals(id)">

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

@@ -66,6 +66,22 @@ public class LandMark {
 
     private String mapAngle;
 
+    /**
+     * 地标(景区)级别
+     */
+    private String markLevel;
+
+    /**
+     * 门票/价格
+     */
+    private String markPrice;
+
+    /**
+     * 公交路线
+     */
+    private String busRoute;
+
+
     /**
      * 添加到第几步,默认5
      */
@@ -482,5 +498,29 @@ public class LandMark {
     public void setAddStep(Integer addStep) {
         this.addStep = addStep;
     }
+
+    public String getMarkLevel() {
+        return markLevel;
+    }
+
+    public void setMarkLevel(String markLevel) {
+        this.markLevel = markLevel;
+    }
+
+    public String getMarkPrice() {
+        return markPrice;
+    }
+
+    public void setMarkPrice(String markPrice) {
+        this.markPrice = markPrice;
+    }
+
+    public String getBusRoute() {
+        return busRoute;
+    }
+
+    public void setBusRoute(String busRoute) {
+        this.busRoute = busRoute;
+    }
 }
 

+ 9 - 0
src/main/vue/src/pages/LandMark.vue

@@ -122,6 +122,15 @@
               <el-form-item prop="mapAngle" label="地图角度">
                 <el-input v-model="formData.mapAngle"></el-input>
               </el-form-item>
+              <el-form-item prop="markLevel" label="景区级别">
+                <el-input v-model="formData.markLevel"></el-input>
+              </el-form-item>
+              <el-form-item prop="markPrice" label="门票">
+                <el-input v-model="formData.markPrice"></el-input>
+              </el-form-item>
+              <el-form-item prop="busRoute" label="公交路线">
+                <el-input v-model="formData.busRoute"></el-input>
+              </el-form-item>
 
             </template>