Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
dc-java
Commits
8dea74fc
Commit
8dea74fc
authored
Mar 06, 2020
by
yinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据中心--skums资料库新增sku产品类型
parent
8034a2b9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
222 additions
and
9 deletions
+222
-9
SkuInfo.java
...-sku/src/main/java/com/bailuntec/domain/pojo/SkuInfo.java
+4
-0
DcBaseSku.java
.../src/main/java/com/bailuntec/domain/entity/DcBaseSku.java
+26
-1
DcBaseSkuExample.java
...n/java/com/bailuntec/domain/example/DcBaseSkuExample.java
+130
-0
DcBaseSkuMapper.xml
...on/src/main/java/com/bailuntec/mapper/DcBaseSkuMapper.xml
+62
-8
No files found.
data-base/base-sync-sku/src/main/java/com/bailuntec/domain/pojo/SkuInfo.java
View file @
8dea74fc
...
...
@@ -436,4 +436,8 @@ public class SkuInfo {
public
String
categorySimpleName
;
public
String
brand
;
private
Integer
productType
;
private
String
productTypeDesc
;
}
data-common/src/main/java/com/bailuntec/domain/entity/DcBaseSku.java
View file @
8dea74fc
...
...
@@ -638,6 +638,24 @@ public class DcBaseSku {
private
String
brand
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_sku.product_type
*
* @mbg.generated
*/
private
Integer
productType
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_sku.product_type_desc
*
* @mbg.generated
*/
private
String
productTypeDesc
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_sku
*
...
...
@@ -719,6 +737,8 @@ public class DcBaseSku {
sb
.
append
(
", categorySimpleId="
).
append
(
categorySimpleId
);
sb
.
append
(
", categorySimpleName="
).
append
(
categorySimpleName
);
sb
.
append
(
", brand="
).
append
(
brand
);
sb
.
append
(
", productType="
).
append
(
productType
);
sb
.
append
(
", productTypeDesc="
).
append
(
productTypeDesc
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
...
...
@@ -810,7 +830,9 @@ public class DcBaseSku {
&&
(
this
.
getCompanyId
()
==
null
?
other
.
getCompanyId
()
==
null
:
this
.
getCompanyId
().
equals
(
other
.
getCompanyId
()))
&&
(
this
.
getCategorySimpleId
()
==
null
?
other
.
getCategorySimpleId
()
==
null
:
this
.
getCategorySimpleId
().
equals
(
other
.
getCategorySimpleId
()))
&&
(
this
.
getCategorySimpleName
()
==
null
?
other
.
getCategorySimpleName
()
==
null
:
this
.
getCategorySimpleName
().
equals
(
other
.
getCategorySimpleName
()))
&&
(
this
.
getBrand
()
==
null
?
other
.
getBrand
()
==
null
:
this
.
getBrand
().
equals
(
other
.
getBrand
()));
&&
(
this
.
getBrand
()
==
null
?
other
.
getBrand
()
==
null
:
this
.
getBrand
().
equals
(
other
.
getBrand
()))
&&
(
this
.
getProductType
()
==
null
?
other
.
getProductType
()
==
null
:
this
.
getProductType
().
equals
(
other
.
getProductType
()))
&&
(
this
.
getProductTypeDesc
()
==
null
?
other
.
getProductTypeDesc
()
==
null
:
this
.
getProductTypeDesc
().
equals
(
other
.
getProductTypeDesc
()));
}
/**
...
...
@@ -893,6 +915,8 @@ public class DcBaseSku {
result
=
prime
*
result
+
((
getCategorySimpleId
()
==
null
)
?
0
:
getCategorySimpleId
().
hashCode
());
result
=
prime
*
result
+
((
getCategorySimpleName
()
==
null
)
?
0
:
getCategorySimpleName
().
hashCode
());
result
=
prime
*
result
+
((
getBrand
()
==
null
)
?
0
:
getBrand
().
hashCode
());
result
=
prime
*
result
+
((
getProductType
()
==
null
)
?
0
:
getProductType
().
hashCode
());
result
=
prime
*
result
+
((
getProductTypeDesc
()
==
null
)
?
0
:
getProductTypeDesc
().
hashCode
());
return
result
;
}
}
\ No newline at end of file
data-common/src/main/java/com/bailuntec/domain/example/DcBaseSkuExample.java
View file @
8dea74fc
...
...
@@ -4910,6 +4910,136 @@ public class DcBaseSkuExample {
addCriterion
(
"brand not between"
,
value1
,
value2
,
"brand"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeIsNull
()
{
addCriterion
(
"product_type is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeIsNotNull
()
{
addCriterion
(
"product_type is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeEqualTo
(
Integer
value
)
{
addCriterion
(
"product_type ="
,
value
,
"productType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeNotEqualTo
(
Integer
value
)
{
addCriterion
(
"product_type <>"
,
value
,
"productType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeGreaterThan
(
Integer
value
)
{
addCriterion
(
"product_type >"
,
value
,
"productType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"product_type >="
,
value
,
"productType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeLessThan
(
Integer
value
)
{
addCriterion
(
"product_type <"
,
value
,
"productType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"product_type <="
,
value
,
"productType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"product_type in"
,
values
,
"productType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"product_type not in"
,
values
,
"productType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"product_type between"
,
value1
,
value2
,
"productType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"product_type not between"
,
value1
,
value2
,
"productType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeDescIsNull
()
{
addCriterion
(
"product_type_desc is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeDescIsNotNull
()
{
addCriterion
(
"product_type_desc is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeDescEqualTo
(
String
value
)
{
addCriterion
(
"product_type_desc ="
,
value
,
"productTypeDesc"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeDescNotEqualTo
(
String
value
)
{
addCriterion
(
"product_type_desc <>"
,
value
,
"productTypeDesc"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeDescGreaterThan
(
String
value
)
{
addCriterion
(
"product_type_desc >"
,
value
,
"productTypeDesc"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeDescGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"product_type_desc >="
,
value
,
"productTypeDesc"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeDescLessThan
(
String
value
)
{
addCriterion
(
"product_type_desc <"
,
value
,
"productTypeDesc"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeDescLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"product_type_desc <="
,
value
,
"productTypeDesc"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeDescLike
(
String
value
)
{
addCriterion
(
"product_type_desc like"
,
value
,
"productTypeDesc"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeDescNotLike
(
String
value
)
{
addCriterion
(
"product_type_desc not like"
,
value
,
"productTypeDesc"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeDescIn
(
List
<
String
>
values
)
{
addCriterion
(
"product_type_desc in"
,
values
,
"productTypeDesc"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeDescNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"product_type_desc not in"
,
values
,
"productTypeDesc"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeDescBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"product_type_desc between"
,
value1
,
value2
,
"productTypeDesc"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductTypeDescNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"product_type_desc not between"
,
value1
,
value2
,
"productTypeDesc"
);
return
(
Criteria
)
this
;
}
}
/**
...
...
data-common/src/main/java/com/bailuntec/mapper/DcBaseSkuMapper.xml
View file @
8dea74fc
...
...
@@ -76,6 +76,8 @@
<result
column=
"category_simple_id"
jdbcType=
"INTEGER"
property=
"categorySimpleId"
/>
<result
column=
"category_simple_name"
jdbcType=
"VARCHAR"
property=
"categorySimpleName"
/>
<result
column=
"brand"
jdbcType=
"VARCHAR"
property=
"brand"
/>
<result
column=
"product_type"
jdbcType=
"INTEGER"
property=
"productType"
/>
<result
column=
"product_type_desc"
jdbcType=
"VARCHAR"
property=
"productTypeDesc"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
...
...
@@ -158,7 +160,7 @@
declare_title_cn, pick_title_cn, pick_title_en, product_nature, charger_specifications,
packing_price, packing_name, packing_size, product_size, packing_weight, unit, push_status,
transfer_delivery, source, push_time, has_delete, develop_time, company_id, category_simple_id,
category_simple_name, brand
category_simple_name, brand
, product_type, product_type_desc
</sql>
<select
id=
"selectByExample"
parameterType=
"com.bailuntec.domain.example.DcBaseSkuExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
@@ -242,7 +244,8 @@
push_status, transfer_delivery, source,
push_time, has_delete, develop_time,
company_id, category_simple_id, category_simple_name,
brand)
brand, product_type, product_type_desc
)
values (#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{skuImage,jdbcType=VARCHAR},
#{categoryId,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL},
#{sellerId,jdbcType=INTEGER}, #{sellerName,jdbcType=VARCHAR}, #{length,jdbcType=DECIMAL},
...
...
@@ -266,7 +269,8 @@
#{pushStatus,jdbcType=TINYINT}, #{transferDelivery,jdbcType=INTEGER}, #{source,jdbcType=TINYINT},
#{pushTime,jdbcType=TIMESTAMP}, #{hasDelete,jdbcType=BIT}, #{developTime,jdbcType=TIMESTAMP},
#{companyId,jdbcType=INTEGER}, #{categorySimpleId,jdbcType=INTEGER}, #{categorySimpleName,jdbcType=VARCHAR},
#{brand,jdbcType=VARCHAR})
#{brand,jdbcType=VARCHAR}, #{productType,jdbcType=INTEGER}, #{productTypeDesc,jdbcType=VARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.bailuntec.domain.entity.DcBaseSku"
>
<!--
...
...
@@ -485,6 +489,12 @@
<if
test=
"brand != null"
>
brand,
</if>
<if
test=
"productType != null"
>
product_type,
</if>
<if
test=
"productTypeDesc != null"
>
product_type_desc,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
...
...
@@ -697,6 +707,12 @@
<if
test=
"brand != null"
>
#{brand,jdbcType=VARCHAR},
</if>
<if
test=
"productType != null"
>
#{productType,jdbcType=INTEGER},
</if>
<if
test=
"productTypeDesc != null"
>
#{productTypeDesc,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.bailuntec.domain.example.DcBaseSkuExample"
resultType=
"java.lang.Long"
>
...
...
@@ -926,6 +942,12 @@
<if
test=
"record.brand != null"
>
brand = #{record.brand,jdbcType=VARCHAR},
</if>
<if
test=
"record.productType != null"
>
product_type = #{record.productType,jdbcType=INTEGER},
</if>
<if
test=
"record.productTypeDesc != null"
>
product_type_desc = #{record.productTypeDesc,jdbcType=VARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
...
@@ -1006,7 +1028,9 @@
company_id = #{record.companyId,jdbcType=INTEGER},
category_simple_id = #{record.categorySimpleId,jdbcType=INTEGER},
category_simple_name = #{record.categorySimpleName,jdbcType=VARCHAR},
brand = #{record.brand,jdbcType=VARCHAR}
brand = #{record.brand,jdbcType=VARCHAR},
product_type = #{record.productType,jdbcType=INTEGER},
product_type_desc = #{record.productTypeDesc,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -1225,6 +1249,12 @@
<if
test=
"brand != null"
>
brand = #{brand,jdbcType=VARCHAR},
</if>
<if
test=
"productType != null"
>
product_type = #{productType,jdbcType=INTEGER},
</if>
<if
test=
"productTypeDesc != null"
>
product_type_desc = #{productTypeDesc,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
...
...
@@ -1302,7 +1332,9 @@
company_id = #{companyId,jdbcType=INTEGER},
category_simple_id = #{categorySimpleId,jdbcType=INTEGER},
category_simple_name = #{categorySimpleName,jdbcType=VARCHAR},
brand = #{brand,jdbcType=VARCHAR}
brand = #{brand,jdbcType=VARCHAR},
product_type = #{productType,jdbcType=INTEGER},
product_type_desc = #{productTypeDesc,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<insert
id=
"upsertSelective"
parameterType=
"com.bailuntec.domain.entity.DcBaseSku"
>
...
...
@@ -1523,6 +1555,12 @@
<if
test=
"brand != null"
>
brand,
</if>
<if
test=
"productType != null"
>
product_type,
</if>
<if
test=
"productTypeDesc != null"
>
product_type_desc,
</if>
</trim>
values
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -1736,6 +1774,12 @@
<if
test=
"brand != null"
>
#{brand,jdbcType=VARCHAR},
</if>
<if
test=
"productType != null"
>
#{productType,jdbcType=INTEGER},
</if>
<if
test=
"productTypeDesc != null"
>
#{productTypeDesc,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim
suffixOverrides=
","
>
...
...
@@ -1949,6 +1993,12 @@
<if
test=
"brand != null"
>
brand = #{brand,jdbcType=VARCHAR},
</if>
<if
test=
"productType != null"
>
product_type = #{productType,jdbcType=INTEGER},
</if>
<if
test=
"productTypeDesc != null"
>
product_type_desc = #{productTypeDesc,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<insert
id=
"upsert"
parameterType=
"com.bailuntec.domain.entity.DcBaseSku"
>
...
...
@@ -1968,7 +2018,8 @@
declare_title_cn, pick_title_cn, pick_title_en, product_nature, charger_specifications,
packing_price, packing_name, packing_size, product_size, packing_weight, unit,
push_status, transfer_delivery, source, push_time, has_delete, develop_time, company_id,
category_simple_id, category_simple_name, brand)
category_simple_id, category_simple_name, brand, product_type, product_type_desc
)
values
(#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{skuImage,jdbcType=VARCHAR},
#{categoryId,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL},
...
...
@@ -1993,7 +2044,8 @@
#{pushStatus,jdbcType=TINYINT}, #{transferDelivery,jdbcType=INTEGER}, #{source,jdbcType=TINYINT},
#{pushTime,jdbcType=TIMESTAMP}, #{hasDelete,jdbcType=BIT}, #{developTime,jdbcType=TIMESTAMP},
#{companyId,jdbcType=INTEGER}, #{categorySimpleId,jdbcType=INTEGER}, #{categorySimpleName,jdbcType=VARCHAR},
#{brand,jdbcType=VARCHAR})
#{brand,jdbcType=VARCHAR}, #{productType,jdbcType=INTEGER}, #{productTypeDesc,jdbcType=VARCHAR}
)
on duplicate key update
id = #{id,jdbcType=INTEGER},
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
...
...
@@ -2064,7 +2116,9 @@
company_id = #{companyId,jdbcType=INTEGER},
category_simple_id = #{categorySimpleId,jdbcType=INTEGER},
category_simple_name = #{categorySimpleName,jdbcType=VARCHAR},
brand = #{brand,jdbcType=VARCHAR}
brand = #{brand,jdbcType=VARCHAR},
product_type = #{productType,jdbcType=INTEGER},
product_type_desc = #{productTypeDesc,jdbcType=VARCHAR}
</insert>
<select
id=
"selectOneByExample"
parameterType=
"com.bailuntec.domain.example.DcBaseSkuExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment