suochencheng 6 anni fa
parent
commit
4783ccd1fc

+ 12 - 0
src/main/java/com/izouma/awesomeadmin/dao/ProductInfoMapper.xml

@@ -27,6 +27,7 @@
         <result column="out_url" property="outUrl" jdbcType="VARCHAR"/>
         <result column="out_url" property="outUrl" jdbcType="VARCHAR"/>
         <result column="out_flag" property="outFlag" jdbcType="CHAR"/>
         <result column="out_flag" property="outFlag" jdbcType="CHAR"/>
         <result column="down_payment" property="downPayment" jdbcType="DECIMAL"/>
         <result column="down_payment" property="downPayment" jdbcType="DECIMAL"/>
+        <result column="praise" property="praise" jdbcType="INTEGER"/>
     </resultMap>
     </resultMap>
     <sql id="Base_Column_List">
     <sql id="Base_Column_List">
         <trim suffixOverrides=",">
         <trim suffixOverrides=",">
@@ -80,6 +81,8 @@
 
 
             down_payment,
             down_payment,
 
 
+            praise,
+
         </trim>
         </trim>
     </sql>
     </sql>
     <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
     <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
@@ -171,6 +174,9 @@
             <if test="downPayment != null">
             <if test="downPayment != null">
                 down_payment,
                 down_payment,
             </if>
             </if>
+            <if test="praise != null">
+                praise,
+            </if>
         </trim>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">
             <if test="id != null">
@@ -248,6 +254,9 @@
             <if test="downPayment != null">
             <if test="downPayment != null">
                 #{downPayment},
                 #{downPayment},
             </if>
             </if>
+            <if test="praise != null">
+                #{praise},
+            </if>
         </trim>
         </trim>
     </insert>
     </insert>
     <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.ProductInfo">
     <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.ProductInfo">
@@ -328,6 +337,9 @@
             <if test="downPayment != null">
             <if test="downPayment != null">
                 down_payment = #{downPayment},
                 down_payment = #{downPayment},
             </if>
             </if>
+            <if test="praise != null">
+                praise = #{praise},
+            </if>
         </set>
         </set>
         where
         where
         <if test="id != null and !&quot;&quot;.equals(id)">
         <if test="id != null and !&quot;&quot;.equals(id)">

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

@@ -73,6 +73,11 @@ public class ProductInfo {
      */
      */
     private BigDecimal downPayment;
     private BigDecimal downPayment;
 
 
+    /**
+     * 好评
+     */
+    private Integer praise;
+
     public Integer getId() {
     public Integer getId() {
         return this.id;
         return this.id;
     }
     }
@@ -352,5 +357,13 @@ public class ProductInfo {
     public void setDownPayment(BigDecimal downPayment) {
     public void setDownPayment(BigDecimal downPayment) {
         this.downPayment = downPayment;
         this.downPayment = downPayment;
     }
     }
+
+    public Integer getPraise() {
+        return praise;
+    }
+
+    public void setPraise(Integer praise) {
+        this.praise = praise;
+    }
 }
 }
 
 

+ 3 - 0
src/main/vue/src/pages/ProductInfo.vue

@@ -77,6 +77,9 @@
             <el-form-item prop="salesVolume" label="销量">
             <el-form-item prop="salesVolume" label="销量">
                 <el-input v-model="formData.salesVolume" :disabled="'salesVolume'==subColumn"></el-input>
                 <el-input v-model="formData.salesVolume" :disabled="'salesVolume'==subColumn"></el-input>
             </el-form-item>
             </el-form-item>
+            <el-form-item prop="praise" label="好评">
+                <el-input v-model="formData.praise" :disabled="'praise'==subColumn"></el-input>
+            </el-form-item>
 
 
             <!-- <el-form-item prop="outFlag" label="外链">
             <!-- <el-form-item prop="outFlag" label="外链">
                 <el-switch v-model="formData.outFlag" active-color="#13ce66" inactive-color="#ff4949">
                 <el-switch v-model="formData.outFlag" active-color="#13ce66" inactive-color="#ff4949">

+ 2 - 2
src/main/vue/src/pages/ProductInfos.vue

@@ -80,13 +80,13 @@
 
 
             <el-table-column v-if="isColumnShow('hotFlag')" align="center" prop="hotFlag" label="热门" :formatter="YNFormatter" min-width="100">
             <el-table-column v-if="isColumnShow('hotFlag')" align="center" prop="hotFlag" label="热门" :formatter="YNFormatter" min-width="100">
                 <template slot-scope="{row}">
                 <template slot-scope="{row}">
-                    {{row.hotFlag=='Y'?'热门':'不热门'}}
+                    {{row.hotFlag==1?'热门':'不热门'}}
                 </template>
                 </template>
             </el-table-column>
             </el-table-column>
 
 
             <el-table-column v-if="isColumnShow('homeFlag')" align="center" prop="homeFlag" label="首页" :formatter="YNFormatter" min-width="100">
             <el-table-column v-if="isColumnShow('homeFlag')" align="center" prop="homeFlag" label="首页" :formatter="YNFormatter" min-width="100">
                 <template slot-scope="{row}">
                 <template slot-scope="{row}">
-                    {{row.homeFlag=='Y'?'是':'否'}}
+                    {{row.homeFlag==1?'是':'否'}}
                 </template>
                 </template>
             </el-table-column>
             </el-table-column>