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