Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
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
鲁鑫
topsun-bpm
Commits
cc10a62a
Commit
cc10a62a
authored
Dec 20, 2023
by
覃振观
👶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Entity 遗漏
parent
c886d5a7
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
206 additions
and
69 deletions
+206
-69
NumberToStringSerializer.java
...va/com/huigou/topsun/common/NumberToStringSerializer.java
+20
-0
ProductApplicationImpl.java
...psun/product/application/impl/ProductApplicationImpl.java
+4
-4
Brand.java
...src/main/java/com/huigou/topsun/product/domain/Brand.java
+9
-2
Color.java
...src/main/java/com/huigou/topsun/product/domain/Color.java
+9
-2
Factory.java
...c/main/java/com/huigou/topsun/product/domain/Factory.java
+9
-2
Product.java
...c/main/java/com/huigou/topsun/product/domain/Product.java
+10
-4
ProductCategory.java
...ava/com/huigou/topsun/product/domain/ProductCategory.java
+9
-2
ProductDetail.java
.../java/com/huigou/topsun/product/domain/ProductDetail.java
+8
-4
ProductFace.java
...in/java/com/huigou/topsun/product/domain/ProductFace.java
+9
-2
ProductFaceColor.java
...va/com/huigou/topsun/product/domain/ProductFaceColor.java
+13
-4
ProductLooked.java
.../java/com/huigou/topsun/product/domain/ProductLooked.java
+8
-4
ProductLoss.java
...in/java/com/huigou/topsun/product/domain/ProductLoss.java
+11
-3
ProductMaterial.java
...ava/com/huigou/topsun/product/domain/ProductMaterial.java
+13
-4
ProductProcess.java
...java/com/huigou/topsun/product/domain/ProductProcess.java
+12
-5
ProductPublishedConf.java
...om/huigou/topsun/product/domain/ProductPublishedConf.java
+9
-5
ProductRiskDescription.java
.../huigou/topsun/product/domain/ProductRiskDescription.java
+12
-5
ProductTechnology.java
...a/com/huigou/topsun/product/domain/ProductTechnology.java
+9
-5
ProductTypesetConf.java
.../com/huigou/topsun/product/domain/ProductTypesetConf.java
+12
-4
ProductDetailRepository.java
...ou/topsun/product/repository/ProductDetailRepository.java
+3
-1
ProductLookedRepository.java
...ou/topsun/product/repository/ProductLookedRepository.java
+3
-1
ProductLossRepository.java
...igou/topsun/product/repository/ProductLossRepository.java
+2
-1
ProductMaterialRepository.java
.../topsun/product/repository/ProductMaterialRepository.java
+2
-1
ProductProcessRepository.java
...u/topsun/product/repository/ProductProcessRepository.java
+1
-1
ProductPublishedConfRepository.java
...un/product/repository/ProductPublishedConfRepository.java
+3
-1
ProductTechnologyRepository.java
...opsun/product/repository/ProductTechnologyRepository.java
+3
-1
ProductTypesetConfRepository.java
...psun/product/repository/ProductTypesetConfRepository.java
+3
-1
No files found.
topsun/src/main/java/com/huigou/topsun/common/NumberToStringSerializer.java
0 → 100644
View file @
cc10a62a
package
com
.
huigou
.
topsun
.
common
;
import
com.fasterxml.jackson.core.JsonGenerator
;
import
com.fasterxml.jackson.databind.JsonSerializer
;
import
com.fasterxml.jackson.databind.SerializerProvider
;
import
java.io.IOException
;
/**
* NumberToStringSerializer Jackson 数据类型转换
*
* @author qinzhenguan
* @createDate 2023/12/20 10:12
**/
public
class
NumberToStringSerializer
extends
JsonSerializer
<
Number
>
{
@Override
public
void
serialize
(
Number
number
,
JsonGenerator
jsonGenerator
,
SerializerProvider
serializerProvider
)
throws
IOException
{
jsonGenerator
.
writeString
(
number
.
toString
());
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/product/application/impl/ProductApplicationImpl.java
View file @
cc10a62a
...
@@ -80,7 +80,7 @@ public class ProductApplicationImpl implements ProductApplication {
...
@@ -80,7 +80,7 @@ public class ProductApplicationImpl implements ProductApplication {
@Override
@Override
public
Map
<
String
,
Object
>
queryDetailAll
(
Product
product
)
{
public
Map
<
String
,
Object
>
queryDetailAll
(
Product
product
)
{
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>(
200
);
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>(
200
);
String
productId
=
product
.
getProductId
();
BigDecimal
productId
=
product
.
getProductId
();
ProductDetail
productDetail
=
detailRepository
.
findByProductId
(
productId
);
ProductDetail
productDetail
=
detailRepository
.
findByProductId
(
productId
);
ProductTechnology
productTechnology
=
technologyRepository
.
findByProductId
(
productId
);
ProductTechnology
productTechnology
=
technologyRepository
.
findByProductId
(
productId
);
...
@@ -181,7 +181,7 @@ public class ProductApplicationImpl implements ProductApplication {
...
@@ -181,7 +181,7 @@ public class ProductApplicationImpl implements ProductApplication {
List
<
Product
>
products
=
query
.
getResultList
();
List
<
Product
>
products
=
query
.
getResultList
();
if
(
product
!=
null
)
{
if
(
product
!=
null
)
{
String
id
=
product
.
getProductId
();
BigDecimal
id
=
product
.
getProductId
();
if
(
id
==
null
)
{
if
(
id
==
null
)
{
product
.
setProductId
(
String
.
valueOf
(
Snowflake
.
nextId
()));
product
.
setProductId
(
String
.
valueOf
(
Snowflake
.
nextId
()));
entityManager
.
persist
(
product
);
entityManager
.
persist
(
product
);
...
@@ -189,7 +189,7 @@ public class ProductApplicationImpl implements ProductApplication {
...
@@ -189,7 +189,7 @@ public class ProductApplicationImpl implements ProductApplication {
entityManager
.
merge
(
product
);
entityManager
.
merge
(
product
);
}
}
if
(
productDetail
!=
null
)
{
if
(
productDetail
!=
null
)
{
String
id
=
productDetail
.
getProductDetailId
();
BigDecimal
id
=
productDetail
.
getProductDetailId
();
if
(
id
==
null
)
{
if
(
id
==
null
)
{
productDetail
.
setProductDetailId
(
String
.
valueOf
(
Snowflake
.
nextId
()));
productDetail
.
setProductDetailId
(
String
.
valueOf
(
Snowflake
.
nextId
()));
entityManager
.
persist
(
productDetail
);
entityManager
.
persist
(
productDetail
);
...
@@ -197,7 +197,7 @@ public class ProductApplicationImpl implements ProductApplication {
...
@@ -197,7 +197,7 @@ public class ProductApplicationImpl implements ProductApplication {
entityManager
.
merge
(
productDetail
);
entityManager
.
merge
(
productDetail
);
}
}
if
(
productLooked
!=
null
)
{
if
(
productLooked
!=
null
)
{
String
id
=
productLooked
.
getProductLookedId
();
BigDecimal
id
=
productLooked
.
getProductLookedId
();
if
(
id
==
null
)
{
if
(
id
==
null
)
{
productLooked
.
setProductLookedId
(
String
.
valueOf
(
Snowflake
.
nextId
()));
productLooked
.
setProductLookedId
(
String
.
valueOf
(
Snowflake
.
nextId
()));
entityManager
.
persist
(
productLooked
);
entityManager
.
persist
(
productLooked
);
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/Brand.java
View file @
cc10a62a
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -12,12 +16,15 @@ import lombok.Data;
...
@@ -12,12 +16,15 @@ import lombok.Data;
*/
*/
@Table
(
name
=
"brand"
)
@Table
(
name
=
"brand"
)
@Entity
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
Brand
implements
Serializable
{
public
class
Brand
implements
Serializable
{
/**
/**
* 品牌ID
* 品牌ID
*/
*/
@Id
@Id
@Column
(
name
=
"brand_id"
)
@Column
(
name
=
"brand_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
brandId
;
private
BigDecimal
brandId
;
/**
/**
...
@@ -38,8 +45,8 @@ public class Brand implements Serializable {
...
@@ -38,8 +45,8 @@ public class Brand implements Serializable {
@Column
(
name
=
"brand_remark"
)
@Column
(
name
=
"brand_remark"
)
private
String
brandRemark
;
private
String
brandRemark
;
public
String
getBrandId
()
{
public
BigDecimal
getBrandId
()
{
return
brandId
.
toString
()
;
return
brandId
;
}
}
public
void
setBrandId
(
String
brandId
)
{
public
void
setBrandId
(
String
brandId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/Color.java
View file @
cc10a62a
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -12,12 +16,15 @@ import lombok.Data;
...
@@ -12,12 +16,15 @@ import lombok.Data;
*/
*/
@Table
(
name
=
"color"
)
@Table
(
name
=
"color"
)
@Entity
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
Color
implements
Serializable
{
public
class
Color
implements
Serializable
{
/**
/**
* 颜色ID
* 颜色ID
*/
*/
@Id
@Id
@Column
(
name
=
"color_id"
)
@Column
(
name
=
"color_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
colorId
;
private
BigDecimal
colorId
;
/**
/**
...
@@ -38,8 +45,8 @@ public class Color implements Serializable {
...
@@ -38,8 +45,8 @@ public class Color implements Serializable {
@Column
(
name
=
"color_remark"
)
@Column
(
name
=
"color_remark"
)
private
String
colorRemark
;
private
String
colorRemark
;
public
String
getColorId
()
{
public
BigDecimal
getColorId
()
{
return
colorId
.
toString
()
;
return
colorId
;
}
}
public
void
setColorId
(
String
colorId
)
{
public
void
setColorId
(
String
colorId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/Factory.java
View file @
cc10a62a
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -12,12 +16,15 @@ import lombok.Data;
...
@@ -12,12 +16,15 @@ import lombok.Data;
*/
*/
@Table
(
name
=
"factory"
)
@Table
(
name
=
"factory"
)
@Entity
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
Factory
implements
Serializable
{
public
class
Factory
implements
Serializable
{
/**
/**
* 工厂ID
* 工厂ID
*/
*/
@Id
@Id
@Column
(
name
=
"factory_id"
)
@Column
(
name
=
"factory_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
factoryId
;
private
BigDecimal
factoryId
;
/**
/**
...
@@ -32,8 +39,8 @@ public class Factory implements Serializable {
...
@@ -32,8 +39,8 @@ public class Factory implements Serializable {
@Column
(
name
=
"factory_code"
)
@Column
(
name
=
"factory_code"
)
private
String
factoryCode
;
private
String
factoryCode
;
public
String
getFactoryId
()
{
public
BigDecimal
getFactoryId
()
{
return
factoryId
.
toString
()
;
return
factoryId
;
}
}
public
void
setFactoryId
(
String
factoryId
)
{
public
void
setFactoryId
(
String
factoryId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/Product.java
View file @
cc10a62a
...
@@ -5,17 +5,22 @@ import java.math.BigDecimal;
...
@@ -5,17 +5,22 @@ import java.math.BigDecimal;
import
java.util.Objects
;
import
java.util.Objects
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
/**
/**
* @author Tison
* @author Tison
* 产品
* 产品
*/
*/
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
@Entity
@Entity
@Table
(
name
=
"product"
)
@Table
(
name
=
"product"
)
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
Product
implements
Serializable
{
public
class
Product
implements
Serializable
{
/**
/**
...
@@ -23,6 +28,7 @@ public class Product implements Serializable {
...
@@ -23,6 +28,7 @@ public class Product implements Serializable {
*/
*/
@Id
@Id
@Column
(
name
=
"product_id"
,
nullable
=
false
)
@Column
(
name
=
"product_id"
,
nullable
=
false
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productId
;
private
BigDecimal
productId
;
/**
/**
...
@@ -171,14 +177,14 @@ public class Product implements Serializable {
...
@@ -171,14 +177,14 @@ public class Product implements Serializable {
.
toString
();
.
toString
();
}
}
public
String
getProductId
()
{
return
productId
.
toString
()
;
}
public
BigDecimal
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
}
}
public
String
getProductCategoryId
()
{
public
BigDecimal
getProductCategoryId
()
{
return
productCategoryId
.
toString
()
;
return
productCategoryId
;
}
}
public
void
setProductCategoryId
(
String
productCategoryId
)
{
public
void
setProductCategoryId
(
String
productCategoryId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductCategory.java
View file @
cc10a62a
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -12,12 +16,15 @@ import lombok.Data;
...
@@ -12,12 +16,15 @@ import lombok.Data;
*/
*/
@Table
(
name
=
"product_category"
)
@Table
(
name
=
"product_category"
)
@Entity
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
ProductCategory
implements
Serializable
{
public
class
ProductCategory
implements
Serializable
{
/**
/**
* 产品类别ID
* 产品类别ID
*/
*/
@Id
@Id
@Column
(
name
=
"product_category_id"
)
@Column
(
name
=
"product_category_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productCategoryId
;
private
BigDecimal
productCategoryId
;
/**
/**
...
@@ -38,8 +45,8 @@ public class ProductCategory implements Serializable {
...
@@ -38,8 +45,8 @@ public class ProductCategory implements Serializable {
@Column
(
name
=
"product_category_code"
)
@Column
(
name
=
"product_category_code"
)
private
String
productCategoryCode
;
private
String
productCategoryCode
;
public
String
getProductCategoryId
()
{
public
BigDecimal
getProductCategoryId
()
{
return
productCategoryId
.
toString
()
;
return
productCategoryId
;
}
}
public
void
setProductCategoryId
(
String
productCategoryId
)
{
public
void
setProductCategoryId
(
String
productCategoryId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductDetail.java
View file @
cc10a62a
...
@@ -9,16 +9,18 @@ import javax.persistence.*;
...
@@ -9,16 +9,18 @@ import javax.persistence.*;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
/**
/**
* @author Tison
* @author Tison
* 产品详细信息
* 产品详细信息
*/
*/
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Entity
@Table
(
name
=
"product_detail"
)
@Table
(
name
=
"product_detail"
)
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
ProductDetail
implements
Serializable
{
public
class
ProductDetail
implements
Serializable
{
/**
/**
...
@@ -26,12 +28,14 @@ public class ProductDetail implements Serializable {
...
@@ -26,12 +28,14 @@ public class ProductDetail implements Serializable {
*/
*/
@Id
@Id
@Column
(
name
=
"product_detail_id"
,
nullable
=
false
,
length
=
32
)
@Column
(
name
=
"product_detail_id"
,
nullable
=
false
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productDetailId
;
private
BigDecimal
productDetailId
;
/**
/**
* 产品ID
* 产品ID
*/
*/
@Column
(
name
=
"product_id"
,
nullable
=
true
,
length
=
32
)
@Column
(
name
=
"product_id"
,
nullable
=
true
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productId
;
private
BigDecimal
productId
;
/**
/**
...
@@ -143,13 +147,13 @@ public class ProductDetail implements Serializable {
...
@@ -143,13 +147,13 @@ public class ProductDetail implements Serializable {
.
toString
();
.
toString
();
}
}
public
String
getProductDetailId
()
{
return
productDetailId
.
toString
()
;
}
public
BigDecimal
getProductDetailId
()
{
return
productDetailId
;
}
public
void
setProductDetailId
(
String
productDetailId
)
{
public
void
setProductDetailId
(
String
productDetailId
)
{
this
.
productDetailId
=
(
productDetailId
!=
null
)
?
new
BigDecimal
(
productDetailId
)
:
null
;
this
.
productDetailId
=
(
productDetailId
!=
null
)
?
new
BigDecimal
(
productDetailId
)
:
null
;
}
}
public
String
getProductId
()
{
return
productId
.
toString
()
;
}
public
BigDecimal
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductFace.java
View file @
cc10a62a
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -12,12 +16,15 @@ import lombok.Data;
...
@@ -12,12 +16,15 @@ import lombok.Data;
*/
*/
@Table
(
name
=
"product_face"
)
@Table
(
name
=
"product_face"
)
@Entity
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
ProductFace
implements
Serializable
{
public
class
ProductFace
implements
Serializable
{
/**
/**
* 产品版面ID
* 产品版面ID
*/
*/
@Id
@Id
@Column
(
name
=
"product_face_id"
)
@Column
(
name
=
"product_face_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productFaceId
;
private
BigDecimal
productFaceId
;
/**
/**
...
@@ -26,8 +33,8 @@ public class ProductFace implements Serializable {
...
@@ -26,8 +33,8 @@ public class ProductFace implements Serializable {
@Column
(
name
=
"product_image"
)
@Column
(
name
=
"product_image"
)
private
String
productImage
;
private
String
productImage
;
public
String
getProductFaceId
()
{
public
BigDecimal
getProductFaceId
()
{
return
productFaceId
.
toString
()
;
return
productFaceId
;
}
}
public
void
setProductFaceId
(
String
productFaceId
)
{
public
void
setProductFaceId
(
String
productFaceId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductFaceColor.java
View file @
cc10a62a
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -12,24 +16,29 @@ import lombok.Data;
...
@@ -12,24 +16,29 @@ import lombok.Data;
*/
*/
@Table
(
name
=
"product_face_color"
)
@Table
(
name
=
"product_face_color"
)
@Entity
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
ProductFaceColor
implements
Serializable
{
public
class
ProductFaceColor
implements
Serializable
{
/**
/**
* 产品颜色ID
* 产品颜色ID
*/
*/
@Id
@Id
@Column
(
name
=
"product_face_color_id"
)
@Column
(
name
=
"product_face_color_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productFaceColorId
;
private
BigDecimal
productFaceColorId
;
/**
/**
* 产品版面ID
* 产品版面ID
*/
*/
@Column
(
name
=
"product_face_id"
)
@Column
(
name
=
"product_face_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productFaceId
;
private
BigDecimal
productFaceId
;
/**
/**
* 颜色ID
* 颜色ID
*/
*/
@Column
(
name
=
"color_id"
)
@Column
(
name
=
"color_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
colorId
;
private
BigDecimal
colorId
;
/**
/**
...
@@ -44,16 +53,16 @@ public class ProductFaceColor implements Serializable {
...
@@ -44,16 +53,16 @@ public class ProductFaceColor implements Serializable {
@Column
(
name
=
"sort_order"
)
@Column
(
name
=
"sort_order"
)
private
Integer
sortOrder
;
private
Integer
sortOrder
;
public
String
getProductFaceColorId
()
{
public
BigDecimal
getProductFaceColorId
()
{
return
productFaceColorId
.
toString
()
;
return
productFaceColorId
;
}
}
public
void
setProductFaceColorId
(
String
productFaceColorId
)
{
public
void
setProductFaceColorId
(
String
productFaceColorId
)
{
this
.
productFaceColorId
=
(
productFaceColorId
!=
null
)
?
new
BigDecimal
(
productFaceColorId
)
:
null
;
this
.
productFaceColorId
=
(
productFaceColorId
!=
null
)
?
new
BigDecimal
(
productFaceColorId
)
:
null
;
}
}
public
String
getProductFaceId
()
{
public
BigDecimal
getProductFaceId
()
{
return
productFaceId
.
toString
()
;
return
productFaceId
;
}
}
public
void
setProductFaceId
(
String
productFaceId
)
{
public
void
setProductFaceId
(
String
productFaceId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductLooked.java
View file @
cc10a62a
...
@@ -9,16 +9,18 @@ import javax.persistence.*;
...
@@ -9,16 +9,18 @@ import javax.persistence.*;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
/**
/**
* @author Tison
* @author Tison
* 产品外观
* 产品外观
*/
*/
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Entity
@Table
(
name
=
"product_looked"
)
@Table
(
name
=
"product_looked"
)
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
ProductLooked
implements
Serializable
{
public
class
ProductLooked
implements
Serializable
{
/**
/**
...
@@ -26,12 +28,14 @@ public class ProductLooked implements Serializable {
...
@@ -26,12 +28,14 @@ public class ProductLooked implements Serializable {
*/
*/
@Id
@Id
@Column
(
name
=
"product_looked_id"
,
nullable
=
false
,
length
=
32
)
@Column
(
name
=
"product_looked_id"
,
nullable
=
false
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productLookedId
;
private
BigDecimal
productLookedId
;
/**
/**
* 产品ID
* 产品ID
*/
*/
@Column
(
name
=
"product_id"
,
nullable
=
true
,
length
=
32
)
@Column
(
name
=
"product_id"
,
nullable
=
true
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productId
;
private
BigDecimal
productId
;
/**
/**
...
@@ -173,14 +177,14 @@ public class ProductLooked implements Serializable {
...
@@ -173,14 +177,14 @@ public class ProductLooked implements Serializable {
.
toString
();
.
toString
();
}
}
public
String
getProductLookedId
()
{
return
productLookedId
.
toString
()
;
}
public
BigDecimal
getProductLookedId
()
{
return
productLookedId
;
}
public
void
setProductLookedId
(
String
productLookedId
)
{
public
void
setProductLookedId
(
String
productLookedId
)
{
this
.
productLookedId
=
(
productLookedId
!=
null
)
?
new
BigDecimal
(
productLookedId
)
:
null
;
this
.
productLookedId
=
(
productLookedId
!=
null
)
?
new
BigDecimal
(
productLookedId
)
:
null
;
}
}
public
String
getProductId
()
{
return
productId
.
toString
()
;
}
public
BigDecimal
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductLoss.java
View file @
cc10a62a
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -12,18 +16,22 @@ import lombok.Data;
...
@@ -12,18 +16,22 @@ import lombok.Data;
*/
*/
@Table
(
name
=
"product_loss"
)
@Table
(
name
=
"product_loss"
)
@Entity
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
ProductLoss
implements
Serializable
{
public
class
ProductLoss
implements
Serializable
{
/**
/**
* 产品lossID
* 产品lossID
*/
*/
@Id
@Id
@Column
(
name
=
"product_loss_id"
)
@Column
(
name
=
"product_loss_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productLossId
;
private
BigDecimal
productLossId
;
/**
/**
* 产品ID
* 产品ID
*/
*/
@Column
(
name
=
"product_id"
)
@Column
(
name
=
"product_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productId
;
private
BigDecimal
productId
;
/**
/**
...
@@ -56,15 +64,15 @@ public class ProductLoss implements Serializable {
...
@@ -56,15 +64,15 @@ public class ProductLoss implements Serializable {
@Column
(
name
=
"customer_name"
)
@Column
(
name
=
"customer_name"
)
private
String
customerName
;
private
String
customerName
;
public
String
getProductLossId
()
{
public
BigDecimal
getProductLossId
()
{
return
productLossId
.
toString
()
;
return
productLossId
;
}
}
public
void
setProductLossId
(
String
productLossId
)
{
public
void
setProductLossId
(
String
productLossId
)
{
this
.
productLossId
=
(
productLossId
!=
null
)
?
new
BigDecimal
(
productLossId
)
:
null
;
this
.
productLossId
=
(
productLossId
!=
null
)
?
new
BigDecimal
(
productLossId
)
:
null
;
}
}
public
String
getProductId
()
{
return
productId
.
toString
()
;
}
public
BigDecimal
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductMaterial.java
View file @
cc10a62a
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -12,24 +16,29 @@ import lombok.Data;
...
@@ -12,24 +16,29 @@ import lombok.Data;
*/
*/
@Table
(
name
=
"product_material"
)
@Table
(
name
=
"product_material"
)
@Entity
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
ProductMaterial
implements
Serializable
{
public
class
ProductMaterial
implements
Serializable
{
/**
/**
* 产品物料组成ID
* 产品物料组成ID
*/
*/
@Id
@Id
@Column
(
name
=
"product_material_id"
)
@Column
(
name
=
"product_material_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productMaterialId
;
private
BigDecimal
productMaterialId
;
/**
/**
* 产品ID
* 产品ID
*/
*/
@Column
(
name
=
"product_id"
)
@Column
(
name
=
"product_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productId
;
private
BigDecimal
productId
;
/**
/**
* 物料ID
* 物料ID
*/
*/
@Column
(
name
=
"material_id"
)
@Column
(
name
=
"material_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
materialId
;
private
BigDecimal
materialId
;
/**
/**
...
@@ -50,16 +59,16 @@ public class ProductMaterial implements Serializable {
...
@@ -50,16 +59,16 @@ public class ProductMaterial implements Serializable {
@Column
(
name
=
"bom_type"
)
@Column
(
name
=
"bom_type"
)
private
String
bomType
;
private
String
bomType
;
public
String
getProductMaterialId
()
{
public
BigDecimal
getProductMaterialId
()
{
return
productMaterialId
.
toString
()
;
return
productMaterialId
;
}
}
public
void
setProductMaterialId
(
String
productMaterialId
)
{
public
void
setProductMaterialId
(
String
productMaterialId
)
{
this
.
productMaterialId
=
(
productMaterialId
!=
null
)
?
new
BigDecimal
(
productMaterialId
)
:
null
;
this
.
productMaterialId
=
(
productMaterialId
!=
null
)
?
new
BigDecimal
(
productMaterialId
)
:
null
;
}
}
public
String
getProductId
()
{
public
BigDecimal
getProductId
()
{
return
productId
.
toString
()
;
return
productId
;
}
}
public
void
setProductId
(
String
productId
)
{
public
void
setProductId
(
String
productId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductProcess.java
View file @
cc10a62a
...
@@ -5,17 +5,22 @@ import java.math.BigDecimal;
...
@@ -5,17 +5,22 @@ import java.math.BigDecimal;
import
java.util.Objects
;
import
java.util.Objects
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
/**
/**
* @author Tison
* @author Tison
* 产品工艺工序
* 产品工艺工序
*/
*/
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
@Entity
@Entity
@Table
(
name
=
"product_process"
)
@Table
(
name
=
"product_process"
)
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
ProductProcess
implements
Serializable
{
public
class
ProductProcess
implements
Serializable
{
/**
/**
...
@@ -23,12 +28,14 @@ public class ProductProcess implements Serializable {
...
@@ -23,12 +28,14 @@ public class ProductProcess implements Serializable {
*/
*/
@Id
@Id
@Column
(
name
=
"product_process_id"
,
nullable
=
false
,
length
=
32
)
@Column
(
name
=
"product_process_id"
,
nullable
=
false
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productProcessId
;
private
BigDecimal
productProcessId
;
/**
/**
* 工艺id
* 工艺id
*/
*/
@Column
(
name
=
"product_technology_id"
,
nullable
=
true
,
length
=
32
)
@Column
(
name
=
"product_technology_id"
,
nullable
=
true
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productTechnologyId
;
private
BigDecimal
productTechnologyId
;
/**
/**
...
@@ -93,16 +100,16 @@ public class ProductProcess implements Serializable {
...
@@ -93,16 +100,16 @@ public class ProductProcess implements Serializable {
.
toString
();
.
toString
();
}
}
public
String
getProductProcessId
()
{
public
BigDecimal
getProductProcessId
()
{
return
productProcessId
.
toString
()
;
return
productProcessId
;
}
}
public
void
setProductProcessId
(
String
productProcessId
)
{
public
void
setProductProcessId
(
String
productProcessId
)
{
this
.
productProcessId
=
(
productProcessId
!=
null
)
?
new
BigDecimal
(
productProcessId
)
:
null
;
this
.
productProcessId
=
(
productProcessId
!=
null
)
?
new
BigDecimal
(
productProcessId
)
:
null
;
}
}
public
String
getProductTechnologyId
()
{
public
BigDecimal
getProductTechnologyId
()
{
return
productTechnologyId
.
toString
()
;
return
productTechnologyId
;
}
}
public
void
setProductTechnologyId
(
String
productTechnologyId
)
{
public
void
setProductTechnologyId
(
String
productTechnologyId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductPublishedConf.java
View file @
cc10a62a
...
@@ -6,6 +6,8 @@ import javax.persistence.*;
...
@@ -6,6 +6,8 @@ import javax.persistence.*;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -13,21 +15,23 @@ import lombok.Data;
...
@@ -13,21 +15,23 @@ import lombok.Data;
* @TableName product_published_conf
* @TableName product_published_conf
*/
*/
@Table
(
name
=
"product_published_conf"
)
@Table
(
name
=
"product_published_conf"
)
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
public
class
ProductPublishedConf
implements
Serializable
{
public
class
ProductPublishedConf
implements
Serializable
{
/**
/**
* 排版参数配置ID
* 排版参数配置ID
*/
*/
@Id
@Id
@Column
(
name
=
"product_published_conf_id"
)
@Column
(
name
=
"product_published_conf_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productPublishedConfId
;
private
BigDecimal
productPublishedConfId
;
/**
/**
* 产品ID
* 产品ID
*/
*/
@Column
(
name
=
"product_id"
)
@Column
(
name
=
"product_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productId
;
private
BigDecimal
productId
;
/**
/**
...
@@ -90,16 +94,16 @@ public class ProductPublishedConf implements Serializable {
...
@@ -90,16 +94,16 @@ public class ProductPublishedConf implements Serializable {
@Column
(
name
=
"product_sheet_conf"
)
@Column
(
name
=
"product_sheet_conf"
)
private
String
productSheetConf
;
private
String
productSheetConf
;
public
String
getProductPublishedConfId
()
{
public
BigDecimal
getProductPublishedConfId
()
{
return
productPublishedConfId
.
toString
()
;
return
productPublishedConfId
;
}
}
public
void
setProductPublishedConfId
(
String
productPublishedConfId
)
{
public
void
setProductPublishedConfId
(
String
productPublishedConfId
)
{
this
.
productPublishedConfId
=
(
productPublishedConfId
!=
null
)
?
new
BigDecimal
(
productPublishedConfId
)
:
null
;
this
.
productPublishedConfId
=
(
productPublishedConfId
!=
null
)
?
new
BigDecimal
(
productPublishedConfId
)
:
null
;
}
}
public
String
getProductId
()
{
public
BigDecimal
getProductId
()
{
return
productId
.
toString
()
;
return
productId
;
}
}
public
void
setProductId
(
String
productId
)
{
public
void
setProductId
(
String
productId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductRiskDescription.java
View file @
cc10a62a
...
@@ -5,17 +5,22 @@ import java.math.BigDecimal;
...
@@ -5,17 +5,22 @@ import java.math.BigDecimal;
import
java.util.Objects
;
import
java.util.Objects
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
/**
/**
* @author Tison
* @author Tison
* 产品风险描述
* 产品风险描述
*/
*/
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
@Entity
@Entity
@Table
(
name
=
"product_risk_description"
)
@Table
(
name
=
"product_risk_description"
)
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
ProductRiskDescription
implements
Serializable
{
public
class
ProductRiskDescription
implements
Serializable
{
/**
/**
...
@@ -23,12 +28,14 @@ public class ProductRiskDescription implements Serializable {
...
@@ -23,12 +28,14 @@ public class ProductRiskDescription implements Serializable {
*/
*/
@Id
@Id
@Column
(
name
=
"product_risk_description_id"
,
nullable
=
false
,
length
=
32
)
@Column
(
name
=
"product_risk_description_id"
,
nullable
=
false
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productRiskDescriptionId
;
private
BigDecimal
productRiskDescriptionId
;
/**
/**
* 产品id
* 产品id
*/
*/
@Column
(
name
=
"product_id"
,
nullable
=
true
,
length
=
32
)
@Column
(
name
=
"product_id"
,
nullable
=
true
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productId
;
private
BigDecimal
productId
;
/**
/**
...
@@ -68,16 +75,16 @@ public class ProductRiskDescription implements Serializable {
...
@@ -68,16 +75,16 @@ public class ProductRiskDescription implements Serializable {
.
toString
();
.
toString
();
}
}
public
String
getProductRiskDescriptionId
()
{
public
BigDecimal
getProductRiskDescriptionId
()
{
return
productRiskDescriptionId
.
toString
()
;
return
productRiskDescriptionId
;
}
}
public
void
setProductRiskDescriptionId
(
String
productRiskDescriptionId
)
{
public
void
setProductRiskDescriptionId
(
String
productRiskDescriptionId
)
{
this
.
productRiskDescriptionId
=
(
productRiskDescriptionId
!=
null
)
?
new
BigDecimal
(
productRiskDescriptionId
)
:
null
;
this
.
productRiskDescriptionId
=
(
productRiskDescriptionId
!=
null
)
?
new
BigDecimal
(
productRiskDescriptionId
)
:
null
;
}
}
public
String
getProductId
()
{
public
BigDecimal
getProductId
()
{
return
productId
.
toString
()
;
return
productId
;
}
}
public
void
setProductId
(
String
productId
)
{
public
void
setProductId
(
String
productId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductTechnology.java
View file @
cc10a62a
...
@@ -8,16 +8,18 @@ import javax.persistence.*;
...
@@ -8,16 +8,18 @@ import javax.persistence.*;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
/**
/**
* @author Tison
* @author Tison
* 产品工艺
* 产品工艺
*/
*/
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Entity
@Table
(
name
=
"product_technology"
)
@Table
(
name
=
"product_technology"
)
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
ProductTechnology
implements
Serializable
{
public
class
ProductTechnology
implements
Serializable
{
/**
/**
...
@@ -25,12 +27,14 @@ public class ProductTechnology implements Serializable {
...
@@ -25,12 +27,14 @@ public class ProductTechnology implements Serializable {
*/
*/
@Id
@Id
@Column
(
name
=
"product_technology_id"
,
nullable
=
false
)
@Column
(
name
=
"product_technology_id"
,
nullable
=
false
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productTechnologyId
;
private
BigDecimal
productTechnologyId
;
/**
/**
* 产品id
* 产品id
*/
*/
@Column
(
name
=
"product_id"
,
nullable
=
true
)
@Column
(
name
=
"product_id"
,
nullable
=
true
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productId
;
private
BigDecimal
productId
;
/**
/**
...
@@ -214,14 +218,14 @@ public class ProductTechnology implements Serializable {
...
@@ -214,14 +218,14 @@ public class ProductTechnology implements Serializable {
.
toString
();
.
toString
();
}
}
public
String
getProductTechnologyId
()
{
return
productTechnologyId
.
toString
()
;
}
public
BigDecimal
getProductTechnologyId
()
{
return
productTechnologyId
;
}
public
void
setProductTechnologyId
(
String
productTechnologyId
)
{
public
void
setProductTechnologyId
(
String
productTechnologyId
)
{
this
.
productTechnologyId
=
(
productTechnologyId
!=
null
)
?
new
BigDecimal
(
productTechnologyId
)
:
null
;
this
.
productTechnologyId
=
(
productTechnologyId
!=
null
)
?
new
BigDecimal
(
productTechnologyId
)
:
null
;
}
}
public
String
getProductId
()
{
public
BigDecimal
getProductId
()
{
return
productId
.
toString
()
;
return
productId
;
}
}
public
void
setProductId
(
String
productId
)
{
public
void
setProductId
(
String
productId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductTypesetConf.java
View file @
cc10a62a
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
...
@@ -4,6 +4,10 @@ import java.io.Serializable;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
javax.persistence.*
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.huigou.topsun.common.NumberToStringSerializer
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -12,18 +16,22 @@ import lombok.Data;
...
@@ -12,18 +16,22 @@ import lombok.Data;
*/
*/
@Table
(
name
=
"product_typeset_conf"
)
@Table
(
name
=
"product_typeset_conf"
)
@Entity
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
class
ProductTypesetConf
implements
Serializable
{
public
class
ProductTypesetConf
implements
Serializable
{
/**
/**
* 产品排版配置ID
* 产品排版配置ID
*/
*/
@Id
@Id
@Column
(
name
=
"product_typeset_conf_id"
)
@Column
(
name
=
"product_typeset_conf_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productTypesetConfId
;
private
BigDecimal
productTypesetConfId
;
/**
/**
* 产品ID
* 产品ID
*/
*/
@Column
(
name
=
"product_id"
)
@Column
(
name
=
"product_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productId
;
private
BigDecimal
productId
;
/**
/**
...
@@ -47,16 +55,16 @@ public class ProductTypesetConf implements Serializable {
...
@@ -47,16 +55,16 @@ public class ProductTypesetConf implements Serializable {
@Column
(
name
=
"loss_rate"
)
@Column
(
name
=
"loss_rate"
)
private
Double
lossRate
;
private
Double
lossRate
;
public
String
getProductTypesetConfId
()
{
public
BigDecimal
getProductTypesetConfId
()
{
return
productTypesetConfId
.
toString
()
;
return
productTypesetConfId
;
}
}
public
void
setProductTypesetConfId
(
String
productTypesetConfId
)
{
public
void
setProductTypesetConfId
(
String
productTypesetConfId
)
{
this
.
productTypesetConfId
=
(
productTypesetConfId
!=
null
)
?
new
BigDecimal
(
productTypesetConfId
)
:
null
;
this
.
productTypesetConfId
=
(
productTypesetConfId
!=
null
)
?
new
BigDecimal
(
productTypesetConfId
)
:
null
;
}
}
public
String
getProductId
()
{
public
BigDecimal
getProductId
()
{
return
productId
.
toString
()
;
return
productId
;
}
}
public
void
setProductId
(
String
productId
)
{
public
void
setProductId
(
String
productId
)
{
...
...
topsun/src/main/java/com/huigou/topsun/product/repository/ProductDetailRepository.java
View file @
cc10a62a
...
@@ -3,11 +3,13 @@ package com.huigou.topsun.product.repository;
...
@@ -3,11 +3,13 @@ package com.huigou.topsun.product.repository;
import
com.huigou.topsun.product.domain.ProductDetail
;
import
com.huigou.topsun.product.domain.ProductDetail
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
java.math.BigDecimal
;
/**
/**
* @Auther: xin.lu
* @Auther: xin.lu
* @Date: 2023/11/22/10:41
* @Date: 2023/11/22/10:41
* @Description:
* @Description:
*/
*/
public
interface
ProductDetailRepository
extends
JpaRepository
<
ProductDetail
,
String
>
{
public
interface
ProductDetailRepository
extends
JpaRepository
<
ProductDetail
,
String
>
{
ProductDetail
findByProductId
(
String
productId
);
ProductDetail
findByProductId
(
BigDecimal
productId
);
}
}
topsun/src/main/java/com/huigou/topsun/product/repository/ProductLookedRepository.java
View file @
cc10a62a
...
@@ -3,6 +3,8 @@ package com.huigou.topsun.product.repository;
...
@@ -3,6 +3,8 @@ package com.huigou.topsun.product.repository;
import
com.huigou.topsun.product.domain.ProductLooked
;
import
com.huigou.topsun.product.domain.ProductLooked
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
java.math.BigDecimal
;
/**
/**
* @author qinzhenguan
* @author qinzhenguan
* @Auther: xin.lu
* @Auther: xin.lu
...
@@ -10,7 +12,7 @@ import org.springframework.data.jpa.repository.JpaRepository;
...
@@ -10,7 +12,7 @@ import org.springframework.data.jpa.repository.JpaRepository;
* @Description:
* @Description:
*/
*/
public
interface
ProductLookedRepository
extends
JpaRepository
<
ProductLooked
,
String
>
{
public
interface
ProductLookedRepository
extends
JpaRepository
<
ProductLooked
,
String
>
{
ProductLooked
findByProductId
(
String
productId
);
ProductLooked
findByProductId
(
BigDecimal
productId
);
ProductLooked
findByProductIdEquals
(
String
productId
);
ProductLooked
findByProductIdEquals
(
String
productId
);
...
...
topsun/src/main/java/com/huigou/topsun/product/repository/ProductLossRepository.java
View file @
cc10a62a
...
@@ -3,6 +3,7 @@ package com.huigou.topsun.product.repository;
...
@@ -3,6 +3,7 @@ package com.huigou.topsun.product.repository;
import
com.huigou.topsun.product.domain.ProductLoss
;
import
com.huigou.topsun.product.domain.ProductLoss
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -11,6 +12,6 @@ import java.util.List;
...
@@ -11,6 +12,6 @@ import java.util.List;
* @Description:
* @Description:
*/
*/
public
interface
ProductLossRepository
extends
JpaRepository
<
ProductLoss
,
String
>
{
public
interface
ProductLossRepository
extends
JpaRepository
<
ProductLoss
,
String
>
{
List
<
ProductLoss
>
findByProductId
(
String
productId
);
List
<
ProductLoss
>
findByProductId
(
BigDecimal
productId
);
}
}
topsun/src/main/java/com/huigou/topsun/product/repository/ProductMaterialRepository.java
View file @
cc10a62a
...
@@ -3,6 +3,7 @@ package com.huigou.topsun.product.repository;
...
@@ -3,6 +3,7 @@ package com.huigou.topsun.product.repository;
import
com.huigou.topsun.product.domain.ProductMaterial
;
import
com.huigou.topsun.product.domain.ProductMaterial
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -11,5 +12,5 @@ import java.util.List;
...
@@ -11,5 +12,5 @@ import java.util.List;
* @Description:
* @Description:
*/
*/
public
interface
ProductMaterialRepository
extends
JpaRepository
<
ProductMaterial
,
String
>
{
public
interface
ProductMaterialRepository
extends
JpaRepository
<
ProductMaterial
,
String
>
{
List
<
ProductMaterial
>
findByProductId
(
String
productId
);
List
<
ProductMaterial
>
findByProductId
(
BigDecimal
productId
);
}
}
topsun/src/main/java/com/huigou/topsun/product/repository/ProductProcessRepository.java
View file @
cc10a62a
...
@@ -10,5 +10,5 @@ import java.util.List;
...
@@ -10,5 +10,5 @@ import java.util.List;
* @author qinzhenguan
* @author qinzhenguan
*/
*/
public
interface
ProductProcessRepository
extends
JpaRepository
<
ProductProcess
,
Long
>
{
public
interface
ProductProcessRepository
extends
JpaRepository
<
ProductProcess
,
Long
>
{
List
<
ProductProcess
>
findByProductTechnologyId
(
String
productTechnologyId
);
List
<
ProductProcess
>
findByProductTechnologyId
(
BigDecimal
productTechnologyId
);
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/product/repository/ProductPublishedConfRepository.java
View file @
cc10a62a
...
@@ -3,13 +3,15 @@ package com.huigou.topsun.product.repository;
...
@@ -3,13 +3,15 @@ package com.huigou.topsun.product.repository;
import
com.huigou.topsun.product.domain.ProductPublishedConf
;
import
com.huigou.topsun.product.domain.ProductPublishedConf
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
java.math.BigDecimal
;
/**
/**
* @Auther: xin.lu
* @Auther: xin.lu
* @Date: 2023/11/22/10:46
* @Date: 2023/11/22/10:46
* @Description:
* @Description:
*/
*/
public
interface
ProductPublishedConfRepository
extends
JpaRepository
<
ProductPublishedConf
,
String
>
{
public
interface
ProductPublishedConfRepository
extends
JpaRepository
<
ProductPublishedConf
,
String
>
{
ProductPublishedConf
findByProductId
(
String
productId
);
ProductPublishedConf
findByProductId
(
BigDecimal
productId
);
ProductPublishedConf
getProductPublishedConfByProductId
(
String
productId
);
ProductPublishedConf
getProductPublishedConfByProductId
(
String
productId
);
}
}
topsun/src/main/java/com/huigou/topsun/product/repository/ProductTechnologyRepository.java
View file @
cc10a62a
...
@@ -3,9 +3,11 @@ package com.huigou.topsun.product.repository;
...
@@ -3,9 +3,11 @@ package com.huigou.topsun.product.repository;
import
com.huigou.topsun.product.domain.ProductTechnology
;
import
com.huigou.topsun.product.domain.ProductTechnology
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
java.math.BigDecimal
;
/**
/**
* @author qinzhenguan
* @author qinzhenguan
*/
*/
public
interface
ProductTechnologyRepository
extends
JpaRepository
<
ProductTechnology
,
Long
>
{
public
interface
ProductTechnologyRepository
extends
JpaRepository
<
ProductTechnology
,
Long
>
{
ProductTechnology
findByProductId
(
String
productId
);
ProductTechnology
findByProductId
(
BigDecimal
productId
);
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/product/repository/ProductTypesetConfRepository.java
View file @
cc10a62a
...
@@ -3,11 +3,13 @@ package com.huigou.topsun.product.repository;
...
@@ -3,11 +3,13 @@ package com.huigou.topsun.product.repository;
import
com.huigou.topsun.product.domain.ProductTypesetConf
;
import
com.huigou.topsun.product.domain.ProductTypesetConf
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
java.math.BigDecimal
;
/**
/**
* @Auther: xin.lu
* @Auther: xin.lu
* @Date: 2023/11/22/10:46
* @Date: 2023/11/22/10:46
* @Description:
* @Description:
*/
*/
public
interface
ProductTypesetConfRepository
extends
JpaRepository
<
ProductTypesetConf
,
String
>
{
public
interface
ProductTypesetConfRepository
extends
JpaRepository
<
ProductTypesetConf
,
String
>
{
ProductTypesetConf
findByProductId
(
String
productId
);
ProductTypesetConf
findByProductId
(
BigDecimal
productId
);
}
}
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