Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
asset-distribution
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-spider
asset-distribution
Commits
bb1154cc
Commit
bb1154cc
authored
Aug 31, 2021
by
shihuajun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加字段
parent
1afdf14d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
ProductRuleEntity.java
...et/distribution/service/jpa/entity/ProductRuleEntity.java
+15
-4
No files found.
src/main/java/com/quantgroup/asset/distribution/service/jpa/entity/ProductRuleEntity.java
View file @
bb1154cc
...
...
@@ -6,17 +6,18 @@ import java.util.Objects;
/**
* @author shihuajun
* @date 2021/8/3
0 17:34
* @date 2021/8/3
1 11:29
* @ describing
*/
@Entity
@Table
(
name
=
"product_rule"
,
schema
=
"asset-distribution"
,
catalog
=
""
)
@Table
(
name
=
"product_rule"
,
schema
=
"asset-distribution"
)
public
class
ProductRuleEntity
{
private
long
id
;
private
String
ruleName
;
private
String
ruleVal
;
private
String
ruleChinese
;
private
String
textType
;
private
String
ruleType
;
private
Byte
enable
;
private
Timestamp
createdAt
;
private
Timestamp
updatedAt
;
...
...
@@ -71,6 +72,16 @@ public class ProductRuleEntity {
this
.
textType
=
textType
;
}
@Basic
@Column
(
name
=
"rule_type"
,
nullable
=
true
,
length
=
50
)
public
String
getRuleType
()
{
return
ruleType
;
}
public
void
setRuleType
(
String
ruleType
)
{
this
.
ruleType
=
ruleType
;
}
@Basic
@Column
(
name
=
"enable"
,
nullable
=
true
)
public
Byte
getEnable
()
{
...
...
@@ -106,11 +117,11 @@ public class ProductRuleEntity {
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
ProductRuleEntity
that
=
(
ProductRuleEntity
)
o
;
return
id
==
that
.
id
&&
Objects
.
equals
(
ruleName
,
that
.
ruleName
)
&&
Objects
.
equals
(
ruleVal
,
that
.
ruleVal
)
&&
Objects
.
equals
(
ruleChinese
,
that
.
ruleChinese
)
&&
Objects
.
equals
(
textType
,
that
.
textType
)
&&
Objects
.
equals
(
enable
,
that
.
enable
)
&&
Objects
.
equals
(
createdAt
,
that
.
createdAt
)
&&
Objects
.
equals
(
updatedAt
,
that
.
updatedAt
);
return
id
==
that
.
id
&&
Objects
.
equals
(
ruleName
,
that
.
ruleName
)
&&
Objects
.
equals
(
ruleVal
,
that
.
ruleVal
)
&&
Objects
.
equals
(
ruleChinese
,
that
.
ruleChinese
)
&&
Objects
.
equals
(
textType
,
that
.
textType
)
&&
Objects
.
equals
(
ruleType
,
that
.
ruleType
)
&&
Objects
.
equals
(
enable
,
that
.
enable
)
&&
Objects
.
equals
(
createdAt
,
that
.
createdAt
)
&&
Objects
.
equals
(
updatedAt
,
that
.
updatedAt
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
id
,
ruleName
,
ruleVal
,
ruleChinese
,
textType
,
enable
,
createdAt
,
updatedAt
);
return
Objects
.
hash
(
id
,
ruleName
,
ruleVal
,
ruleChinese
,
textType
,
ruleType
,
enable
,
createdAt
,
updatedAt
);
}
}
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