yujian
2019-01-23 a61db6899dd2e6f9c4c56e1b94b40c60b2ea1900
fanli/src/main/java/com/yeshi/fanli/mapping/goods/CommonGoodsMapper.xml
@@ -13,6 +13,7 @@
      <result column="cg_sales" property="sales" jdbcType="INTEGER" />
      <result column="cg_rate" property="rate" jdbcType="DECIMAL" />
      <result column="cg_picture" property="picture" jdbcType="VARCHAR" />
      <result column="cg_picture_white" property="pictureWhite" jdbcType="VARCHAR" />
      <result column="cg_state" property="state" jdbcType="INTEGER" />
      <result column="cg_price" property="price" jdbcType="DECIMAL" />
      <result column="cg_coupon_info" property="couponInfo" jdbcType="VARCHAR" />
@@ -29,7 +30,7 @@
      <result column="cg_createtime" property="createTime" jdbcType="TIMESTAMP" />
      <result column="cg_updatetime" property="updateTime" jdbcType="TIMESTAMP" />
   </resultMap>
   <sql id="Base_Column_List">cg_id,cg_title,cg_goods_id,cg_goods_type,cg_shop_type,cg_seller_id,cg_seller_name,cg_sales,cg_rate,cg_picture,cg_state,cg_price,cg_coupon_info,cg_coupon_startprice,cg_coupon_amount,cg_coupon_left_count,cg_coupon_total_count,cg_video_cover,cg_video_url,cg_createtime,cg_updatetime
   <sql id="Base_Column_List">cg_id,cg_title,cg_goods_id,cg_goods_type,cg_shop_type,cg_seller_id,cg_seller_name,cg_sales,cg_rate,cg_picture,cg_picture_white,cg_state,cg_price,cg_coupon_info,cg_coupon_startprice,cg_coupon_amount,cg_coupon_left_count,cg_coupon_total_count,cg_video_cover,cg_video_url,cg_createtime,cg_updatetime
   </sql>
   <select id="selectByPrimaryKey" resultMap="BaseResultMap"
      parameterType="java.lang.Long">
@@ -52,7 +53,7 @@
   </delete>
   <insert id="insert" parameterType="com.yeshi.fanli.entity.goods.CommonGoods"
      useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_common_goods
      (cg_id,cg_title,cg_goods_id,cg_goods_type,cg_shop_type,cg_seller_id,cg_seller_name,cg_sales,cg_rate,cg_picture,cg_state,cg_price,cg_coupon_info,cg_coupon_startprice,cg_coupon_amount,cg_coupon_left_count,cg_coupon_total_count,cg_video_cover,cg_video_url,cg_createtime,cg_updatetime)
      (cg_id,cg_title,cg_goods_id,cg_goods_type,cg_shop_type,cg_seller_id,cg_seller_name,cg_sales,cg_rate,cg_picture,cg_picture_white,cg_state,cg_price,cg_coupon_info,cg_coupon_startprice,cg_coupon_amount,cg_coupon_left_count,cg_coupon_total_count,cg_video_cover,cg_video_url,cg_createtime,cg_updatetime)
      values
      (#{id,jdbcType=BIGINT},#{title,jdbcType=VARCHAR},#{goodsId,jdbcType=BIGINT},#{goodsType,jdbcType=INTEGER},#{shopType,jdbcType=INTEGER},#{sellerId,jdbcType=BIGINT},#{sellerName,jdbcType=VARCHAR},#{sales,jdbcType=INTEGER},#{rate,jdbcType=DECIMAL},#{picture,jdbcType=VARCHAR},#{state,jdbcType=INTEGER},#{price,jdbcType=DECIMAL},#{couponInfo,jdbcType=VARCHAR},#{couponStartPrice,jdbcType=DECIMAL},#{couponAmount,jdbcType=DECIMAL},#{couponLeftCount,jdbcType=INTEGER},#{couponTotalCount,jdbcType=INTEGER},#{videoCover,jdbcType=VARCHAR},#{videoUrl,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})
   </insert>
@@ -70,6 +71,7 @@
         <if test="sales != null">cg_sales,</if>
         <if test="rate != null">cg_rate,</if>
         <if test="picture != null">cg_picture,</if>
         <if test="pictureWhite != null">cg_picture_white,</if>
         <if test="state != null">cg_state,</if>
         <if test="price != null">cg_price,</if>
         <if test="couponInfo != null">cg_coupon_info,</if>
@@ -94,6 +96,7 @@
         <if test="sales != null">#{sales,jdbcType=INTEGER},</if>
         <if test="rate != null">#{rate,jdbcType=DECIMAL},</if>
         <if test="picture != null">#{picture,jdbcType=VARCHAR},</if>
         <if test="pictureWhite != null">#{pictureWhite,jdbcType=VARCHAR},</if>
         <if test="state != null">#{state,jdbcType=INTEGER},</if>
         <if test="price != null">#{price,jdbcType=DECIMAL},</if>
         <if test="couponInfo != null">#{couponInfo,jdbcType=VARCHAR},</if>
@@ -117,7 +120,8 @@
      #{sellerName,jdbcType=VARCHAR},cg_sales =
      #{sales,jdbcType=INTEGER},cg_rate =
      #{rate,jdbcType=DECIMAL},cg_picture =
      #{picture,jdbcType=VARCHAR},cg_state =
      #{picture,jdbcType=VARCHAR},cg_picture_white =
      #{pictureWhite,jdbcType=VARCHAR},cg_state =
      #{state,jdbcType=INTEGER},cg_price =
      #{price,jdbcType=DECIMAL},cg_coupon_info =
      #{couponInfo,jdbcType=VARCHAR},cg_coupon_startprice =
@@ -142,6 +146,7 @@
         <if test="sales != null">cg_sales=#{sales,jdbcType=INTEGER},</if>
         <if test="rate != null">cg_rate=#{rate,jdbcType=DECIMAL},</if>
         <if test="picture != null">cg_picture=#{picture,jdbcType=VARCHAR},</if>
         <if test="pictureWhite != null">cg_picture_white=#{pictureWhite,jdbcType=VARCHAR},</if>
         <if test="state != null">cg_state=#{state,jdbcType=INTEGER},</if>
         <if test="price != null">cg_price=#{price,jdbcType=DECIMAL},</if>
         <if test="couponInfo != null">cg_coupon_info=#{couponInfo,jdbcType=VARCHAR},</if>