Authored by wangnan9279

ufo

Showing 25 changed files with 705 additions and 25 deletions
... ... @@ -9,6 +9,8 @@ public interface UfoStoragePriceMapper {
int insert(UfoStoragePrice record);
int insertSelective(UfoStoragePrice record);
UfoStoragePrice selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(UfoStoragePrice record);
... ...
... ... @@ -36,6 +36,74 @@
)
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoBrand" >
insert into ufo_brand
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="brandName != null" >
brand_name,
</if>
<if test="brandNameEn != null" >
brand_name_en,
</if>
<if test="brandLogo != null" >
brand_logo,
</if>
<if test="brandSearch != null" >
brand_search,
</if>
<if test="status != null" >
status,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="editTime != null" >
edit_time,
</if>
<if test="editPid != null" >
edit_pid,
</if>
<if test="orderBy != null" >
order_by,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=SMALLINT},
</if>
<if test="brandName != null" >
#{brandName,jdbcType=VARCHAR},
</if>
<if test="brandNameEn != null" >
#{brandNameEn,jdbcType=VARCHAR},
</if>
<if test="brandLogo != null" >
#{brandLogo,jdbcType=VARCHAR},
</if>
<if test="brandSearch != null" >
#{brandSearch,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=TINYINT},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
</if>
<if test="editTime != null" >
#{editTime,jdbcType=INTEGER},
</if>
<if test="editPid != null" >
#{editPid,jdbcType=INTEGER},
</if>
<if test="orderBy != null" >
#{orderBy,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoBrand">
update ufo_brand
<set>
... ...
... ... @@ -37,6 +37,56 @@
#{brandId,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoBrandSeries" >
insert into ufo_brand_series
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="seriesName != null" >
series_name,
</if>
<if test="seriesSearch != null" >
series_search,
</if>
<if test="status != null" >
status,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="updateTime != null" >
update_time,
</if>
<if test="brandId != null" >
brand_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=SMALLINT},
</if>
<if test="seriesName != null" >
#{seriesName,jdbcType=VARCHAR},
</if>
<if test="seriesSearch != null" >
#{seriesSearch,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=TINYINT},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=INTEGER},
</if>
<if test="brandId != null" >
#{brandId,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoBrandSeries">
update ufo_brand_series
<set>
... ...
... ... @@ -35,6 +35,50 @@
#{isDefault,jdbcType=CHAR}, #{imageUrl,jdbcType=VARCHAR}, #{orderBy,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoGoodsImages" >
insert into ufo_goods_images
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="goodsId != null" >
goods_id,
</if>
<if test="productId != null" >
product_id,
</if>
<if test="isDefault != null" >
is_default,
</if>
<if test="imageUrl != null" >
image_url,
</if>
<if test="orderBy != null" >
order_by,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="goodsId != null" >
#{goodsId,jdbcType=INTEGER},
</if>
<if test="productId != null" >
#{productId,jdbcType=INTEGER},
</if>
<if test="isDefault != null" >
#{isDefault,jdbcType=CHAR},
</if>
<if test="imageUrl != null" >
#{imageUrl,jdbcType=VARCHAR},
</if>
<if test="orderBy != null" >
#{orderBy,jdbcType=TINYINT},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoGoodsImages">
update ufo_goods_images
... ...
... ... @@ -36,6 +36,56 @@
#{colorName,jdbcType=VARCHAR}, #{goodsName,jdbcType=VARCHAR}, #{colorImage,jdbcType=VARCHAR},
#{isDefault,jdbcType=CHAR})
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoGoods" >
insert into ufo_goods
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="productId != null" >
product_id,
</if>
<if test="colorId != null" >
color_id,
</if>
<if test="colorName != null" >
color_name,
</if>
<if test="goodsName != null" >
goods_name,
</if>
<if test="colorImage != null" >
color_image,
</if>
<if test="isDefault != null" >
is_default,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="productId != null" >
#{productId,jdbcType=INTEGER},
</if>
<if test="colorId != null" >
#{colorId,jdbcType=SMALLINT},
</if>
<if test="colorName != null" >
#{colorName,jdbcType=VARCHAR},
</if>
<if test="goodsName != null" >
#{goodsName,jdbcType=VARCHAR},
</if>
<if test="colorImage != null" >
#{colorImage,jdbcType=VARCHAR},
</if>
<if test="isDefault != null" >
#{isDefault,jdbcType=CHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoGoods" >
update ufo_goods
... ...
... ... @@ -32,6 +32,38 @@
#{createTime,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoProductPoolDetail" >
insert into ufo_product_pool_detail
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="poolId != null" >
pool_id,
</if>
<if test="productId != null" >
product_id,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="poolId != null" >
#{poolId,jdbcType=INTEGER},
</if>
<if test="productId != null" >
#{productId,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProductPoolDetail">
update ufo_product_pool_detail
<set>
... ...
... ... @@ -31,6 +31,38 @@
)
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoProductPool" >
insert into ufo_product_pool
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="poolName != null" >
pool_name,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="poolType != null" >
pool_type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="poolName != null" >
#{poolName,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
</if>
<if test="poolType != null" >
#{poolType,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProductPool" >
update ufo_product_pool
<set >
... ...
... ... @@ -35,6 +35,62 @@
#{parentId,jdbcType=SMALLINT}, #{status,jdbcType=TINYINT}, #{orderBy,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoProductSort" >
insert into ufo_product_sort
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="sortName != null" >
sort_name,
</if>
<if test="level != null" >
level,
</if>
<if test="parentId != null" >
parent_id,
</if>
<if test="status != null" >
status,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="updateTime != null" >
update_time,
</if>
<if test="orderBy != null" >
order_by,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=SMALLINT},
</if>
<if test="sortName != null" >
#{sortName,jdbcType=VARCHAR},
</if>
<if test="level != null" >
#{level,jdbcType=SMALLINT},
</if>
<if test="parentId != null" >
#{parentId,jdbcType=SMALLINT},
</if>
<if test="status != null" >
#{status,jdbcType=TINYINT},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=INTEGER},
</if>
<if test="orderBy != null" >
#{orderBy,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProductSort" >
update ufo_product_sort
<set >
... ...
... ... @@ -34,6 +34,50 @@
)
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoSize" >
insert into ufo_size
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="sizeName != null" >
size_name,
</if>
<if test="sortId != null" >
sort_id,
</if>
<if test="orderBy != null" >
order_by,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="updateTime != null" >
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=SMALLINT},
</if>
<if test="sizeName != null" >
#{sizeName,jdbcType=VARCHAR},
</if>
<if test="sortId != null" >
#{sortId,jdbcType=SMALLINT},
</if>
<if test="orderBy != null" >
#{orderBy,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoSize">
update ufo_size
<set>
... ...
... ... @@ -32,7 +32,57 @@
values (#{id,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER},
#{sizeId,jdbcType=SMALLINT}, #{storageNum,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoStorage" >
insert into ufo_storage
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="productId != null" >
product_id,
</if>
<if test="goodsId != null" >
goods_id,
</if>
<if test="sizeId != null" >
size_id,
</if>
<if test="storageNum != null" >
storage_num,
</if>
<if test="updateTime != null" >
update_time,
</if>
<if test="createTime != null" >
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="productId != null" >
#{productId,jdbcType=INTEGER},
</if>
<if test="goodsId != null" >
#{goodsId,jdbcType=INTEGER},
</if>
<if test="sizeId != null" >
#{sizeId,jdbcType=SMALLINT},
</if>
<if test="storageNum != null" >
#{storageNum,jdbcType=INTEGER},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoStorage" >
update ufo_storage
<set >
... ...
... ... @@ -44,6 +44,86 @@
#{createTime,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoStoragePrice" >
insert into ufo_storage_price
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="skup != null" >
skup,
</if>
<if test="productId != null" >
product_id,
</if>
<if test="goodsId != null" >
goods_id,
</if>
<if test="storageId != null" >
storage_id,
</if>
<if test="depotNum != null" >
depot_num,
</if>
<if test="sellerUid != null" >
seller_uid,
</if>
<if test="price != null" >
price,
</if>
<if test="status != null" >
status,
</if>
<if test="updateTime != null" >
update_time,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="editPid != null" >
edit_pid,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="skup != null" >
#{skup,jdbcType=INTEGER},
</if>
<if test="productId != null" >
#{productId,jdbcType=INTEGER},
</if>
<if test="goodsId != null" >
#{goodsId,jdbcType=INTEGER},
</if>
<if test="storageId != null" >
#{storageId,jdbcType=INTEGER},
</if>
<if test="depotNum != null" >
#{depotNum,jdbcType=INTEGER},
</if>
<if test="sellerUid != null" >
#{sellerUid,jdbcType=INTEGER},
</if>
<if test="price != null" >
#{price,jdbcType=DECIMAL},
</if>
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
</if>
<if test="editPid != null" >
#{editPid,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoStoragePrice">
update ufo_storage_price
<set>
... ...
... ... @@ -33,6 +33,50 @@
#{colorValue,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.UfoProductColor" >
insert into ufo_product_color
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="colorName != null" >
color_name,
</if>
<if test="colorCode != null" >
color_code,
</if>
<if test="colorValue != null" >
color_value,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="updateTime != null" >
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=SMALLINT},
</if>
<if test="colorName != null" >
#{colorName,jdbcType=VARCHAR},
</if>
<if test="colorCode != null" >
#{colorCode,jdbcType=VARCHAR},
</if>
<if test="colorValue != null" >
#{colorValue,jdbcType=VARCHAR},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProductColor" >
update ufo_product_color
... ...
... ... @@ -58,6 +58,134 @@
)
</insert>
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufoProduct" >
insert into ufo_product
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="productName != null" >
product_name,
</if>
<if test="productCode != null" >
product_code,
</if>
<if test="maxSortId != null" >
max_sort_id,
</if>
<if test="midSortId != null" >
mid_sort_id,
</if>
<if test="brandId != null" >
brand_id,
</if>
<if test="seriesId != null" >
series_id,
</if>
<if test="gender != null" >
gender,
</if>
<if test="saleTime != null" >
sale_time,
</if>
<if test="minPrice != null" >
min_price,
</if>
<if test="maxPrice != null" >
max_price,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="updateTime != null" >
update_time,
</if>
<if test="shelveTime != null" >
shelve_time,
</if>
<if test="editTime != null" >
edit_time,
</if>
<if test="shelveStatus != null" >
shelve_status,
</if>
<if test="storage != null" >
storage,
</if>
<if test="keyWords != null" >
key_words,
</if>
<if test="delStatus != null" >
del_status,
</if>
<if test="orderBy != null" >
order_by,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="productName != null" >
#{productName,jdbcType=VARCHAR},
</if>
<if test="productCode != null" >
#{productCode,jdbcType=VARCHAR},
</if>
<if test="maxSortId != null" >
#{maxSortId,jdbcType=SMALLINT},
</if>
<if test="midSortId != null" >
#{midSortId,jdbcType=SMALLINT},
</if>
<if test="brandId != null" >
#{brandId,jdbcType=SMALLINT},
</if>
<if test="seriesId != null" >
#{seriesId,jdbcType=SMALLINT},
</if>
<if test="gender != null" >
#{gender,jdbcType=CHAR},
</if>
<if test="saleTime != null" >
#{saleTime,jdbcType=INTEGER},
</if>
<if test="minPrice != null" >
#{minPrice,jdbcType=DECIMAL},
</if>
<if test="maxPrice != null" >
#{maxPrice,jdbcType=DECIMAL},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=INTEGER},
</if>
<if test="shelveTime != null" >
#{shelveTime,jdbcType=INTEGER},
</if>
<if test="editTime != null" >
#{editTime,jdbcType=INTEGER},
</if>
<if test="shelveStatus != null" >
#{shelveStatus,jdbcType=TINYINT},
</if>
<if test="storage != null" >
#{storage,jdbcType=INTEGER},
</if>
<if test="keyWords != null" >
#{keyWords,jdbcType=VARCHAR},
</if>
<if test="delStatus != null" >
#{delStatus,jdbcType=TINYINT},
</if>
<if test="orderBy != null" >
#{orderBy,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.UfoProduct">
update ufo_product
<set>
... ...
... ... @@ -19,7 +19,7 @@ public class UfoBrandSeriesService {
}
public int insert(UfoBrandSeries ufoBrandSeries) {
return ufoBrandSeriesMapper.insert(ufoBrandSeries);
return ufoBrandSeriesMapper.insertSelective(ufoBrandSeries);
}
public int update(UfoBrandSeries ufoBrandSeries) {
... ... @@ -28,7 +28,7 @@ public class UfoBrandSeriesService {
public int saveOrUpdate(UfoBrandSeries ufoBrandSeries) {
if (ufoBrandSeries.getId() == null || ufoBrandSeriesMapper.selectByPrimaryKey(ufoBrandSeries.getId()) == null) {
return ufoBrandSeriesMapper.insert(ufoBrandSeries);
return ufoBrandSeriesMapper.insertSelective(ufoBrandSeries);
} else {
return ufoBrandSeriesMapper.updateByPrimaryKeySelective(ufoBrandSeries);
}
... ...
... ... @@ -19,7 +19,7 @@ public class UfoBrandService {
}
public int insert(UfoBrand ufoBrand) {
return ufoBrandMapper.insert(ufoBrand);
return ufoBrandMapper.insertSelective(ufoBrand);
}
public int update(UfoBrand ufoBrand) {
... ... @@ -28,7 +28,7 @@ public class UfoBrandService {
public int saveOrUpdate(UfoBrand ufoBrand) {
if (ufoBrand.getId() == null || ufoBrandMapper.selectByPrimaryKey(ufoBrand.getId()) == null) {
return ufoBrandMapper.insert(ufoBrand);
return ufoBrandMapper.insertSelective(ufoBrand);
} else {
return ufoBrandMapper.updateByPrimaryKeySelective(ufoBrand);
}
... ...
... ... @@ -19,7 +19,7 @@ public class UfoGoodsImagesService {
}
public int insert(UfoGoodsImages ufoGoodsImages) {
return ufoGoodsImagesMapper.insert(ufoGoodsImages);
return ufoGoodsImagesMapper.insertSelective(ufoGoodsImages);
}
public int update(UfoGoodsImages ufoGoodsImages) {
... ... @@ -28,7 +28,7 @@ public class UfoGoodsImagesService {
public int saveOrUpdate(UfoGoodsImages ufoGoodsImages) {
if (ufoGoodsImages.getId() == null || ufoGoodsImagesMapper.selectByPrimaryKey(ufoGoodsImages.getId()) == null) {
return ufoGoodsImagesMapper.insert(ufoGoodsImages);
return ufoGoodsImagesMapper.insertSelective(ufoGoodsImages);
} else {
return ufoGoodsImagesMapper.updateByPrimaryKeySelective(ufoGoodsImages);
}
... ...
... ... @@ -19,7 +19,7 @@ public class UfoGoodsService {
}
public int insert(UfoGoods ufoGoods) {
return ufoGoodsMapper.insert(ufoGoods);
return ufoGoodsMapper.insertSelective(ufoGoods);
}
public int update(UfoGoods ufoGoods) {
... ... @@ -28,7 +28,7 @@ public class UfoGoodsService {
public int saveOrUpdate(UfoGoods ufoGoods) {
if (ufoGoods.getId() == null || ufoGoodsMapper.selectByPrimaryKey(ufoGoods.getId()) == null) {
return ufoGoodsMapper.insert(ufoGoods);
return ufoGoodsMapper.insertSelective(ufoGoods);
} else {
return ufoGoodsMapper.updateByPrimaryKeySelective(ufoGoods);
}
... ...
... ... @@ -19,7 +19,7 @@ public class UfoProductColorService {
}
public int insert(UfoProductColor ufoProductColor) {
return ufoProductColorMapper.insert(ufoProductColor);
return ufoProductColorMapper.insertSelective(ufoProductColor);
}
public int update(UfoProductColor ufoProductColor) {
... ... @@ -28,7 +28,7 @@ public class UfoProductColorService {
public int saveOrUpdate(UfoProductColor ufoProductColor) {
if (ufoProductColor.getId() == null || ufoProductColorMapper.selectByPrimaryKey(ufoProductColor.getId()) == null) {
return ufoProductColorMapper.insert(ufoProductColor);
return ufoProductColorMapper.insertSelective(ufoProductColor);
} else {
return ufoProductColorMapper.updateByPrimaryKeySelective(ufoProductColor);
}
... ...
... ... @@ -19,7 +19,7 @@ public class UfoProductPoolDetailService {
}
public int insert(UfoProductPoolDetail ufoProductPoolDetail) {
return ufoProductPoolDetailMapper.insert(ufoProductPoolDetail);
return ufoProductPoolDetailMapper.insertSelective(ufoProductPoolDetail);
}
public int update(UfoProductPoolDetail ufoProductPoolDetail) {
... ... @@ -28,7 +28,7 @@ public class UfoProductPoolDetailService {
public int saveOrUpdate(UfoProductPoolDetail ufoProductPoolDetail) {
if (ufoProductPoolDetail.getId() == null || ufoProductPoolDetailMapper.selectByPrimaryKey(ufoProductPoolDetail.getId()) == null) {
return ufoProductPoolDetailMapper.insert(ufoProductPoolDetail);
return ufoProductPoolDetailMapper.insertSelective(ufoProductPoolDetail);
} else {
return ufoProductPoolDetailMapper.updateByPrimaryKeySelective(ufoProductPoolDetail);
}
... ...
... ... @@ -19,7 +19,7 @@ public class UfoProductPoolService {
}
public int insert(UfoProductPool ufoProductPool) {
return ufoProductPoolMapper.insert(ufoProductPool);
return ufoProductPoolMapper.insertSelective(ufoProductPool);
}
public int update(UfoProductPool ufoProductPool) {
... ... @@ -28,7 +28,7 @@ public class UfoProductPoolService {
public int saveOrUpdate(UfoProductPool ufoProductPool) {
if (ufoProductPool.getId() == null || ufoProductPoolMapper.selectByPrimaryKey(ufoProductPool.getId()) == null) {
return ufoProductPoolMapper.insert(ufoProductPool);
return ufoProductPoolMapper.insertSelective(ufoProductPool);
} else {
return ufoProductPoolMapper.updateByPrimaryKeySelective(ufoProductPool);
}
... ...
... ... @@ -19,7 +19,7 @@ public class UfoProductService {
}
public int insert(UfoProduct size) {
return sizeMapper.insert(size);
return sizeMapper.insertSelective(size);
}
public int update(UfoProduct size) {
... ... @@ -28,7 +28,7 @@ public class UfoProductService {
public int saveOrUpdate(UfoProduct size) {
if (size.getId() == null || sizeMapper.selectByPrimaryKey(size.getId()) == null) {
return sizeMapper.insert(size);
return sizeMapper.insertSelective(size);
} else {
return sizeMapper.updateByPrimaryKeySelective(size);
}
... ...
... ... @@ -19,7 +19,7 @@ public class UfoProductSortService {
}
public int insert(UfoProductSort ufoProductSort) {
return ufoProductSortMapper.insert(ufoProductSort);
return ufoProductSortMapper.insertSelective(ufoProductSort);
}
public int update(UfoProductSort ufoProductSort) {
... ... @@ -28,7 +28,7 @@ public class UfoProductSortService {
public int saveOrUpdate(UfoProductSort ufoProductSort) {
if (ufoProductSort.getId() == null || ufoProductSortMapper.selectByPrimaryKey(ufoProductSort.getId()) == null) {
return ufoProductSortMapper.insert(ufoProductSort);
return ufoProductSortMapper.insertSelective(ufoProductSort);
} else {
return ufoProductSortMapper.updateByPrimaryKeySelective(ufoProductSort);
}
... ...
... ... @@ -19,7 +19,7 @@ public class UfoSizeService {
}
public int insert(UfoSize ufoSize) {
return ufoSizeMapper.insert(ufoSize);
return ufoSizeMapper.insertSelective(ufoSize);
}
public int update(UfoSize ufoSize) {
... ... @@ -28,7 +28,7 @@ public class UfoSizeService {
public int saveOrUpdate(UfoSize ufoSize) {
if (ufoSize.getId() == null || ufoSizeMapper.selectByPrimaryKey(ufoSize.getId()) == null) {
return ufoSizeMapper.insert(ufoSize);
return ufoSizeMapper.insertSelective(ufoSize);
} else {
return ufoSizeMapper.updateByPrimaryKeySelective(ufoSize);
}
... ...
... ... @@ -19,7 +19,7 @@ public class UfoStoragePriceService {
}
public int insert(UfoStoragePrice ufoStoragePrice) {
return ufoStoragePriceMapper.insert(ufoStoragePrice);
return ufoStoragePriceMapper.insertSelective(ufoStoragePrice);
}
public int update(UfoStoragePrice ufoStoragePrice) {
... ... @@ -28,7 +28,7 @@ public class UfoStoragePriceService {
public int saveOrUpdate(UfoStoragePrice ufoStoragePrice) {
if (ufoStoragePrice.getId() == null || ufoStoragePriceMapper.selectByPrimaryKey(ufoStoragePrice.getId()) == null) {
return ufoStoragePriceMapper.insert(ufoStoragePrice);
return ufoStoragePriceMapper.insertSelective(ufoStoragePrice);
} else {
return ufoStoragePriceMapper.updateByPrimaryKeySelective(ufoStoragePrice);
}
... ...
... ... @@ -19,7 +19,7 @@ public class UfoStorageService {
}
public int insert(UfoStorage ufoStorage) {
return ufoStorageMapper.insert(ufoStorage);
return ufoStorageMapper.insertSelective(ufoStorage);
}
public int update(UfoStorage ufoStorage) {
... ... @@ -28,7 +28,7 @@ public class UfoStorageService {
public int saveOrUpdate(UfoStorage ufoStorage) {
if (ufoStorage.getId() == null || ufoStorageMapper.selectByPrimaryKey(ufoStorage.getId()) == null) {
return ufoStorageMapper.insert(ufoStorage);
return ufoStorageMapper.insertSelective(ufoStorage);
} else {
return ufoStorageMapper.updateByPrimaryKeySelective(ufoStorage);
}
... ...