1
0
suochencheng 7 лет назад
Родитель
Сommit
e71ae7d1ae

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

@@ -23,6 +23,7 @@
         <result column="type_flag" property="typeFlag" jdbcType="INTEGER"/>
         <result column="type_flag" property="typeFlag" jdbcType="INTEGER"/>
         <result column="sales_volume" property="salesVolume" jdbcType="INTEGER"/>
         <result column="sales_volume" property="salesVolume" jdbcType="INTEGER"/>
         <result column="price" property="price" jdbcType="DECIMAL"/>
         <result column="price" property="price" jdbcType="DECIMAL"/>
+        <result column="product_detail" property="productDetail" jdbcType="VARCHAR"/>
     </resultMap>
     </resultMap>
     <sql id="Base_Column_List">
     <sql id="Base_Column_List">
         <trim suffixOverrides=",">
         <trim suffixOverrides=",">
@@ -68,6 +69,8 @@
 
 
             price,
             price,
 
 
+            product_detail,
+
         </trim>
         </trim>
     </sql>
     </sql>
     <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
     <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
@@ -147,6 +150,9 @@
             <if test="price!= null">
             <if test="price!= null">
                 price,
                 price,
             </if>
             </if>
+            <if test="productDetail!= null">
+                product_detail,
+            </if>
         </trim>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">
             <if test="id != null">
@@ -212,6 +218,9 @@
             <if test="price != null">
             <if test="price != null">
                 #{price,jdbcType=DECIMAL},
                 #{price,jdbcType=DECIMAL},
             </if>
             </if>
+            <if test="productDetail != null">
+                #{productDetail,jdbcType=VARCHAR},
+            </if>
         </trim>
         </trim>
     </insert>
     </insert>
     <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.ProductInfo">
     <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.ProductInfo">
@@ -280,6 +289,9 @@
             <if test="price != null">
             <if test="price != null">
                 price= #{price,jdbcType=DECIMAL},
                 price= #{price,jdbcType=DECIMAL},
             </if>
             </if>
+            <if test="productDetail != null">
+                product_detail= #{productDetail,jdbcType=VARCHAR},
+            </if>
         </set>
         </set>
         where
         where
         <if test="id != null and !&quot;&quot;.equals(id)">
         <if test="id != null and !&quot;&quot;.equals(id)">
@@ -664,11 +676,6 @@
                     select="com.izouma.awesomeadmin.dao.StoreInfoMapper.queryStoreInfo"
                     select="com.izouma.awesomeadmin.dao.StoreInfoMapper.queryStoreInfo"
                     column="{ id = store_id }"/>
                     column="{ id = store_id }"/>
 
 
-        <collection property="productImageList"
-                    ofType="com.izouma.awesomeadmin.model.ProductImage"
-                    select="com.izouma.awesomeadmin.dao.ProductImageMapper.queryAllProductImage"
-                    column="{ productId = id }"/>
-
         <collection property="productPriceList"
         <collection property="productPriceList"
                     ofType="com.izouma.awesomeadmin.model.ProductPrice"
                     ofType="com.izouma.awesomeadmin.model.ProductPrice"
                     select="com.izouma.awesomeadmin.dao.ProductPriceMapper.queryAllProductPrice"
                     select="com.izouma.awesomeadmin.dao.ProductPriceMapper.queryAllProductPrice"

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

@@ -32,6 +32,8 @@ public class ProductInfo {
     private Integer salesVolume;
     private Integer salesVolume;
     private BigDecimal price;
     private BigDecimal price;
 
 
+    private String productDetail;
+
     private String idStr;
     private String idStr;
 
 
     private List<ProductImage> productImageList;
     private List<ProductImage> productImageList;
@@ -275,5 +277,13 @@ public class ProductInfo {
     public void setIdStr(String idStr) {
     public void setIdStr(String idStr) {
         this.idStr = idStr;
         this.idStr = idStr;
     }
     }
+
+    public String getProductDetail() {
+        return productDetail;
+    }
+
+    public void setProductDetail(String productDetail) {
+        this.productDetail = productDetail;
+    }
 }
 }