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
4982d37e
Commit
4982d37e
authored
Dec 09, 2023
by
覃振观
👶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
23-12-9: 产品模块实体调整。
parent
c0f51d3f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1068 additions
and
0 deletions
+1068
-0
Product.java
...c/main/java/com/huigou/topsun/product/domain/Product.java
+348
-0
ProductProcess.java
...java/com/huigou/topsun/product/domain/ProductProcess.java
+166
-0
ProductRiskDescription.java
.../huigou/topsun/product/domain/ProductRiskDescription.java
+109
-0
ProductTechnology.java
...a/com/huigou/topsun/product/domain/ProductTechnology.java
+445
-0
No files found.
topsun/src/main/java/com/huigou/topsun/product/domain/Product.java
0 → 100644
View file @
4982d37e
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.util.Objects
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
/**
* @author Tison
* 产品
*/
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
@Entity
@Table
(
name
=
"product"
)
public
class
Product
implements
Serializable
{
/**
* 产品ID
*/
@Id
@Column
(
name
=
"product_id"
,
nullable
=
false
,
length
=
32
)
private
String
productId
;
/**
* 产品名称
*/
@Column
(
name
=
"product_name"
,
nullable
=
true
,
length
=
128
)
private
String
productName
;
/**
* 产品类别
*/
@Column
(
name
=
"product_category_id"
,
nullable
=
true
)
private
Long
productCategoryId
;
/**
* 产品状态(码表status)
*/
@Column
(
name
=
"product_status"
,
nullable
=
true
,
length
=
32
)
private
String
productStatus
;
/**
* 产品计量单位
*/
@Column
(
name
=
"product_unit"
,
nullable
=
true
,
length
=
32
)
private
String
productUnit
;
/**
* 样品编号
*/
@Column
(
name
=
"product_sample_code"
,
nullable
=
true
,
length
=
32
)
private
String
productSampleCode
;
/**
* 品牌名称
*/
@Column
(
name
=
"brand_name"
,
nullable
=
true
,
length
=
128
)
private
String
brandName
;
/**
* 产品类型(prodcut_type)
*/
@Column
(
name
=
"product_type"
,
nullable
=
true
,
length
=
32
)
private
String
productType
;
/**
* 产品编码
*/
@Column
(
name
=
"product_code"
,
nullable
=
true
,
length
=
255
)
private
String
productCode
;
/**
* 尺码组id
*/
@Column
(
name
=
"product_size_group_id"
,
nullable
=
true
,
length
=
32
)
private
String
productSizeGroupId
;
/**
* 是否为唯一码产品
*/
@Column
(
name
=
"is_only_code"
,
nullable
=
true
,
length
=
1
)
private
String
isOnlyCode
;
/**
* 是否不考虑形体配色
*/
@Column
(
name
=
"is_body_color"
,
nullable
=
true
,
length
=
1
)
private
String
isBodyColor
;
/**
* 是否禁用
*/
@Column
(
name
=
"is_disable"
,
nullable
=
true
,
length
=
1
)
private
String
isDisable
;
/**
* 是否建立bom表
*/
@Column
(
name
=
"is_build_bom"
,
nullable
=
true
,
length
=
10
)
private
String
isBuildBom
;
/**
* 确认日期
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Column
(
name
=
"confirm_date"
,
nullable
=
true
)
private
java
.
util
.
Date
confirmDate
;
/**
* 确认人
*/
@Column
(
name
=
"comfirm_person"
,
nullable
=
true
,
length
=
32
)
private
String
comfirmPerson
;
/**
* 是否免检
*/
@Column
(
name
=
"is_free_inspection"
,
nullable
=
true
,
length
=
10
)
private
String
isFreeInspection
;
/**
* 不要质量loss%
*/
@Column
(
name
=
"is_no_quality_loss"
,
nullable
=
true
,
length
=
255
)
private
String
isNoQualityLoss
;
/**
* 样品单号
*/
@Column
(
name
=
"sample_order_no"
,
nullable
=
true
,
length
=
255
)
private
String
sampleOrderNo
;
/**
* 库存编码
*/
@Column
(
name
=
"stock_no"
,
nullable
=
true
,
length
=
255
)
private
String
stockNo
;
/**
* 库存名称
*/
@Column
(
name
=
"stock_name"
,
nullable
=
true
,
length
=
255
)
private
String
stockName
;
/**
* 存档编号
*/
@Column
(
name
=
"file_no"
,
nullable
=
true
,
length
=
255
)
private
String
fileNo
;
@Override
public
boolean
equals
(
Object
o
)
{
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
);
}
@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
);
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
)
.
toString
();
}
public
String
getProductId
()
{
return
this
.
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
productId
;
}
public
String
getProductName
()
{
return
this
.
productName
;
}
public
void
setProductName
(
String
productName
)
{
this
.
productName
=
productName
;
}
public
Long
getProductCategoryId
()
{
return
this
.
productCategoryId
;
}
public
void
setProductCategoryId
(
Long
productCategoryId
)
{
this
.
productCategoryId
=
productCategoryId
;
}
public
String
getProductStatus
()
{
return
this
.
productStatus
;
}
public
void
setProductStatus
(
String
productStatus
)
{
this
.
productStatus
=
productStatus
;
}
public
String
getProductUnit
()
{
return
this
.
productUnit
;
}
public
void
setProductUnit
(
String
productUnit
)
{
this
.
productUnit
=
productUnit
;
}
public
String
getProductSampleCode
()
{
return
this
.
productSampleCode
;
}
public
void
setProductSampleCode
(
String
productSampleCode
)
{
this
.
productSampleCode
=
productSampleCode
;
}
public
String
getBrandName
()
{
return
this
.
brandName
;
}
public
void
setBrandName
(
String
brandName
)
{
this
.
brandName
=
brandName
;
}
public
String
getProductType
()
{
return
this
.
productType
;
}
public
void
setProductType
(
String
productType
)
{
this
.
productType
=
productType
;
}
public
String
getProductCode
()
{
return
this
.
productCode
;
}
public
void
setProductCode
(
String
productCode
)
{
this
.
productCode
=
productCode
;
}
public
String
getProductSizeGroupId
()
{
return
this
.
productSizeGroupId
;
}
public
void
setProductSizeGroupId
(
String
productSizeGroupId
)
{
this
.
productSizeGroupId
=
productSizeGroupId
;
}
public
String
getIsOnlyCode
()
{
return
this
.
isOnlyCode
;
}
public
void
setIsOnlyCode
(
String
isOnlyCode
)
{
this
.
isOnlyCode
=
isOnlyCode
;
}
public
String
getIsBodyColor
()
{
return
this
.
isBodyColor
;
}
public
void
setIsBodyColor
(
String
isBodyColor
)
{
this
.
isBodyColor
=
isBodyColor
;
}
public
String
getIsDisable
()
{
return
this
.
isDisable
;
}
public
void
setIsDisable
(
String
isDisable
)
{
this
.
isDisable
=
isDisable
;
}
public
String
getIsBuildBom
()
{
return
this
.
isBuildBom
;
}
public
void
setIsBuildBom
(
String
isBuildBom
)
{
this
.
isBuildBom
=
isBuildBom
;
}
public
java
.
util
.
Date
getConfirmDate
()
{
return
this
.
confirmDate
;
}
public
void
setConfirmDate
(
java
.
util
.
Date
confirmDate
)
{
this
.
confirmDate
=
confirmDate
;
}
public
String
getComfirmPerson
()
{
return
this
.
comfirmPerson
;
}
public
void
setComfirmPerson
(
String
comfirmPerson
)
{
this
.
comfirmPerson
=
comfirmPerson
;
}
public
String
getIsFreeInspection
()
{
return
this
.
isFreeInspection
;
}
public
void
setIsFreeInspection
(
String
isFreeInspection
)
{
this
.
isFreeInspection
=
isFreeInspection
;
}
public
String
getIsNoQualityLoss
()
{
return
this
.
isNoQualityLoss
;
}
public
void
setIsNoQualityLoss
(
String
isNoQualityLoss
)
{
this
.
isNoQualityLoss
=
isNoQualityLoss
;
}
public
String
getSampleOrderNo
()
{
return
this
.
sampleOrderNo
;
}
public
void
setSampleOrderNo
(
String
sampleOrderNo
)
{
this
.
sampleOrderNo
=
sampleOrderNo
;
}
public
String
getStockNo
()
{
return
this
.
stockNo
;
}
public
void
setStockNo
(
String
stockNo
)
{
this
.
stockNo
=
stockNo
;
}
public
String
getStockName
()
{
return
this
.
stockName
;
}
public
void
setStockName
(
String
stockName
)
{
this
.
stockName
=
stockName
;
}
public
String
getFileNo
()
{
return
this
.
fileNo
;
}
public
void
setFileNo
(
String
fileNo
)
{
this
.
fileNo
=
fileNo
;
}
}
topsun/src/main/java/com/huigou/topsun/product/domain/ProductProcess.java
0 → 100644
View file @
4982d37e
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.util.Objects
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
/**
* @author Tison
* 产品工艺工序
*/
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
@Entity
@Table
(
name
=
"product_process"
)
public
class
ProductProcess
implements
Serializable
{
/**
* 产品工艺工序id
*/
@Id
@Column
(
name
=
"product_process_id"
,
nullable
=
false
,
length
=
32
)
private
String
productProcessId
;
/**
* 工艺id
*/
@Column
(
name
=
"product_technology_id"
,
nullable
=
true
,
length
=
32
)
private
String
productTechnologyId
;
/**
* 生成顺序
*/
@Column
(
name
=
"production_sequence"
,
nullable
=
true
)
private
Integer
productionSequence
;
/**
* 工序名称
*/
@Column
(
name
=
"process_name"
,
nullable
=
true
,
length
=
32
)
private
String
processName
;
/**
* 是否排期工序
*/
@Column
(
name
=
"is_schedule_process"
,
nullable
=
true
,
length
=
10
)
private
String
isScheduleProcess
;
/**
* 是否完成工序
*/
@Column
(
name
=
"is_finished_process"
,
nullable
=
true
,
length
=
10
)
private
String
isFinishedProcess
;
/**
* 工艺备注
*/
@Column
(
name
=
"process_remark"
,
nullable
=
true
,
length
=
255
)
private
String
processRemark
;
/**
* 完成时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Column
(
name
=
"finished_time"
,
nullable
=
true
)
private
java
.
util
.
Date
finishedTime
;
/**
* 签字
*/
@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
String
getProductProcessId
()
{
return
this
.
productProcessId
;
}
public
void
setProductProcessId
(
String
productProcessId
)
{
this
.
productProcessId
=
productProcessId
;
}
public
String
getProductTechnologyId
()
{
return
this
.
productTechnologyId
;
}
public
void
setProductTechnologyId
(
String
productTechnologyId
)
{
this
.
productTechnologyId
=
productTechnologyId
;
}
public
Integer
getProductionSequence
()
{
return
this
.
productionSequence
;
}
public
void
setProductionSequence
(
Integer
productionSequence
)
{
this
.
productionSequence
=
productionSequence
;
}
public
String
getProcessName
()
{
return
this
.
processName
;
}
public
void
setProcessName
(
String
processName
)
{
this
.
processName
=
processName
;
}
public
String
getIsScheduleProcess
()
{
return
this
.
isScheduleProcess
;
}
public
void
setIsScheduleProcess
(
String
isScheduleProcess
)
{
this
.
isScheduleProcess
=
isScheduleProcess
;
}
public
String
getIsFinishedProcess
()
{
return
this
.
isFinishedProcess
;
}
public
void
setIsFinishedProcess
(
String
isFinishedProcess
)
{
this
.
isFinishedProcess
=
isFinishedProcess
;
}
public
String
getProcessRemark
()
{
return
this
.
processRemark
;
}
public
void
setProcessRemark
(
String
processRemark
)
{
this
.
processRemark
=
processRemark
;
}
public
java
.
util
.
Date
getFinishedTime
()
{
return
this
.
finishedTime
;
}
public
void
setFinishedTime
(
java
.
util
.
Date
finishedTime
)
{
this
.
finishedTime
=
finishedTime
;
}
public
String
getSigned
()
{
return
this
.
signed
;
}
public
void
setSigned
(
String
signed
)
{
this
.
signed
=
signed
;
}
}
topsun/src/main/java/com/huigou/topsun/product/domain/ProductRiskDescription.java
0 → 100644
View file @
4982d37e
package
com
.
huigou
.
topsun
.
product
.
domain
;
import
java.io.Serializable
;
import
java.util.Objects
;
import
javax.persistence.*
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
/**
* @author Tison
* 产品风险描述
*/
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
@Entity
@Table
(
name
=
"product_risk_description"
)
public
class
ProductRiskDescription
implements
Serializable
{
/**
* 产品风险描述id
*/
@Id
@Column
(
name
=
"product_risk_description_id"
,
nullable
=
false
,
length
=
32
)
private
String
productRiskDescriptionId
;
/**
* 产品id
*/
@Column
(
name
=
"product_id"
,
nullable
=
true
,
length
=
32
)
private
String
productId
;
/**
* 序号
*/
@Column
(
name
=
"sequence"
,
nullable
=
true
)
private
Integer
sequence
;
/**
* 内容
*/
@Column
(
name
=
"product_risk_description"
,
nullable
=
true
,
length
=
255
)
private
String
productRiskDescription
;
/**
* 等级
*/
@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
String
getProductRiskDescriptionId
()
{
return
this
.
productRiskDescriptionId
;
}
public
void
setProductRiskDescriptionId
(
String
productRiskDescriptionId
)
{
this
.
productRiskDescriptionId
=
productRiskDescriptionId
;
}
public
String
getProductId
()
{
return
this
.
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
productId
;
}
public
Integer
getSequence
()
{
return
this
.
sequence
;
}
public
void
setSequence
(
Integer
sequence
)
{
this
.
sequence
=
sequence
;
}
public
String
getProductRiskDescription
()
{
return
this
.
productRiskDescription
;
}
public
void
setProductRiskDescription
(
String
productRiskDescription
)
{
this
.
productRiskDescription
=
productRiskDescription
;
}
public
String
getProductRiskLevel
()
{
return
this
.
productRiskLevel
;
}
public
void
setProductRiskLevel
(
String
productRiskLevel
)
{
this
.
productRiskLevel
=
productRiskLevel
;
}
}
topsun/src/main/java/com/huigou/topsun/product/domain/ProductTechnology.java
0 → 100644
View file @
4982d37e
This diff is collapsed.
Click to expand it.
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