Authored by wangnan

fix dal

@@ -12,8 +12,6 @@ public interface ProductAttributePropertyValuesMapper { @@ -12,8 +12,6 @@ public interface ProductAttributePropertyValuesMapper {
12 12
13 ProductAttributePropertyValues selectByPrimaryKey(Integer id); 13 ProductAttributePropertyValues selectByPrimaryKey(Integer id);
14 14
15 - int updateByPrimaryKeySelective(ProductAttributePropertyValues record);  
16 -  
17 List<ProductAttributePropertyValues> selectBySkns(@Param(value="skns")List<Integer> skns); 15 List<ProductAttributePropertyValues> selectBySkns(@Param(value="skns")List<Integer> skns);
18 16
19 17
@@ -38,24 +38,6 @@ @@ -38,24 +38,6 @@
38 values (#{id,jdbcType=INTEGER}, #{productSkn,jdbcType=INTEGER}, #{attributeId,jdbcType=INTEGER}, 38 values (#{id,jdbcType=INTEGER}, #{productSkn,jdbcType=INTEGER}, #{attributeId,jdbcType=INTEGER},
39 #{attributeValueId,jdbcType=VARCHAR}, #{displayPosition,jdbcType=INTEGER}) 39 #{attributeValueId,jdbcType=VARCHAR}, #{displayPosition,jdbcType=INTEGER})
40 </insert> 40 </insert>
41 - <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ProductAttributePropertyValues" >  
42 - update product_attribute_property_values  
43 - <set >  
44 - <if test="productSkn != null" >  
45 - product_skn = #{productSkn,jdbcType=INTEGER},  
46 - </if>  
47 - <if test="attributeId != null" >  
48 - attribute_id = #{attributeId,jdbcType=INTEGER},  
49 - </if>  
50 - <if test="attributeValueId != null" >  
51 - attribute_value_id = #{attributeValueId,jdbcType=VARCHAR},  
52 - </if>  
53 - <if test="displayPosition != null" >  
54 - display_position = #{displayPosition,jdbcType=INTEGER},  
55 - </if>  
56 - </set>  
57 - where id = #{id,jdbcType=INTEGER}  
58 - </update>  
59 <insert id="insertSelective" parameterType="com.yoho.search.dal.model.ProductAttributePropertyValues" > 41 <insert id="insertSelective" parameterType="com.yoho.search.dal.model.ProductAttributePropertyValues" >
60 insert into product_attribute_property_values 42 insert into product_attribute_property_values
61 <trim prefix="(" suffix=")" suffixOverrides="," > 43 <trim prefix="(" suffix=")" suffixOverrides="," >