yujian
2019-05-29 0588d6be74335f41c79a8d8e32dbd1c3d3e47fa3
fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFlashSaleMapper.xml
@@ -10,8 +10,7 @@
      <result column="fs_createtime" property="createtime" jdbcType="TIMESTAMP" />
      <result column="fs_updatetime" property="updatetime" jdbcType="TIMESTAMP" />
      
      <association property="qualityFactory" column="fs_qfgoods_id"
          javaType="com.yeshi.fanli.entity.bus.lable.QualityFactory">
      <association property="taoBaoGoodsBrief" column="fs_qfgoods_id" javaType="com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief">
         <id column="fs_qfgoods_id" property="id" jdbcType="BIGINT" />
       </association>
   </resultMap>
@@ -34,7 +33,7 @@
      useGeneratedKeys="true" keyProperty="id">insert into
      yeshi_ec_quality_flash_sale
      (fs_id,fs_qfgoods_id,fs_type,fs_weight,fs_createtime,fs_updatetime) values
      (#{id,jdbcType=BIGINT},#{qualityFactory.id,jdbcType=BIGINT},#{type,jdbcType=INTEGER},#{weight,jdbcType=DOUBLE},#{createtime,jdbcType=TIMESTAMP},#{updatetime,jdbcType=TIMESTAMP})
      (#{id,jdbcType=BIGINT},#{taoBaoGoodsBrief.id,jdbcType=BIGINT},#{type,jdbcType=INTEGER},#{weight,jdbcType=DOUBLE},#{createtime,jdbcType=TIMESTAMP},#{updatetime,jdbcType=TIMESTAMP})
   </insert>
   
   <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.lable.QualityFlashSale"
@@ -42,7 +41,7 @@
      insert into yeshi_ec_quality_flash_sale
      <trim prefix="(" suffix=")" suffixOverrides=",">
         <if test="id != null">fs_id,</if>
         <if test="qualityFactory != null">fs_qfgoods_id,</if>
         <if test="taoBaoGoodsBrief != null">fs_qfgoods_id,</if>
         <if test="type != null">fs_type,</if>
         <if test="weight != null">fs_weight,</if>
         <if test="createtime != null">fs_createtime,</if>
@@ -51,7 +50,7 @@
      values
      <trim prefix="(" suffix=")" suffixOverrides=",">
         <if test="id != null">#{id,jdbcType=BIGINT},</if>
         <if test="qualityFactory != null">#{qualityFactory.id,jdbcType=BIGINT},</if>
         <if test="taoBaoGoodsBrief != null">#{taoBaoGoodsBrief.id,jdbcType=BIGINT},</if>
         <if test="type != null">#{type,jdbcType=INTEGER},</if>
         <if test="weight != null">#{weight,jdbcType=DOUBLE},</if>
         <if test="createtime != null">#{createtime,jdbcType=TIMESTAMP},</if>
@@ -61,7 +60,7 @@
   
   <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.lable.QualityFlashSale">update
      yeshi_ec_quality_flash_sale set 
      fs_qfgoods_id =   #{qualityFactory.id,jdbcType=BIGINT},
      fs_qfgoods_id =   #{taoBaoGoodsBrief.id,jdbcType=BIGINT},
      fs_type =   #{type,jdbcType=INTEGER},
      fs_weight =   #{weight,jdbcType=DOUBLE},
      fs_createtime =   #{createtime,jdbcType=TIMESTAMP},
@@ -71,7 +70,7 @@
   <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.lable.QualityFlashSale">
      update yeshi_ec_quality_flash_sale
      <set>
         <if test="qualityFactory != null">fs_qfgoods_id=#{qualityFactory.id,jdbcType=BIGINT},</if>
         <if test="taoBaoGoodsBrief != null">fs_qfgoods_id=#{taoBaoGoodsBrief.id,jdbcType=BIGINT},</if>
         <if test="type != null">fs_type=#{type,jdbcType=INTEGER},</if>
         <if test="weight != null">fs_weight=#{weight,jdbcType=DOUBLE},</if>
         <if test="createtime != null">fs_createtime=#{createtime,jdbcType=TIMESTAMP},</if>
@@ -89,7 +88,7 @@
      <foreach collection="list" item="item" separator=",">
         (
         #{item.id,jdbcType=BIGINT},
         #{item.qualityFactory.id,jdbcType=BIGINT},
         #{item.taoBaoGoodsBrief.id,jdbcType=BIGINT},
         #{item.type,jdbcType=INTEGER},
         #{item.weight,jdbcType=DOUBLE},
         #{item.createtime,jdbcType=TIMESTAMP},
@@ -137,7 +136,7 @@
            separator=",">#{item}</foreach>
     </select>
     
     <delete id="deleteByQualityID" parameterType="java.lang.Long">
     <delete id="deleteByGoodsId" parameterType="java.lang.Long">
        delete from yeshi_ec_quality_flash_sale where fs_qfgoods_id = #{qid,jdbcType=BIGINT}
   </delete>