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
c556c675
Commit
c556c675
authored
Dec 26, 2023
by
覃振观
👶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存方法
parent
fa82f9c0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
1298 additions
and
1083 deletions
+1298
-1083
productDetail.js
...un-xt/src/main/webapp/biz/topsun/product/productDetail.js
+9
-5
ProductApplicationImpl.java
...psun/product/application/impl/ProductApplicationImpl.java
+231
-35
ProductController.java
...m/huigou/topsun/product/controller/ProductController.java
+0
-2
Brand.java
...src/main/java/com/huigou/topsun/product/domain/Brand.java
+65
-62
Color.java
...src/main/java/com/huigou/topsun/product/domain/Color.java
+65
-62
Factory.java
...c/main/java/com/huigou/topsun/product/domain/Factory.java
+52
-49
Product.java
...c/main/java/com/huigou/topsun/product/domain/Product.java
+33
-34
ProductCategory.java
...ava/com/huigou/topsun/product/domain/ProductCategory.java
+65
-62
ProductDetail.java
.../java/com/huigou/topsun/product/domain/ProductDetail.java
+31
-32
ProductFace.java
...in/java/com/huigou/topsun/product/domain/ProductFace.java
+40
-37
ProductFaceColor.java
...va/com/huigou/topsun/product/domain/ProductFaceColor.java
+82
-81
ProductLooked.java
.../java/com/huigou/topsun/product/domain/ProductLooked.java
+32
-34
ProductLoss.java
...in/java/com/huigou/topsun/product/domain/ProductLoss.java
+111
-106
ProductMaterial.java
...ava/com/huigou/topsun/product/domain/ProductMaterial.java
+97
-95
ProductProcess.java
...java/com/huigou/topsun/product/domain/ProductProcess.java
+24
-43
ProductPublishedConf.java
...om/huigou/topsun/product/domain/ProductPublishedConf.java
+197
-179
ProductRiskDescription.java
.../huigou/topsun/product/domain/ProductRiskDescription.java
+23
-43
ProductTechnology.java
...a/com/huigou/topsun/product/domain/ProductTechnology.java
+29
-31
ProductTypesetConf.java
.../com/huigou/topsun/product/domain/ProductTypesetConf.java
+112
-91
No files found.
topsun-xt/src/main/webapp/biz/topsun/product/productDetail.js
View file @
c556c675
...
...
@@ -83,11 +83,11 @@ function save() {
}
let
upData
=
checkUpdata
();
if
(
!
upData
)
{
return
;
}
//
Public.ajax(web_app.name + "/product/saveOrUpdataOnAllDetail.ajax", {
//
data: JSON.stringify(upData)
//
}, function (data) {
//
//
});
Public
.
ajax
(
web_app
.
name
+
"/product/saveOrUpdataOnAllDetail.ajax"
,
{
data
:
JSON
.
stringify
(
upData
)
},
function
(
data
)
{
});
}
function
initializeToobarContainer
(){
...
...
@@ -162,6 +162,10 @@ var dataMapping = {
"modulus"
,
"columnNum"
,
"rowNum"
,
"contactNum"
,
"columnDoubleBlade"
,
"rowDoubleBlade"
,
"dispatchMultiple"
,
"sheetLength"
,
"sheetWidth"
,
"productSheetConf"
],
productFace
:
{
id
:
"productFaceId"
,
columns
:
[
"productFaceId"
,
"productImage"
]
},
fronColors
:
{
id
:
"productFaceColorId"
,
columns
:
[
"productFaceColorId"
,
"coverageRate"
]
...
...
topsun/src/main/java/com/huigou/topsun/product/application/impl/ProductApplicationImpl.java
View file @
c556c675
This diff is collapsed.
Click to expand it.
topsun/src/main/java/com/huigou/topsun/product/controller/ProductController.java
View file @
c556c675
...
...
@@ -118,6 +118,4 @@ public class ProductController extends CommonController {
return
success
(
list
);
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/product/domain/Brand.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
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
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author YourUserName
* 品牌
* @TableName brand
*/
@Table
(
name
=
"brand"
)
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"brand"
)
public
class
Brand
implements
Serializable
{
/**
* 品牌ID
*/
@Id
@Column
(
name
=
"brand_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
brandId
;
/**
* 品牌名称
*/
@Column
(
name
=
"brand_name"
)
private
String
brandName
;
/**
* 品牌编码
*/
@Column
(
name
=
"brand_code"
)
private
String
brandCode
;
/**
* 品牌备注
*/
@Column
(
name
=
"brand_remark"
)
private
String
brandRemark
;
public
BigDecimal
getBrandId
()
{
return
brandId
;
}
public
void
setBrandId
(
String
brandId
)
{
this
.
brandId
=
(
brandId
!=
null
)
?
new
BigDecimal
(
brandId
)
:
null
;
}
public
String
getBrandName
()
{
return
brandName
;
}
public
void
setBrandName
(
String
brandName
)
{
this
.
brandName
=
brandName
;
}
public
String
getBrandCode
()
{
return
brandCode
;
}
/**
* 品牌ID
*/
@Id
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"brand_id"
,
nullable
=
false
)
private
BigDecimal
brandId
;
public
void
setBrandCode
(
String
brandCode
)
{
this
.
brandCode
=
brandCode
;
}
/**
* 品牌名称
*/
@Column
(
name
=
"brand_name"
,
nullable
=
false
,
length
=
128
)
private
String
brandName
;
public
String
getBrandRemark
()
{
return
brandRemark
;
}
/**
* 品牌编码
*/
@Column
(
name
=
"brand_code"
,
nullable
=
true
,
length
=
32
)
private
String
brandCode
;
public
void
setBrandRemark
(
String
brandRemark
)
{
this
.
brandRemark
=
brandRemark
;
}
}
\ No newline at end of file
/**
* 品牌备注
*/
@Column
(
name
=
"brand_remark"
,
nullable
=
true
,
length
=
1024
)
private
String
brandRemark
;
public
BigDecimal
getBrandId
()
{
return
this
.
brandId
;
}
public
void
setBrandId
(
String
brandId
)
{
this
.
brandId
=
(
brandId
==
null
)
||
brandId
.
isEmpty
()
?
null
:
new
BigDecimal
(
brandId
);
}
public
String
getBrandName
()
{
return
this
.
brandName
;
}
public
void
setBrandName
(
String
brandName
)
{
this
.
brandName
=
brandName
;
}
public
String
getBrandCode
()
{
return
this
.
brandCode
;
}
public
void
setBrandCode
(
String
brandCode
)
{
this
.
brandCode
=
brandCode
;
}
public
String
getBrandRemark
()
{
return
this
.
brandRemark
;
}
public
void
setBrandRemark
(
String
brandRemark
)
{
this
.
brandRemark
=
brandRemark
;
}
}
topsun/src/main/java/com/huigou/topsun/product/domain/Color.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
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
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author YourUserName
* 颜色
* @TableName color
*/
@Table
(
name
=
"color"
)
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"color"
)
public
class
Color
implements
Serializable
{
/**
* 颜色ID
*/
@Id
@Column
(
name
=
"color_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
colorId
;
/**
* 颜色名称
*/
@Column
(
name
=
"color_name"
)
private
String
colorName
;
/**
* 颜色编码
*/
@Column
(
name
=
"color_code"
)
private
String
colorCode
;
/**
* 备注
*/
@Column
(
name
=
"color_remark"
)
private
String
colorRemark
;
public
BigDecimal
getColorId
()
{
return
colorId
;
}
public
void
setColorId
(
String
colorId
)
{
this
.
colorId
=
(
colorId
!=
null
)
?
new
BigDecimal
(
colorId
)
:
null
;
}
public
String
getColorName
()
{
return
colorName
;
}
public
void
setColorName
(
String
colorName
)
{
this
.
colorName
=
colorName
;
}
public
String
getColorCode
()
{
return
colorCode
;
}
/**
* 颜色ID
*/
@Id
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"color_id"
,
nullable
=
false
)
private
BigDecimal
colorId
;
public
void
setColorCode
(
String
colorCode
)
{
this
.
colorCode
=
colorCode
;
}
/**
* 颜色名称
*/
@Column
(
name
=
"color_name"
,
nullable
=
true
,
length
=
128
)
private
String
colorName
;
public
String
getColorRemark
()
{
return
colorRemark
;
}
/**
* 颜色编码
*/
@Column
(
name
=
"color_code"
,
nullable
=
true
,
length
=
32
)
private
String
colorCode
;
public
void
setColorRemark
(
String
colorRemark
)
{
this
.
colorRemark
=
colorRemark
;
}
}
\ No newline at end of file
/**
* 备注
*/
@Column
(
name
=
"color_remark"
,
nullable
=
true
,
length
=
255
)
private
String
colorRemark
;
public
BigDecimal
getColorId
()
{
return
this
.
colorId
;
}
public
void
setColorId
(
String
colorId
)
{
this
.
colorId
=
(
colorId
==
null
)
||
colorId
.
isEmpty
()
?
null
:
new
BigDecimal
(
colorId
);
}
public
String
getColorName
()
{
return
this
.
colorName
;
}
public
void
setColorName
(
String
colorName
)
{
this
.
colorName
=
colorName
;
}
public
String
getColorCode
()
{
return
this
.
colorCode
;
}
public
void
setColorCode
(
String
colorCode
)
{
this
.
colorCode
=
colorCode
;
}
public
String
getColorRemark
()
{
return
this
.
colorRemark
;
}
public
void
setColorRemark
(
String
colorRemark
)
{
this
.
colorRemark
=
colorRemark
;
}
}
topsun/src/main/java/com/huigou/topsun/product/domain/Factory.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
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
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author YourUserName
* 生产工厂
* @TableName factory
*/
@Table
(
name
=
"factory"
)
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"factory"
)
public
class
Factory
implements
Serializable
{
/**
* 工厂ID
*/
@Id
@Column
(
name
=
"factory_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
factoryId
;
/**
* 工厂名称
*/
@Column
(
name
=
"factory_name"
)
private
String
factoryName
;
/**
* 工厂编码
*/
@Column
(
name
=
"factory_code"
)
private
String
factoryCode
;
public
BigDecimal
getFactoryId
()
{
return
factoryId
;
}
public
void
setFactoryId
(
String
factoryId
)
{
this
.
factoryId
=
(
factoryId
!=
null
)
?
new
BigDecimal
(
factoryId
)
:
null
;
}
public
String
getFactoryName
()
{
return
factoryName
;
}
public
void
setFactoryName
(
String
factoryName
)
{
this
.
factoryName
=
factoryName
;
}
/**
* 工厂ID
*/
@Id
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"factory_id"
,
nullable
=
false
)
private
BigDecimal
factoryId
;
public
String
getFactoryCode
()
{
return
factoryCode
;
}
/**
* 工厂名称
*/
@Column
(
name
=
"factory_name"
,
nullable
=
true
,
length
=
255
)
private
String
factoryName
;
public
void
setFactoryCode
(
String
factoryCode
)
{
this
.
factoryCode
=
factoryCode
;
}
}
\ No newline at end of file
/**
* 工厂编码
*/
@Column
(
name
=
"factory_code"
,
nullable
=
true
,
length
=
32
)
private
String
factoryCode
;
public
BigDecimal
getFactoryId
()
{
return
this
.
factoryId
;
}
public
void
setFactoryId
(
String
factoryId
)
{
this
.
factoryId
=
(
factoryId
==
null
)
||
factoryId
.
isEmpty
()
?
null
:
new
BigDecimal
(
factoryId
);
}
public
String
getFactoryName
()
{
return
this
.
factoryName
;
}
public
void
setFactoryName
(
String
factoryName
)
{
this
.
factoryName
=
factoryName
;
}
public
String
getFactoryCode
()
{
return
this
.
factoryCode
;
}
public
void
setFactoryCode
(
String
factoryCode
)
{
this
.
factoryCode
=
factoryCode
;
}
}
topsun/src/main/java/com/huigou/topsun/product/domain/Product.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Objects
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
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.lang.builder.EqualsBuilder
;
import
org.apache.commons.lang.builder.HashCodeBuilder
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author
Tison
* @author
YourUserName
* 产品
*/
@Entity
@Table
(
name
=
"product"
)
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"product"
)
public
class
Product
implements
Serializable
{
/**
* 产品ID
*/
@Id
@Column
(
name
=
"product_id"
,
nullable
=
false
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_id"
,
nullable
=
false
)
private
BigDecimal
productId
;
/**
...
...
@@ -40,6 +42,7 @@ public class Product implements Serializable {
/**
* 产品类别
*/
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_category_id"
,
nullable
=
true
)
private
BigDecimal
productCategoryId
;
...
...
@@ -160,37 +163,25 @@ public class Product implements Serializable {
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
Product
product
=
(
Product
)
o
;
return
Objects
.
equals
(
productId
,
product
.
productId
)
&&
Objects
.
equals
(
productName
,
product
.
productName
)
&&
Objects
.
equals
(
productCategoryId
,
product
.
productCategoryId
)
&&
Objects
.
equals
(
productStatus
,
product
.
productStatus
)
&&
Objects
.
equals
(
productUnit
,
product
.
productUnit
)
&&
Objects
.
equals
(
productSampleCode
,
product
.
productSampleCode
)
&&
Objects
.
equals
(
brandName
,
product
.
brandName
)
&&
Objects
.
equals
(
productType
,
product
.
productType
)
&&
Objects
.
equals
(
productCode
,
product
.
productCode
)
&&
Objects
.
equals
(
productSizeGroupId
,
product
.
productSizeGroupId
)
&&
Objects
.
equals
(
isOnlyCode
,
product
.
isOnlyCode
)
&&
Objects
.
equals
(
isBodyColor
,
product
.
isBodyColor
)
&&
Objects
.
equals
(
isDisable
,
product
.
isDisable
)
&&
Objects
.
equals
(
isBuildBom
,
product
.
isBuildBom
)
&&
Objects
.
equals
(
confirmDate
,
product
.
confirmDate
)
&&
Objects
.
equals
(
comfirmPerson
,
product
.
comfirmPerson
)
&&
Objects
.
equals
(
isFreeInspection
,
product
.
isFreeInspection
)
&&
Objects
.
equals
(
isNoQualityLoss
,
product
.
isNoQualityLoss
)
&&
Objects
.
equals
(
sampleOrderNo
,
product
.
sampleOrderNo
)
&&
Objects
.
equals
(
stockNo
,
product
.
stockNo
)
&&
Objects
.
equals
(
stockName
,
product
.
stockName
)
&&
Objects
.
equals
(
fileNo
,
product
.
fileNo
);
return
new
EqualsBuilder
().
append
(
productId
,
product
.
productId
).
append
(
productName
,
product
.
productName
).
append
(
productCategoryId
,
product
.
productCategoryId
).
append
(
productStatus
,
product
.
productStatus
).
append
(
productUnit
,
product
.
productUnit
).
append
(
productSampleCode
,
product
.
productSampleCode
).
append
(
brandName
,
product
.
brandName
).
append
(
productType
,
product
.
productType
).
append
(
productCode
,
product
.
productCode
).
append
(
productSizeGroupId
,
product
.
productSizeGroupId
).
append
(
isOnlyCode
,
product
.
isOnlyCode
).
append
(
isBodyColor
,
product
.
isBodyColor
).
append
(
isDisable
,
product
.
isDisable
).
append
(
isBuildBom
,
product
.
isBuildBom
).
append
(
confirmDate
,
product
.
confirmDate
).
append
(
comfirmPerson
,
product
.
comfirmPerson
).
append
(
isFreeInspection
,
product
.
isFreeInspection
).
append
(
isNoQualityLoss
,
product
.
isNoQualityLoss
).
append
(
sampleOrderNo
,
product
.
sampleOrderNo
).
append
(
stockNo
,
product
.
stockNo
).
append
(
stockName
,
product
.
stockName
).
append
(
fileNo
,
product
.
fileNo
).
isEquals
(
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
productId
,
productName
,
productCategoryId
,
productStatus
,
productUnit
,
productSampleCode
,
brandName
,
productType
,
productCode
,
productSizeGroupId
,
isOnlyCode
,
isBodyColor
,
isDisable
,
isBuildBom
,
confirmDate
,
comfirmPerson
,
isFreeInspection
,
isNoQualityLoss
,
sampleOrderNo
,
stockNo
,
stockName
,
fileNo
);
return
new
HashCodeBuilder
(
17
,
37
).
append
(
productId
).
append
(
productName
).
append
(
productCategoryId
).
append
(
productStatus
).
append
(
productUnit
).
append
(
productSampleCode
).
append
(
brandName
).
append
(
productType
).
append
(
productCode
).
append
(
productSizeGroupId
).
append
(
isOnlyCode
).
append
(
isBodyColor
).
append
(
isDisable
).
append
(
isBuildBom
).
append
(
confirmDate
).
append
(
comfirmPerson
).
append
(
isFreeInspection
).
append
(
isNoQualityLoss
).
append
(
sampleOrderNo
).
append
(
stockNo
).
append
(
stockName
).
append
(
fileNo
).
toHashCode
(
);
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
)
.
toString
();
}
public
BigDecimal
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
public
BigDecimal
getProductId
()
{
return
this
.
productId
;
}
public
BigDecimal
getProductCategoryId
()
{
return
productCategoryId
;
}
public
void
setProductCategoryId
(
String
productCategoryId
)
{
this
.
productCategoryId
=
(
productCategoryId
!=
null
)
?
new
BigDecimal
(
productCategoryId
)
:
null
;
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
==
null
)
||
productId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productId
);
}
public
String
getProductName
()
{
return
this
.
productName
;
}
...
...
@@ -199,6 +190,14 @@ public class Product implements Serializable {
this
.
productName
=
productName
;
}
public
BigDecimal
getProductCategoryId
()
{
return
this
.
productCategoryId
;
}
public
void
setProductCategoryId
(
String
productCategoryId
)
{
this
.
productCategoryId
=
(
productCategoryId
==
null
)
||
productCategoryId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productCategoryId
);
}
public
String
getProductStatus
()
{
return
this
.
productStatus
;
}
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductCategory.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
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
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author YourUserName
* 产品类别
* @TableName product_category
*/
@Table
(
name
=
"product_category"
)
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"product_category"
)
public
class
ProductCategory
implements
Serializable
{
/**
* 产品类别ID
*/
@Id
@Column
(
name
=
"product_category_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productCategoryId
;
/**
* 产品类别名称
*/
@Column
(
name
=
"product_category_name"
)
private
String
productCategoryName
;
/**
* 产品类别状态(product_category_status)
*/
@Column
(
name
=
"product_category_status"
)
private
String
productCategoryStatus
;
/**
* 产品编码
*/
@Column
(
name
=
"product_category_code"
)
private
String
productCategoryCode
;
public
BigDecimal
getProductCategoryId
()
{
return
productCategoryId
;
}
public
void
setProductCategoryId
(
String
productCategoryId
)
{
this
.
productCategoryId
=
(
productCategoryId
!=
null
)
?
new
BigDecimal
(
productCategoryId
)
:
null
;
}
public
String
getProductCategoryName
()
{
return
productCategoryName
;
}
public
void
setProductCategoryName
(
String
productCategoryName
)
{
this
.
productCategoryName
=
productCategoryName
;
}
public
String
getProductCategoryStatus
()
{
return
productCategoryStatus
;
}
/**
* 产品类别ID
*/
@Id
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_category_id"
,
nullable
=
false
)
private
BigDecimal
productCategoryId
;
public
void
setProductCategoryStatus
(
String
productCategoryStatus
)
{
this
.
productCategoryStatus
=
productCategoryStatus
;
}
/**
* 产品类别名称
*/
@Column
(
name
=
"product_category_name"
,
nullable
=
true
,
length
=
128
)
private
String
productCategoryName
;
public
String
getProductCategoryCode
()
{
return
productCategoryCode
;
}
/**
* 产品类别状态(product_category_status)
*/
@Column
(
name
=
"product_category_status"
,
nullable
=
true
,
length
=
32
)
private
String
productCategoryStatus
;
public
void
setProductCategoryCode
(
String
productCategoryCode
)
{
this
.
productCategoryCode
=
productCategoryCode
;
}
}
\ No newline at end of file
/**
* 产品编码
*/
@Column
(
name
=
"product_category_code"
,
nullable
=
true
,
length
=
32
)
private
String
productCategoryCode
;
public
BigDecimal
getProductCategoryId
()
{
return
this
.
productCategoryId
;
}
public
void
setProductCategoryId
(
String
productCategoryId
)
{
this
.
productCategoryId
=
(
productCategoryId
==
null
)
||
productCategoryId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productCategoryId
);
}
public
String
getProductCategoryName
()
{
return
this
.
productCategoryName
;
}
public
void
setProductCategoryName
(
String
productCategoryName
)
{
this
.
productCategoryName
=
productCategoryName
;
}
public
String
getProductCategoryStatus
()
{
return
this
.
productCategoryStatus
;
}
public
void
setProductCategoryStatus
(
String
productCategoryStatus
)
{
this
.
productCategoryStatus
=
productCategoryStatus
;
}
public
String
getProductCategoryCode
()
{
return
this
.
productCategoryCode
;
}
public
void
setProductCategoryCode
(
String
productCategoryCode
)
{
this
.
productCategoryCode
=
productCategoryCode
;
}
}
topsun/src/main/java/com/huigou/topsun/product/domain/ProductDetail.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Objects
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
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.EqualsBuilder
;
import
org.apache.commons.lang3.builder.HashCodeBuilder
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author
Tison
* @author
YourUserName
* 产品详细信息
*/
@Entity
@Table
(
name
=
"product_detail"
)
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"product_detail"
)
public
class
ProductDetail
implements
Serializable
{
/**
* 产品详细信息ID
*/
@Id
@Column
(
name
=
"product_detail_id"
,
nullable
=
false
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_detail_id"
,
nullable
=
false
)
private
BigDecimal
productDetailId
;
/**
* 产品ID
*/
@Column
(
name
=
"product_id"
,
nullable
=
true
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_id"
,
nullable
=
true
)
private
BigDecimal
productId
;
/**
...
...
@@ -130,35 +131,33 @@ public class ProductDetail implements Serializable {
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
ProductDetail
that
=
(
ProductDetail
)
o
;
return
Objects
.
equals
(
productDetailId
,
that
.
productDetailId
)
&&
Objects
.
equals
(
productId
,
that
.
productId
)
&&
Objects
.
equals
(
factoryName
,
that
.
factoryName
)
&&
Objects
.
equals
(
productLayout
,
that
.
productLayout
)
&&
Objects
.
equals
(
productEnglishName
,
that
.
productEnglishName
)
&&
Objects
.
equals
(
productShortName
,
that
.
productShortName
)
&&
Objects
.
equals
(
backProductFaceId
,
that
.
backProductFaceId
)
&&
Objects
.
equals
(
rightProductFaceId
,
that
.
rightProductFaceId
)
&&
Objects
.
equals
(
productSubstrate
,
that
.
productSubstrate
)
&&
Objects
.
equals
(
materialCode
,
that
.
materialCode
)
&&
Objects
.
equals
(
productCode
,
that
.
productCode
)
&&
Objects
.
equals
(
productEnCode
,
that
.
productEnCode
)
&&
Objects
.
equals
(
bodyColor
,
that
.
bodyColor
)
&&
Objects
.
equals
(
customerMaterialCode
,
that
.
customerMaterialCode
)
&&
Objects
.
equals
(
versionNo
,
that
.
versionNo
)
&&
Objects
.
equals
(
isNewSpecification
,
that
.
isNewSpecification
)
&&
Objects
.
equals
(
specificationNo
,
that
.
specificationNo
);
return
new
EqualsBuilder
().
append
(
productDetailId
,
that
.
productDetailId
).
append
(
productId
,
that
.
productId
).
append
(
factoryName
,
that
.
factoryName
).
append
(
productLayout
,
that
.
productLayout
).
append
(
productEnglishName
,
that
.
productEnglishName
).
append
(
productShortName
,
that
.
productShortName
).
append
(
backProductFaceId
,
that
.
backProductFaceId
).
append
(
rightProductFaceId
,
that
.
rightProductFaceId
).
append
(
productSubstrate
,
that
.
productSubstrate
).
append
(
materialCode
,
that
.
materialCode
).
append
(
productCode
,
that
.
productCode
).
append
(
productEnCode
,
that
.
productEnCode
).
append
(
bodyColor
,
that
.
bodyColor
).
append
(
customerMaterialCode
,
that
.
customerMaterialCode
).
append
(
versionNo
,
that
.
versionNo
).
append
(
isNewSpecification
,
that
.
isNewSpecification
).
append
(
specificationNo
,
that
.
specificationNo
).
isEquals
(
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
productDetailId
,
productId
,
factoryName
,
productLayout
,
productEnglishName
,
productShortName
,
backProductFaceId
,
rightProductFaceId
,
productSubstrate
,
materialCode
,
productCode
,
productEnCode
,
bodyColor
,
customerMaterialCode
,
versionNo
,
isNewSpecification
,
specificationNo
);
return
new
HashCodeBuilder
(
17
,
37
).
append
(
productDetailId
).
append
(
productId
).
append
(
factoryName
).
append
(
productLayout
).
append
(
productEnglishName
).
append
(
productShortName
).
append
(
backProductFaceId
).
append
(
rightProductFaceId
).
append
(
productSubstrate
).
append
(
materialCode
).
append
(
productCode
).
append
(
productEnCode
).
append
(
bodyColor
).
append
(
customerMaterialCode
).
append
(
versionNo
).
append
(
isNewSpecification
).
append
(
specificationNo
).
toHashCode
(
);
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
)
.
toString
();
public
BigDecimal
getProductDetailId
()
{
return
this
.
productDetailId
;
}
public
BigDecimal
getProductDetailId
()
{
return
productDetailId
;
}
public
void
setProductDetailId
(
String
productDetailId
)
{
this
.
productDetailId
=
(
productDetailId
!=
null
)
?
new
BigDecimal
(
productDetailId
)
:
null
;
public
void
setProductDetailId
(
String
productDetailId
)
{
this
.
productDetailId
=
(
productDetailId
==
null
)
||
productDetailId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productDetailId
);
}
public
BigDecimal
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
public
BigDecimal
getProductId
()
{
return
this
.
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
==
null
)
||
productId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productId
);
}
public
String
getFactoryName
()
{
return
this
.
factoryName
;
}
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductFace.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
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
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author YourUserName
* 产品版面信息
* @TableName product_face
*/
@Table
(
name
=
"product_face"
)
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"product_face"
)
public
class
ProductFace
implements
Serializable
{
/**
* 产品版面ID
*/
@Id
@Column
(
name
=
"product_face_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productFaceId
;
/**
* 产品版面图片
*/
@Column
(
name
=
"product_image"
)
private
String
productImage
;
public
BigDecimal
getProductFaceId
()
{
return
productFaceId
;
}
public
void
setProductFaceId
(
String
productFaceId
)
{
this
.
productFaceId
=
(
productFaceId
!=
null
)
?
new
BigDecimal
(
productFaceId
)
:
null
;
}
public
String
getProductImage
()
{
return
productImage
;
}
public
void
setProductImage
(
String
productImage
)
{
this
.
productImage
=
productImage
;
}
}
\ No newline at end of file
/**
* 产品版面ID
*/
@Id
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_face_id"
,
nullable
=
false
)
private
BigDecimal
productFaceId
;
/**
* 产品版面图片
*/
@Column
(
name
=
"product_image"
,
nullable
=
true
,
length
=
512
)
private
String
productImage
;
public
BigDecimal
getProductFaceId
()
{
return
this
.
productFaceId
;
}
public
void
setProductFaceId
(
String
productFaceId
)
{
this
.
productFaceId
=
(
productFaceId
==
null
)
||
productFaceId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productFaceId
);
}
public
String
getProductImage
()
{
return
this
.
productImage
;
}
public
void
setProductImage
(
String
productImage
)
{
this
.
productImage
=
productImage
;
}
}
topsun/src/main/java/com/huigou/topsun/product/domain/ProductFaceColor.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
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
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author YourUserName
* 产品版面颜色
* @TableName product_face_color
*/
@Table
(
name
=
"product_face_color"
)
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"product_face_color"
)
public
class
ProductFaceColor
implements
Serializable
{
/**
* 产品颜色ID
*/
@Id
@Column
(
name
=
"product_face_color_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productFaceColorId
;
/**
* 产品版面ID
*/
@Column
(
name
=
"product_face_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productFaceId
;
/**
* 颜色ID
*/
@Column
(
name
=
"color_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
colorId
;
/**
* 覆盖率(单位%)
*/
@Column
(
name
=
"coverage_rate"
)
private
Double
coverageRate
;
/**
* 排序序号
*/
@Column
(
name
=
"sort_order"
)
private
Integer
sortOrder
;
public
BigDecimal
getProductFaceColorId
()
{
return
productFaceColorId
;
}
public
void
setProductFaceColorId
(
String
productFaceColorId
)
{
this
.
productFaceColorId
=
(
productFaceColorId
!=
null
)
?
new
BigDecimal
(
productFaceColorId
)
:
null
;
}
public
BigDecimal
getProductFaceId
()
{
return
productFaceId
;
}
public
void
setProductFaceId
(
String
productFaceId
)
{
this
.
productFaceId
=
(
productFaceId
!=
null
)
?
new
BigDecimal
(
productFaceId
)
:
null
;
}
public
BigDecimal
getColorId
()
{
return
colorId
;
}
public
void
setColorId
(
String
colorId
)
{
this
.
colorId
=
(
colorId
!=
null
)
?
new
BigDecimal
(
colorId
)
:
null
;
}
public
Double
getCoverageRate
()
{
return
coverageRate
;
}
public
void
setCoverageRate
(
Double
coverageRate
)
{
this
.
coverageRate
=
coverageRate
;
}
public
Integer
getSortOrder
()
{
return
sortOrder
;
}
public
void
setSortOrder
(
Integer
sortOrder
)
{
this
.
sortOrder
=
sortOrder
;
}
}
\ No newline at end of file
/**
* 产品颜色ID
*/
@Id
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_face_color_id"
,
nullable
=
false
)
private
BigDecimal
productFaceColorId
;
/**
* 产品版面ID
*/
@Column
(
name
=
"product_face_id"
,
nullable
=
true
,
length
=
32
)
private
String
productFaceId
;
/**
* 颜色ID
*/
@Column
(
name
=
"color_id"
,
nullable
=
true
,
length
=
32
)
private
String
colorId
;
/**
* 覆盖率(单位%)
*/
@Column
(
name
=
"coverage_rate"
,
nullable
=
true
)
private
Double
coverageRate
;
/**
* 排序序号
*/
@Column
(
name
=
"sort_order"
,
nullable
=
true
)
private
Integer
sortOrder
;
public
BigDecimal
getProductFaceColorId
()
{
return
this
.
productFaceColorId
;
}
public
void
setProductFaceColorId
(
String
productFaceColorId
)
{
this
.
productFaceColorId
=
(
productFaceColorId
==
null
)
||
productFaceColorId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productFaceColorId
);
}
public
String
getProductFaceId
()
{
return
this
.
productFaceId
;
}
public
void
setProductFaceId
(
String
productFaceId
)
{
this
.
productFaceId
=
productFaceId
;
}
public
String
getColorId
()
{
return
this
.
colorId
;
}
public
void
setColorId
(
String
colorId
)
{
this
.
colorId
=
colorId
;
}
public
Double
getCoverageRate
()
{
return
this
.
coverageRate
;
}
public
void
setCoverageRate
(
Double
coverageRate
)
{
this
.
coverageRate
=
coverageRate
;
}
public
Integer
getSortOrder
()
{
return
this
.
sortOrder
;
}
public
void
setSortOrder
(
Integer
sortOrder
)
{
this
.
sortOrder
=
sortOrder
;
}
}
topsun/src/main/java/com/huigou/topsun/product/domain/ProductLooked.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Objects
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
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.lang.builder.EqualsBuilder
;
import
org.apache.commons.lang.builder.HashCodeBuilder
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author
Tison
* @author
YourUserName
* 产品外观
*/
@Entity
@Table
(
name
=
"product_looked"
)
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"product_looked"
)
public
class
ProductLooked
implements
Serializable
{
/**
* 产品外观ID
*/
@Id
@Column
(
name
=
"product_looked_id"
,
nullable
=
false
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_looked_id"
,
nullable
=
false
)
private
BigDecimal
productLookedId
;
/**
* 产品ID
*/
@Column
(
name
=
"product_id"
,
nullable
=
true
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_id"
,
nullable
=
true
)
private
BigDecimal
productId
;
/**
...
...
@@ -160,36 +161,33 @@ public class ProductLooked implements Serializable {
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
ProductLooked
looked
=
(
ProductLooked
)
o
;
return
Objects
.
equals
(
productLookedId
,
looked
.
productLookedId
)
&&
Objects
.
equals
(
productId
,
looked
.
productId
)
&&
Objects
.
equals
(
productLength
,
looked
.
productLength
)
&&
Objects
.
equals
(
productWidth
,
looked
.
productWidth
)
&&
Objects
.
equals
(
productHeight
,
looked
.
productHeight
)
&&
Objects
.
equals
(
productThick
,
looked
.
productThick
)
&&
Objects
.
equals
(
productWeight
,
looked
.
productWeight
)
&&
Objects
.
equals
(
productAngleType
,
looked
.
productAngleType
)
&&
Objects
.
equals
(
productAngle
,
looked
.
productAngle
)
&&
Objects
.
equals
(
productAperture
,
looked
.
productAperture
)
&&
Objects
.
equals
(
productSingleLayer
,
looked
.
productSingleLayer
)
&&
Objects
.
equals
(
productSingleWeight
,
looked
.
productSingleWeight
)
&&
Objects
.
equals
(
productLayerNum
,
looked
.
productLayerNum
)
&&
Objects
.
equals
(
productMould
,
looked
.
productMould
)
&&
Objects
.
equals
(
productCoding
,
looked
.
productCoding
)
&&
Objects
.
equals
(
productSysCertification
,
looked
.
productSysCertification
)
&&
Objects
.
equals
(
storeName
,
looked
.
storeName
)
&&
Objects
.
equals
(
productBuyUnit
,
looked
.
productBuyUnit
)
&&
Objects
.
equals
(
productShape
,
looked
.
productShape
)
&&
Objects
.
equals
(
prodcutShapeSize
,
looked
.
prodcutShapeSize
)
&&
Objects
.
equals
(
purchaseConversionValue
,
looked
.
purchaseConversionValue
)
&&
Objects
.
equals
(
coefficient
,
looked
.
coefficient
);
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
ProductLooked
that
=
(
ProductLooked
)
o
;
return
new
EqualsBuilder
().
append
(
productLookedId
,
that
.
productLookedId
).
append
(
productId
,
that
.
productId
).
append
(
productLength
,
that
.
productLength
).
append
(
productWidth
,
that
.
productWidth
).
append
(
productHeight
,
that
.
productHeight
).
append
(
productThick
,
that
.
productThick
).
append
(
productWeight
,
that
.
productWeight
).
append
(
productAngleType
,
that
.
productAngleType
).
append
(
productAngle
,
that
.
productAngle
).
append
(
productAperture
,
that
.
productAperture
).
append
(
productSingleLayer
,
that
.
productSingleLayer
).
append
(
productSingleWeight
,
that
.
productSingleWeight
).
append
(
productLayerNum
,
that
.
productLayerNum
).
append
(
productMould
,
that
.
productMould
).
append
(
productCoding
,
that
.
productCoding
).
append
(
productSysCertification
,
that
.
productSysCertification
).
append
(
storeName
,
that
.
storeName
).
append
(
productBuyUnit
,
that
.
productBuyUnit
).
append
(
productShape
,
that
.
productShape
).
append
(
prodcutShapeSize
,
that
.
prodcutShapeSize
).
append
(
purchaseConversionValue
,
that
.
purchaseConversionValue
).
append
(
coefficient
,
that
.
coefficient
).
isEquals
(
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
productLookedId
,
productId
,
productLength
,
productWidth
,
productHeight
,
productThick
,
productWeight
,
productAngleType
,
productAngle
,
productAperture
,
productSingleLayer
,
productSingleWeight
,
productLayerNum
,
productMould
,
productCoding
,
productSysCertification
,
storeName
,
productBuyUnit
,
productShape
,
prodcutShapeSize
,
purchaseConversionValue
,
coefficient
);
return
new
HashCodeBuilder
(
17
,
37
).
append
(
productLookedId
).
append
(
productId
).
append
(
productLength
).
append
(
productWidth
).
append
(
productHeight
).
append
(
productThick
).
append
(
productWeight
).
append
(
productAngleType
).
append
(
productAngle
).
append
(
productAperture
).
append
(
productSingleLayer
).
append
(
productSingleWeight
).
append
(
productLayerNum
).
append
(
productMould
).
append
(
productCoding
).
append
(
productSysCertification
).
append
(
storeName
).
append
(
productBuyUnit
).
append
(
productShape
).
append
(
prodcutShapeSize
).
append
(
purchaseConversionValue
).
append
(
coefficient
).
toHashCode
(
);
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
)
.
toString
();
public
BigDecimal
getProductLookedId
()
{
return
this
.
productLookedId
;
}
public
BigDecimal
getProductLookedId
()
{
return
productLookedId
;
}
public
void
setProductLookedId
(
String
productLookedId
)
{
this
.
productLookedId
=
(
productLookedId
!=
null
)
?
new
BigDecimal
(
productLookedId
)
:
null
;
public
void
setProductLookedId
(
String
productLookedId
)
{
this
.
productLookedId
=
(
productLookedId
==
null
)
||
productLookedId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productLookedId
);
}
public
BigDecimal
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
public
BigDecimal
getProductId
()
{
return
this
.
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
==
null
)
||
productId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productId
);
}
public
Double
getProductLength
()
{
return
this
.
productLength
;
}
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductLoss.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
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
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author YourUserName
* 产品loss配置
* @TableName product_loss
*/
@Table
(
name
=
"product_loss"
)
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"product_loss"
)
public
class
ProductLoss
implements
Serializable
{
/**
* 产品lossID
*/
@Id
@Column
(
name
=
"product_loss_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productLossId
;
/**
* 产品ID
*/
@Column
(
name
=
"product_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productId
;
/**
* 产品最大loss数量
*/
@Column
(
name
=
"product_loss_max"
)
private
Integer
productLossMax
;
/**
* loss比率(单位%)
*/
@Column
(
name
=
"product_loss_rate"
)
private
Double
productLossRate
;
/**
* 冗余量
*/
@Column
(
name
=
"product_loss_redundance"
)
private
Double
productLossRedundance
;
/**
* 备注信息
*/
@Column
(
name
=
"product_loss_remark"
)
private
String
productLossRemark
;
/**
* 客户名称
*/
@Column
(
name
=
"customer_name"
)
private
String
customerName
;
public
BigDecimal
getProductLossId
()
{
return
productLossId
;
}
public
void
setProductLossId
(
String
productLossId
)
{
this
.
productLossId
=
(
productLossId
!=
null
)
?
new
BigDecimal
(
productLossId
)
:
null
;
}
public
BigDecimal
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
}
public
Integer
getProductLossMax
()
{
return
productLossMax
;
}
public
void
setProductLossMax
(
Integer
productLossMax
)
{
this
.
productLossMax
=
productLossMax
;
}
public
Double
getProductLossRate
()
{
return
productLossRate
;
}
public
void
setProductLossRate
(
Double
productLossRate
)
{
this
.
productLossRate
=
productLossRate
;
}
public
Double
getProductLossRedundance
()
{
return
productLossRedundance
;
}
public
void
setProductLossRedundance
(
Double
productLossRedundance
)
{
this
.
productLossRedundance
=
productLossRedundance
;
}
public
String
getProductLossRemark
()
{
return
productLossRemark
;
}
public
void
setProductLossRemark
(
String
productLossRemark
)
{
this
.
productLossRemark
=
productLossRemark
;
}
public
String
getCustomerName
()
{
return
customerName
;
}
public
void
setCustomerName
(
String
customerName
)
{
this
.
customerName
=
customerName
;
}
}
\ No newline at end of file
/**
* 产品lossID
*/
@Id
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_loss_id"
,
nullable
=
false
)
private
BigDecimal
productLossId
;
/**
* 产品ID
*/
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_id"
,
nullable
=
true
)
private
BigDecimal
productId
;
/**
* 产品最大loss数量
*/
@Column
(
name
=
"product_loss_max"
,
nullable
=
true
)
private
Integer
productLossMax
;
/**
* loss比率(单位%)
*/
@Column
(
name
=
"product_loss_rate"
,
nullable
=
true
)
private
Double
productLossRate
;
/**
* 冗余量
*/
@Column
(
name
=
"product_loss_redundance"
,
nullable
=
true
)
private
Double
productLossRedundance
;
/**
* 备注信息
*/
@Column
(
name
=
"product_loss_remark"
,
nullable
=
true
,
length
=
512
)
private
String
productLossRemark
;
/**
* 客户名称
*/
@Column
(
name
=
"customer_name"
,
nullable
=
true
,
length
=
32
)
private
String
customerName
;
public
BigDecimal
getProductLossId
()
{
return
this
.
productLossId
;
}
public
void
setProductLossId
(
String
productLossId
)
{
this
.
productLossId
=
(
productLossId
==
null
)
||
productLossId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productLossId
);
}
public
BigDecimal
getProductId
()
{
return
this
.
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
==
null
)
||
productId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productId
);
}
public
Integer
getProductLossMax
()
{
return
this
.
productLossMax
;
}
public
void
setProductLossMax
(
Integer
productLossMax
)
{
this
.
productLossMax
=
productLossMax
;
}
public
Double
getProductLossRate
()
{
return
this
.
productLossRate
;
}
public
void
setProductLossRate
(
Double
productLossRate
)
{
this
.
productLossRate
=
productLossRate
;
}
public
Double
getProductLossRedundance
()
{
return
this
.
productLossRedundance
;
}
public
void
setProductLossRedundance
(
Double
productLossRedundance
)
{
this
.
productLossRedundance
=
productLossRedundance
;
}
public
String
getProductLossRemark
()
{
return
this
.
productLossRemark
;
}
public
void
setProductLossRemark
(
String
productLossRemark
)
{
this
.
productLossRemark
=
productLossRemark
;
}
public
String
getCustomerName
()
{
return
this
.
customerName
;
}
public
void
setCustomerName
(
String
customerName
)
{
this
.
customerName
=
customerName
;
}
}
topsun/src/main/java/com/huigou/topsun/product/domain/ProductMaterial.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
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
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author YourUserName
* 产品物料组成
* @TableName product_material
*/
@Table
(
name
=
"product_material"
)
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"product_material"
)
public
class
ProductMaterial
implements
Serializable
{
/**
* 产品物料组成ID
*/
@Id
@Column
(
name
=
"product_material_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productMaterialId
;
/**
* 产品ID
*/
@Column
(
name
=
"product_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productId
;
/**
* 物料ID
*/
@Column
(
name
=
"material_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
materialId
;
/**
* 物料数量
*/
@Column
(
name
=
"material_number"
)
private
Integer
materialNumber
;
/**
* BOM版本
*/
@Column
(
name
=
"bom_version"
)
private
String
bomVersion
;
/**
* 产品BOM类型(bom_type)
*/
@Column
(
name
=
"bom_type"
)
private
String
bomType
;
public
BigDecimal
getProductMaterialId
()
{
return
productMaterialId
;
}
public
void
setProductMaterialId
(
String
productMaterialId
)
{
this
.
productMaterialId
=
(
productMaterialId
!=
null
)
?
new
BigDecimal
(
productMaterialId
)
:
null
;
}
public
BigDecimal
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
}
public
BigDecimal
getMaterialId
()
{
return
materialId
;
}
public
void
setMaterialId
(
String
materialId
)
{
this
.
materialId
=
(
materialId
!=
null
)
?
new
BigDecimal
(
materialId
)
:
null
;
}
public
Integer
getMaterialNumber
()
{
return
materialNumber
;
}
public
void
setMaterialNumber
(
Integer
materialNumber
)
{
this
.
materialNumber
=
materialNumber
;
}
public
String
getBomVersion
()
{
return
bomVersion
;
}
public
void
setBomVersion
(
String
bomVersion
)
{
this
.
bomVersion
=
bomVersion
;
}
public
String
getBomType
()
{
return
bomType
;
}
public
void
setBomType
(
String
bomType
)
{
this
.
bomType
=
bomType
;
}
}
\ No newline at end of file
/**
* 产品物料组成ID
*/
@Id
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_material_id"
,
nullable
=
false
)
private
BigDecimal
productMaterialId
;
/**
* 产品ID
*/
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_id"
,
nullable
=
true
)
private
BigDecimal
productId
;
/**
* 物料ID
*/
@Column
(
name
=
"material_id"
,
nullable
=
true
,
length
=
32
)
private
String
materialId
;
/**
* 物料数量
*/
@Column
(
name
=
"material_number"
,
nullable
=
true
)
private
Integer
materialNumber
;
/**
* BOM版本
*/
@Column
(
name
=
"bom_version"
,
nullable
=
true
,
length
=
128
)
private
String
bomVersion
;
/**
* 产品BOM类型(bom_type)
*/
@Column
(
name
=
"bom_type"
,
nullable
=
true
,
length
=
32
)
private
String
bomType
;
public
BigDecimal
getProductMaterialId
()
{
return
this
.
productMaterialId
;
}
public
void
setProductMaterialId
(
String
productMaterialId
)
{
this
.
productMaterialId
=
(
productMaterialId
==
null
)
||
productMaterialId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productMaterialId
);
}
public
BigDecimal
getProductId
()
{
return
this
.
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
==
null
)
||
productId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productId
);
}
public
String
getMaterialId
()
{
return
this
.
materialId
;
}
public
void
setMaterialId
(
String
materialId
)
{
this
.
materialId
=
materialId
;
}
public
Integer
getMaterialNumber
()
{
return
this
.
materialNumber
;
}
public
void
setMaterialNumber
(
Integer
materialNumber
)
{
this
.
materialNumber
=
materialNumber
;
}
public
String
getBomVersion
()
{
return
this
.
bomVersion
;
}
public
void
setBomVersion
(
String
bomVersion
)
{
this
.
bomVersion
=
bomVersion
;
}
public
String
getBomType
()
{
return
this
.
bomType
;
}
public
void
setBomType
(
String
bomType
)
{
this
.
bomType
=
bomType
;
}
}
topsun/src/main/java/com/huigou/topsun/product/domain/ProductProcess.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Objects
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
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
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author
Tison
* @author
YourUserName
* 产品工艺工序
*/
@Entity
@Table
(
name
=
"product_process"
)
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"product_process"
)
public
class
ProductProcess
implements
Serializable
{
/**
* 产品工艺工序id
*/
@Id
@Column
(
name
=
"product_process_id"
,
nullable
=
false
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_process_id"
,
nullable
=
false
)
private
BigDecimal
productProcessId
;
/**
* 工艺id
*/
@Column
(
name
=
"product_technology_id"
,
nullable
=
true
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_technology_id"
,
nullable
=
true
)
private
BigDecimal
productTechnologyId
;
/**
...
...
@@ -80,42 +80,23 @@ public class ProductProcess implements Serializable {
*/
@Column
(
name
=
"signed"
,
nullable
=
true
,
length
=
255
)
private
String
signed
;
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
ProductProcess
that
=
(
ProductProcess
)
o
;
return
Objects
.
equals
(
productProcessId
,
that
.
productProcessId
)
&&
Objects
.
equals
(
productTechnologyId
,
that
.
productTechnologyId
)
&&
Objects
.
equals
(
productionSequence
,
that
.
productionSequence
)
&&
Objects
.
equals
(
processName
,
that
.
processName
)
&&
Objects
.
equals
(
isScheduleProcess
,
that
.
isScheduleProcess
)
&&
Objects
.
equals
(
isFinishedProcess
,
that
.
isFinishedProcess
)
&&
Objects
.
equals
(
processRemark
,
that
.
processRemark
)
&&
Objects
.
equals
(
finishedTime
,
that
.
finishedTime
)
&&
Objects
.
equals
(
signed
,
that
.
signed
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
productProcessId
,
productTechnologyId
,
productionSequence
,
processName
,
isScheduleProcess
,
isFinishedProcess
,
processRemark
,
finishedTime
,
signed
);
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
)
.
toString
();
}
public
BigDecimal
getProductProcessId
()
{
return
productProcessId
;
return
this
.
productProcessId
;
}
public
void
setProductProcessId
(
String
productProcessId
)
{
this
.
productProcessId
=
(
productProcessId
!=
null
)
?
new
BigDecimal
(
productProcessId
)
:
null
;
public
void
setProductProcessId
(
String
productProcessId
)
{
this
.
productProcessId
=
(
productProcessId
==
null
)
||
productProcessId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productProcessId
)
;
}
public
BigDecimal
getProductTechnologyId
()
{
return
productTechnologyId
;
return
this
.
productTechnologyId
;
}
public
void
setProductTechnologyId
(
String
productTechnologyId
)
{
this
.
productTechnologyId
=
(
productTechnologyId
!=
null
)
?
new
BigDecimal
(
productTechnologyId
)
:
null
;
public
void
setProductTechnologyId
(
String
productTechnologyId
)
{
this
.
productTechnologyId
=
(
productTechnologyId
==
null
)
||
productTechnologyId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productTechnologyId
)
;
}
public
Integer
getProductionSequence
()
{
return
this
.
productionSequence
;
}
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductPublishedConf.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
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
org.apache.commons.lang.builder.EqualsBuilder
;
import
org.apache.commons.lang.builder.HashCodeBuilder
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author YourUserName
* 产品打样排版参数配置
* @TableName product_published_conf
*/
@Table
(
name
=
"product_published_conf"
)
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"product_published_conf"
)
public
class
ProductPublishedConf
implements
Serializable
{
/**
* 排版参数配置ID
*/
@Id
@Column
(
name
=
"product_published_conf_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productPublishedConfId
;
/**
* 产品ID
*/
@Column
(
name
=
"product_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productId
;
/**
* 模数
*/
@Column
(
name
=
"modulus"
)
private
Integer
modulus
;
/**
* 行数
*/
@Column
(
name
=
"row_num"
)
private
Integer
rowNum
;
/**
* 列数
*/
@Column
(
name
=
"column_num"
)
private
Integer
columnNum
;
/**
* 搭版数
*/
@Column
(
name
=
"contact_num"
)
private
Integer
contactNum
;
/**
* 行双刀位(单位mm)
*/
@Column
(
name
=
"row_double_blade"
)
private
Double
rowDoubleBlade
;
/**
* 列双刀位(单位mm)
*/
@Column
(
name
=
"column_double_blade"
)
private
Double
columnDoubleBlade
;
/**
* 派工倍数
*/
@Column
(
name
=
"dispatch_multiple"
)
private
Integer
dispatchMultiple
;
/**
* 印张长度(单位cm)
*/
@Column
(
name
=
"sheet_length"
)
private
Double
sheetLength
;
/**
* 印张宽度(单位cm)
*/
@Column
(
name
=
"sheet_width"
)
private
Double
sheetWidth
;
/**
* 产品印张设置(product_sheet_conf)
*/
@Column
(
name
=
"product_sheet_conf"
)
private
String
productSheetConf
;
public
BigDecimal
getProductPublishedConfId
()
{
return
productPublishedConfId
;
}
public
void
setProductPublishedConfId
(
String
productPublishedConfId
)
{
this
.
productPublishedConfId
=
(
productPublishedConfId
!=
null
)
?
new
BigDecimal
(
productPublishedConfId
)
:
null
;
}
public
BigDecimal
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
}
public
Integer
getModulus
()
{
return
modulus
;
}
public
void
setModulus
(
Integer
modulus
)
{
this
.
modulus
=
modulus
;
}
public
Integer
getRowNum
()
{
return
rowNum
;
}
public
void
setRowNum
(
Integer
rowNum
)
{
this
.
rowNum
=
rowNum
;
}
public
Integer
getColumnNum
()
{
return
columnNum
;
}
public
void
setColumnNum
(
Integer
columnNum
)
{
this
.
columnNum
=
columnNum
;
}
public
Integer
getContactNum
()
{
return
contactNum
;
}
public
void
setContactNum
(
Integer
contactNum
)
{
this
.
contactNum
=
contactNum
;
}
public
Double
getRowDoubleBlade
()
{
return
rowDoubleBlade
;
}
public
void
setRowDoubleBlade
(
Double
rowDoubleBlade
)
{
this
.
rowDoubleBlade
=
rowDoubleBlade
;
}
public
Double
getColumnDoubleBlade
()
{
return
columnDoubleBlade
;
}
public
void
setColumnDoubleBlade
(
Double
columnDoubleBlade
)
{
this
.
columnDoubleBlade
=
columnDoubleBlade
;
}
public
Integer
getDispatchMultiple
()
{
return
dispatchMultiple
;
}
public
void
setDispatchMultiple
(
Integer
dispatchMultiple
)
{
this
.
dispatchMultiple
=
dispatchMultiple
;
}
public
Double
getSheetLength
()
{
return
sheetLength
;
}
public
void
setSheetLength
(
Double
sheetLength
)
{
this
.
sheetLength
=
sheetLength
;
}
public
Double
getSheetWidth
()
{
return
sheetWidth
;
}
public
void
setSheetWidth
(
Double
sheetWidth
)
{
this
.
sheetWidth
=
sheetWidth
;
}
public
String
getProductSheetConf
()
{
return
productSheetConf
;
}
public
void
setProductSheetConf
(
String
productSheetConf
)
{
this
.
productSheetConf
=
productSheetConf
;
}
}
\ No newline at end of file
/**
* 排版参数配置ID
*/
@Id
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_published_conf_id"
,
nullable
=
false
)
private
BigDecimal
productPublishedConfId
;
/**
* 产品ID
*/
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_id"
,
nullable
=
true
)
private
BigDecimal
productId
;
/**
* 模数
*/
@Column
(
name
=
"modulus"
,
nullable
=
true
)
private
Integer
modulus
;
/**
* 行数
*/
@Column
(
name
=
"row_num"
,
nullable
=
true
)
private
Integer
rowNum
;
/**
* 列数
*/
@Column
(
name
=
"column_num"
,
nullable
=
true
)
private
Integer
columnNum
;
/**
* 搭版数
*/
@Column
(
name
=
"contact_num"
,
nullable
=
true
)
private
Integer
contactNum
;
/**
* 行双刀位(单位mm)
*/
@Column
(
name
=
"row_double_blade"
,
nullable
=
true
)
private
Double
rowDoubleBlade
;
/**
* 列双刀位(单位mm)
*/
@Column
(
name
=
"column_double_blade"
,
nullable
=
true
)
private
Double
columnDoubleBlade
;
/**
* 派工倍数
*/
@Column
(
name
=
"dispatch_multiple"
,
nullable
=
true
)
private
Integer
dispatchMultiple
;
/**
* 印张长度(单位cm)
*/
@Column
(
name
=
"sheet_length"
,
nullable
=
true
)
private
Double
sheetLength
;
/**
* 印张宽度(单位cm)
*/
@Column
(
name
=
"sheet_width"
,
nullable
=
true
)
private
Double
sheetWidth
;
/**
* 产品印张设置(product_sheet_conf)
*/
@Column
(
name
=
"product_sheet_conf"
,
nullable
=
true
,
length
=
32
)
private
String
productSheetConf
;
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
ProductPublishedConf
that
=
(
ProductPublishedConf
)
o
;
return
new
EqualsBuilder
().
append
(
productPublishedConfId
,
that
.
productPublishedConfId
).
append
(
productId
,
that
.
productId
).
append
(
modulus
,
that
.
modulus
).
append
(
rowNum
,
that
.
rowNum
).
append
(
columnNum
,
that
.
columnNum
).
append
(
contactNum
,
that
.
contactNum
).
append
(
rowDoubleBlade
,
that
.
rowDoubleBlade
).
append
(
columnDoubleBlade
,
that
.
columnDoubleBlade
).
append
(
dispatchMultiple
,
that
.
dispatchMultiple
).
append
(
sheetLength
,
that
.
sheetLength
).
append
(
sheetWidth
,
that
.
sheetWidth
).
append
(
productSheetConf
,
that
.
productSheetConf
).
isEquals
();
}
@Override
public
int
hashCode
()
{
return
new
HashCodeBuilder
(
17
,
37
).
append
(
productPublishedConfId
).
append
(
productId
).
append
(
modulus
).
append
(
rowNum
).
append
(
columnNum
).
append
(
contactNum
).
append
(
rowDoubleBlade
).
append
(
columnDoubleBlade
).
append
(
dispatchMultiple
).
append
(
sheetLength
).
append
(
sheetWidth
).
append
(
productSheetConf
).
toHashCode
();
}
public
BigDecimal
getProductPublishedConfId
()
{
return
this
.
productPublishedConfId
;
}
public
void
setProductPublishedConfId
(
String
productPublishedConfId
)
{
this
.
productPublishedConfId
=
(
productPublishedConfId
==
null
)
||
productPublishedConfId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productPublishedConfId
);
}
public
BigDecimal
getProductId
()
{
return
this
.
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
==
null
)
||
productId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productId
);
}
public
Integer
getModulus
()
{
return
this
.
modulus
;
}
public
void
setModulus
(
Integer
modulus
)
{
this
.
modulus
=
modulus
;
}
public
Integer
getRowNum
()
{
return
this
.
rowNum
;
}
public
void
setRowNum
(
Integer
rowNum
)
{
this
.
rowNum
=
rowNum
;
}
public
Integer
getColumnNum
()
{
return
this
.
columnNum
;
}
public
void
setColumnNum
(
Integer
columnNum
)
{
this
.
columnNum
=
columnNum
;
}
public
Integer
getContactNum
()
{
return
this
.
contactNum
;
}
public
void
setContactNum
(
Integer
contactNum
)
{
this
.
contactNum
=
contactNum
;
}
public
Double
getRowDoubleBlade
()
{
return
this
.
rowDoubleBlade
;
}
public
void
setRowDoubleBlade
(
Double
rowDoubleBlade
)
{
this
.
rowDoubleBlade
=
rowDoubleBlade
;
}
public
Double
getColumnDoubleBlade
()
{
return
this
.
columnDoubleBlade
;
}
public
void
setColumnDoubleBlade
(
Double
columnDoubleBlade
)
{
this
.
columnDoubleBlade
=
columnDoubleBlade
;
}
public
Integer
getDispatchMultiple
()
{
return
this
.
dispatchMultiple
;
}
public
void
setDispatchMultiple
(
Integer
dispatchMultiple
)
{
this
.
dispatchMultiple
=
dispatchMultiple
;
}
public
Double
getSheetLength
()
{
return
this
.
sheetLength
;
}
public
void
setSheetLength
(
Double
sheetLength
)
{
this
.
sheetLength
=
sheetLength
;
}
public
Double
getSheetWidth
()
{
return
this
.
sheetWidth
;
}
public
void
setSheetWidth
(
Double
sheetWidth
)
{
this
.
sheetWidth
=
sheetWidth
;
}
public
String
getProductSheetConf
()
{
return
this
.
productSheetConf
;
}
public
void
setProductSheetConf
(
String
productSheetConf
)
{
this
.
productSheetConf
=
productSheetConf
;
}
}
topsun/src/main/java/com/huigou/topsun/product/domain/ProductRiskDescription.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Objects
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
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
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author
Tison
* @author
YourUserName
* 产品风险描述
*/
@Entity
@Table
(
name
=
"product_risk_description"
)
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"product_risk_description"
)
public
class
ProductRiskDescription
implements
Serializable
{
/**
* 产品风险描述id
*/
@Id
@Column
(
name
=
"product_risk_description_id"
,
nullable
=
false
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_risk_description_id"
,
nullable
=
false
)
private
BigDecimal
productRiskDescriptionId
;
/**
* 产品id
*/
@Column
(
name
=
"product_id"
,
nullable
=
true
,
length
=
32
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_id"
,
nullable
=
true
)
private
BigDecimal
productId
;
/**
...
...
@@ -55,42 +54,23 @@ public class ProductRiskDescription implements Serializable {
*/
@Column
(
name
=
"product_risk_level"
,
nullable
=
true
,
length
=
32
)
private
String
productRiskLevel
;
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
ProductRiskDescription
that
=
(
ProductRiskDescription
)
o
;
return
Objects
.
equals
(
productRiskDescriptionId
,
that
.
productRiskDescriptionId
)
&&
Objects
.
equals
(
productId
,
that
.
productId
)
&&
Objects
.
equals
(
sequence
,
that
.
sequence
)
&&
Objects
.
equals
(
productRiskDescription
,
that
.
productRiskDescription
)
&&
Objects
.
equals
(
productRiskLevel
,
that
.
productRiskLevel
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
productRiskDescriptionId
,
productId
,
sequence
,
productRiskDescription
,
productRiskLevel
);
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
)
.
toString
();
}
public
BigDecimal
getProductRiskDescriptionId
()
{
return
productRiskDescriptionId
;
return
this
.
productRiskDescriptionId
;
}
public
void
setProductRiskDescriptionId
(
String
productRiskDescriptionId
)
{
this
.
productRiskDescriptionId
=
(
productRiskDescriptionId
!=
null
)
?
new
BigDecimal
(
productRiskDescriptionId
)
:
null
;
public
void
setProductRiskDescriptionId
(
String
productRiskDescriptionId
)
{
this
.
productRiskDescriptionId
=
(
productRiskDescriptionId
==
null
)
||
productRiskDescriptionId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productRiskDescriptionId
)
;
}
public
BigDecimal
getProductId
()
{
return
productId
;
return
this
.
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
==
null
)
||
productId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productId
)
;
}
public
Integer
getSequence
()
{
return
this
.
sequence
;
}
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductTechnology.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Objects
;
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
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang.builder.EqualsBuilder
;
import
org.apache.commons.lang.builder.HashCodeBuilder
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author
Tison
* @author
YourUserName
* 产品工艺
*/
@Entity
@Table
(
name
=
"product_technology"
)
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"product_technology"
)
public
class
ProductTechnology
implements
Serializable
{
/**
* 产品工艺id
*/
@Id
@Column
(
name
=
"product_technology_id"
,
nullable
=
false
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_technology_id"
,
nullable
=
false
)
private
BigDecimal
productTechnologyId
;
/**
* 产品id
*/
@Column
(
name
=
"product_id"
,
nullable
=
true
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_id"
,
nullable
=
true
)
private
BigDecimal
productId
;
/**
...
...
@@ -201,37 +203,33 @@ public class ProductTechnology implements Serializable {
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
ProductTechnology
that
=
(
ProductTechnology
)
o
;
return
Objects
.
equals
(
productTechnologyId
,
that
.
productTechnologyId
)
&&
Objects
.
equals
(
productId
,
that
.
productId
)
&&
Objects
.
equals
(
productTechnologyName
,
that
.
productTechnologyName
)
&&
Objects
.
equals
(
productProperty
,
that
.
productProperty
)
&&
Objects
.
equals
(
productTechnologyRequire
,
that
.
productTechnologyRequire
)
&&
Objects
.
equals
(
beerPlateNo
,
that
.
beerPlateNo
)
&&
Objects
.
equals
(
goldPlateNo
,
that
.
goldPlateNo
)
&&
Objects
.
equals
(
dieCutPlateNo
,
that
.
dieCutPlateNo
)
&&
Objects
.
equals
(
copperpResinLateNo
,
that
.
copperpResinLateNo
)
&&
Objects
.
equals
(
netPlateNo
,
that
.
netPlateNo
)
&&
Objects
.
equals
(
packageStyle
,
that
.
packageStyle
)
&&
Objects
.
equals
(
physicalTest
,
that
.
physicalTest
)
&&
Objects
.
equals
(
chemistryTest
,
that
.
chemistryTest
)
&&
Objects
.
equals
(
productMaterial
,
that
.
productMaterial
)
&&
Objects
.
equals
(
plasticBagStructure
,
that
.
plasticBagStructure
)
&&
Objects
.
equals
(
copperpNo
,
that
.
copperpNo
)
&&
Objects
.
equals
(
colorNoCard
,
that
.
colorNoCard
)
&&
Objects
.
equals
(
plateNo
,
that
.
plateNo
)
&&
Objects
.
equals
(
surfaceTreatment
,
that
.
surfaceTreatment
)
&&
Objects
.
equals
(
productDescribe
,
that
.
productDescribe
)
&&
Objects
.
equals
(
productFront
,
that
.
productFront
)
&&
Objects
.
equals
(
productOpposite
,
that
.
productOpposite
)
&&
Objects
.
equals
(
riskDescription
,
that
.
riskDescription
)
&&
Objects
.
equals
(
haveDrawing
,
that
.
haveDrawing
)
&&
Objects
.
equals
(
isShoePicture
,
that
.
isShoePicture
)
&&
Objects
.
equals
(
beerPlateNum
,
that
.
beerPlateNum
)
&&
Objects
.
equals
(
dieBoardNum
,
that
.
dieBoardNum
)
&&
Objects
.
equals
(
cutDirection
,
that
.
cutDirection
)
&&
Objects
.
equals
(
customsCommodityCode
,
that
.
customsCommodityCode
);
return
new
EqualsBuilder
().
append
(
productTechnologyId
,
that
.
productTechnologyId
).
append
(
productId
,
that
.
productId
).
append
(
productTechnologyName
,
that
.
productTechnologyName
).
append
(
productProperty
,
that
.
productProperty
).
append
(
productTechnologyRequire
,
that
.
productTechnologyRequire
).
append
(
beerPlateNo
,
that
.
beerPlateNo
).
append
(
goldPlateNo
,
that
.
goldPlateNo
).
append
(
dieCutPlateNo
,
that
.
dieCutPlateNo
).
append
(
copperpResinLateNo
,
that
.
copperpResinLateNo
).
append
(
netPlateNo
,
that
.
netPlateNo
).
append
(
packageStyle
,
that
.
packageStyle
).
append
(
physicalTest
,
that
.
physicalTest
).
append
(
chemistryTest
,
that
.
chemistryTest
).
append
(
productMaterial
,
that
.
productMaterial
).
append
(
plasticBagStructure
,
that
.
plasticBagStructure
).
append
(
copperpNo
,
that
.
copperpNo
).
append
(
colorNoCard
,
that
.
colorNoCard
).
append
(
plateNo
,
that
.
plateNo
).
append
(
surfaceTreatment
,
that
.
surfaceTreatment
).
append
(
productDescribe
,
that
.
productDescribe
).
append
(
productFront
,
that
.
productFront
).
append
(
productOpposite
,
that
.
productOpposite
).
append
(
riskDescription
,
that
.
riskDescription
).
append
(
haveDrawing
,
that
.
haveDrawing
).
append
(
isShoePicture
,
that
.
isShoePicture
).
append
(
beerPlateNum
,
that
.
beerPlateNum
).
append
(
dieBoardNum
,
that
.
dieBoardNum
).
append
(
cutDirection
,
that
.
cutDirection
).
append
(
customsCommodityCode
,
that
.
customsCommodityCode
).
isEquals
(
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
productTechnologyId
,
productId
,
productTechnologyName
,
productProperty
,
productTechnologyRequire
,
beerPlateNo
,
goldPlateNo
,
dieCutPlateNo
,
copperpResinLateNo
,
netPlateNo
,
packageStyle
,
physicalTest
,
chemistryTest
,
productMaterial
,
plasticBagStructure
,
copperpNo
,
colorNoCard
,
plateNo
,
surfaceTreatment
,
productDescribe
,
productFront
,
productOpposite
,
riskDescription
,
haveDrawing
,
isShoePicture
,
beerPlateNum
,
dieBoardNum
,
cutDirection
,
customsCommodityCode
);
return
new
HashCodeBuilder
(
17
,
37
).
append
(
productTechnologyId
).
append
(
productId
).
append
(
productTechnologyName
).
append
(
productProperty
).
append
(
productTechnologyRequire
).
append
(
beerPlateNo
).
append
(
goldPlateNo
).
append
(
dieCutPlateNo
).
append
(
copperpResinLateNo
).
append
(
netPlateNo
).
append
(
packageStyle
).
append
(
physicalTest
).
append
(
chemistryTest
).
append
(
productMaterial
).
append
(
plasticBagStructure
).
append
(
copperpNo
).
append
(
colorNoCard
).
append
(
plateNo
).
append
(
surfaceTreatment
).
append
(
productDescribe
).
append
(
productFront
).
append
(
productOpposite
).
append
(
riskDescription
).
append
(
haveDrawing
).
append
(
isShoePicture
).
append
(
beerPlateNum
).
append
(
dieBoardNum
).
append
(
cutDirection
).
append
(
customsCommodityCode
).
toHashCode
(
);
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
)
.
toString
();
public
BigDecimal
getProductTechnologyId
()
{
return
this
.
productTechnologyId
;
}
public
BigDecimal
getProductTechnologyId
()
{
return
productTechnologyId
;
}
public
void
setProductTechnologyId
(
String
productTechnologyId
)
{
this
.
productTechnologyId
=
(
productTechnologyId
!=
null
)
?
new
BigDecimal
(
productTechnologyId
)
:
null
;
public
void
setProductTechnologyId
(
String
productTechnologyId
)
{
this
.
productTechnologyId
=
(
productTechnologyId
==
null
)
||
productTechnologyId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productTechnologyId
);
}
public
BigDecimal
getProductId
()
{
return
productId
;
return
this
.
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
==
null
)
||
productId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productId
)
;
}
public
String
getProductTechnologyName
()
{
return
this
.
productTechnologyName
;
}
...
...
topsun/src/main/java/com/huigou/topsun/product/domain/ProductTypesetConf.java
View file @
c556c675
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
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
org.apache.commons.lang.builder.EqualsBuilder
;
import
org.apache.commons.lang.builder.HashCodeBuilder
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* @author YourUserName
* 产品排版配置ID
* @TableName product_typeset_conf
*/
@Table
(
name
=
"product_typeset_conf"
)
@Entity
@JsonInclude
(
JsonInclude
.
Include
.
ALWAYS
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@Entity
@Table
(
name
=
"product_typeset_conf"
)
public
class
ProductTypesetConf
implements
Serializable
{
/**
* 产品排版配置ID
*/
@Id
@Column
(
name
=
"product_typeset_conf_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productTypesetConfId
;
/**
* 产品ID
*/
@Column
(
name
=
"product_id"
)
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
private
BigDecimal
productId
;
/**
* 印张长度(单位cm)
*/
private
Double
length
;
/**
* 印张宽度(单位cm)
*/
private
Double
width
;
/**
* 满排个数
*/
private
Integer
number
;
/**
* 损耗百分比(单位%)
*/
@Column
(
name
=
"loss_rate"
)
private
Double
lossRate
;
public
BigDecimal
getProductTypesetConfId
()
{
return
productTypesetConfId
;
}
public
void
setProductTypesetConfId
(
String
productTypesetConfId
)
{
this
.
productTypesetConfId
=
(
productTypesetConfId
!=
null
)
?
new
BigDecimal
(
productTypesetConfId
)
:
null
;
}
public
BigDecimal
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
!=
null
)
?
new
BigDecimal
(
productId
)
:
null
;
}
public
Double
getLength
()
{
return
length
;
}
public
void
setLength
(
Double
length
)
{
this
.
length
=
length
;
}
public
Double
getWidth
()
{
return
width
;
}
public
void
setWidth
(
Double
width
)
{
this
.
width
=
width
;
}
public
Integer
getNumber
()
{
return
number
;
}
public
void
setNumber
(
Integer
number
)
{
this
.
number
=
number
;
}
public
Double
getLossRate
()
{
return
lossRate
;
}
public
void
setLossRate
(
Double
lossRate
)
{
this
.
lossRate
=
lossRate
;
}
}
\ No newline at end of file
/**
* 产品排版配置ID
*/
@Id
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_typeset_conf_id"
,
nullable
=
false
)
private
BigDecimal
productTypesetConfId
;
/**
* 产品ID
*/
@JsonSerialize
(
using
=
NumberToStringSerializer
.
class
)
@Column
(
name
=
"product_id"
,
nullable
=
true
)
private
BigDecimal
productId
;
/**
* 印张长度(单位cm)
*/
@Column
(
name
=
"length"
,
nullable
=
true
)
private
Double
length
;
/**
* 印张宽度(单位cm)
*/
@Column
(
name
=
"width"
,
nullable
=
true
)
private
Double
width
;
/**
* 满排个数
*/
@Column
(
name
=
"number"
,
nullable
=
true
)
private
Integer
number
;
/**
* 损耗百分比(单位%)
*/
@Column
(
name
=
"loss_rate"
,
nullable
=
true
)
private
Double
lossRate
;
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
ProductTypesetConf
that
=
(
ProductTypesetConf
)
o
;
return
new
EqualsBuilder
().
append
(
productTypesetConfId
,
that
.
productTypesetConfId
).
append
(
productId
,
that
.
productId
).
append
(
length
,
that
.
length
).
append
(
width
,
that
.
width
).
append
(
number
,
that
.
number
).
append
(
lossRate
,
that
.
lossRate
).
isEquals
();
}
@Override
public
int
hashCode
()
{
return
new
HashCodeBuilder
(
17
,
37
).
append
(
productTypesetConfId
).
append
(
productId
).
append
(
length
).
append
(
width
).
append
(
number
).
append
(
lossRate
).
toHashCode
();
}
public
BigDecimal
getProductTypesetConfId
()
{
return
this
.
productTypesetConfId
;
}
public
void
setProductTypesetConfId
(
String
productTypesetConfId
)
{
this
.
productTypesetConfId
=
(
productTypesetConfId
==
null
)
||
productTypesetConfId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productTypesetConfId
);
}
public
BigDecimal
getProductId
()
{
return
this
.
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
(
productId
==
null
)
||
productId
.
isEmpty
()
?
null
:
new
BigDecimal
(
productId
);
}
public
Double
getLength
()
{
return
this
.
length
;
}
public
void
setLength
(
Double
length
)
{
this
.
length
=
length
;
}
public
Double
getWidth
()
{
return
this
.
width
;
}
public
void
setWidth
(
Double
width
)
{
this
.
width
=
width
;
}
public
Integer
getNumber
()
{
return
this
.
number
;
}
public
void
setNumber
(
Integer
number
)
{
this
.
number
=
number
;
}
public
Double
getLossRate
()
{
return
this
.
lossRate
;
}
public
void
setLossRate
(
Double
lossRate
)
{
this
.
lossRate
=
lossRate
;
}
}
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