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
1afdf14d
Commit
1afdf14d
authored
Aug 30, 2021
by
shihuajun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update entity
parent
ff156b33
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
30 deletions
+37
-30
pom.xml
pom.xml
+5
-0
FundProductEntity.java
...et/distribution/service/jpa/entity/FundProductEntity.java
+9
-14
ProductRuleEntity.java
...et/distribution/service/jpa/entity/ProductRuleEntity.java
+23
-16
No files found.
pom.xml
View file @
1afdf14d
...
@@ -367,5 +367,10 @@
...
@@ -367,5 +367,10 @@
<artifactId>
aws-java-sdk-s3
</artifactId>
<artifactId>
aws-java-sdk-s3
</artifactId>
<version>
${amazonaws.version}
</version>
<version>
${amazonaws.version}
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.googlecode.aviator
</groupId>
<artifactId>
aviator
</artifactId>
<version>
4.2.0
</version>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
src/main/java/com/quantgroup/asset/distribution/service/jpa/entity/FundProductEntity.java
View file @
1afdf14d
...
@@ -6,22 +6,21 @@ import java.util.Objects;
...
@@ -6,22 +6,21 @@ import java.util.Objects;
/**
/**
* @author shihuajun
* @author shihuajun
* @date 2021/8/
26 17:57
* @date 2021/8/
30 17:34
* @ describing
* @ describing
*/
*/
@Entity
@Entity
@Table
(
name
=
"fund_product"
,
schema
=
"asset-distribution"
)
@Table
(
name
=
"fund_product"
,
schema
=
"asset-distribution"
,
catalog
=
""
)
public
class
FundProductEntity
{
public
class
FundProductEntity
{
private
long
id
;
private
long
id
;
private
long
fundId
;
private
long
fundId
;
private
L
ong
fundProId
;
private
l
ong
fundProId
;
private
String
fundName
;
private
String
fundName
;
private
String
fundType
;
private
String
fundType
;
private
String
orgType
;
private
String
orgType
;
private
String
businessType
;
private
String
businessType
;
private
String
systermType
;
private
String
systermType
;
private
String
basicRule
;
private
String
basicRule
;
private
String
otherRule
;
private
String
ruleList
;
private
String
ruleList
;
private
Byte
enable
;
private
Byte
enable
;
private
Timestamp
createdAt
;
private
Timestamp
createdAt
;
...
@@ -49,11 +48,11 @@ public class FundProductEntity {
...
@@ -49,11 +48,11 @@ public class FundProductEntity {
@Basic
@Basic
@Column
(
name
=
"fund_pro_id"
,
nullable
=
false
)
@Column
(
name
=
"fund_pro_id"
,
nullable
=
false
)
public
L
ong
getFundProId
()
{
public
l
ong
getFundProId
()
{
return
fundProId
;
return
fundProId
;
}
}
public
void
setFundProId
(
L
ong
fundProId
)
{
public
void
setFundProId
(
l
ong
fundProId
)
{
this
.
fundProId
=
fundProId
;
this
.
fundProId
=
fundProId
;
}
}
...
@@ -159,18 +158,14 @@ public class FundProductEntity {
...
@@ -159,18 +158,14 @@ public class FundProductEntity {
@Override
@Override
public
boolean
equals
(
Object
o
)
{
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
{
if
(
this
==
o
)
return
true
;
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
FundProductEntity
that
=
(
FundProductEntity
)
o
;
FundProductEntity
that
=
(
FundProductEntity
)
o
;
return
id
==
that
.
id
&&
fundId
==
that
.
fundId
&&
Objects
.
equals
(
fundProId
,
that
.
fundProId
)
&&
Objects
.
equals
(
fundName
,
that
.
fundName
)
&&
Objects
.
equals
(
fundType
,
that
.
fundType
)
&&
Objects
.
equals
(
orgType
,
that
.
orgType
)
&&
Objects
.
equals
(
businessType
,
that
.
businessType
)
&&
Objects
.
equals
(
systermType
,
that
.
systermType
)
&&
Objects
.
equals
(
basicRule
,
that
.
basicRule
)
&&
Objects
.
equals
(
otherRule
,
that
.
other
Rule
)
&&
Objects
.
equals
(
ruleList
,
that
.
ruleList
)
&&
Objects
.
equals
(
enable
,
that
.
enable
)
&&
Objects
.
equals
(
createdAt
,
that
.
createdAt
)
&&
Objects
.
equals
(
updatedAt
,
that
.
updatedAt
);
return
id
==
that
.
id
&&
fundId
==
that
.
fundId
&&
fundProId
==
that
.
fundProId
&&
Objects
.
equals
(
fundName
,
that
.
fundName
)
&&
Objects
.
equals
(
fundType
,
that
.
fundType
)
&&
Objects
.
equals
(
orgType
,
that
.
orgType
)
&&
Objects
.
equals
(
businessType
,
that
.
businessType
)
&&
Objects
.
equals
(
systermType
,
that
.
systermType
)
&&
Objects
.
equals
(
basicRule
,
that
.
basic
Rule
)
&&
Objects
.
equals
(
ruleList
,
that
.
ruleList
)
&&
Objects
.
equals
(
enable
,
that
.
enable
)
&&
Objects
.
equals
(
createdAt
,
that
.
createdAt
)
&&
Objects
.
equals
(
updatedAt
,
that
.
updatedAt
);
}
}
@Override
@Override
public
int
hashCode
()
{
public
int
hashCode
()
{
return
Objects
.
hash
(
id
,
fundId
,
fundProId
,
fundName
,
fundType
,
orgType
,
businessType
,
systermType
,
basicRule
,
otherRule
,
ruleList
,
enable
,
createdAt
,
updatedAt
);
return
Objects
.
hash
(
id
,
fundId
,
fundProId
,
fundName
,
fundType
,
orgType
,
businessType
,
systermType
,
basicRule
,
ruleList
,
enable
,
createdAt
,
updatedAt
);
}
}
}
}
src/main/java/com/quantgroup/asset/distribution/service/jpa/entity/ProductRuleEntity.java
View file @
1afdf14d
...
@@ -6,16 +6,17 @@ import java.util.Objects;
...
@@ -6,16 +6,17 @@ import java.util.Objects;
/**
/**
* @author shihuajun
* @author shihuajun
* @date 2021/8/
26 17:57
* @date 2021/8/
30 17:34
* @ describing
* @ describing
*/
*/
@Entity
@Entity
@Table
(
name
=
"product_rule"
,
schema
=
"asset-distribution"
)
@Table
(
name
=
"product_rule"
,
schema
=
"asset-distribution"
,
catalog
=
""
)
public
class
ProductRuleEntity
{
public
class
ProductRuleEntity
{
private
long
id
;
private
long
id
;
private
String
ruleName
;
private
String
ruleName
;
private
String
rule
English
;
private
String
rule
Val
;
private
String
ruleChinese
;
private
String
ruleChinese
;
private
String
textType
;
private
Byte
enable
;
private
Byte
enable
;
private
Timestamp
createdAt
;
private
Timestamp
createdAt
;
private
Timestamp
updatedAt
;
private
Timestamp
updatedAt
;
...
@@ -41,13 +42,13 @@ public class ProductRuleEntity {
...
@@ -41,13 +42,13 @@ public class ProductRuleEntity {
}
}
@Basic
@Basic
@Column
(
name
=
"rule_
english
"
,
nullable
=
false
,
length
=
50
)
@Column
(
name
=
"rule_
val
"
,
nullable
=
false
,
length
=
50
)
public
String
getRule
English
()
{
public
String
getRule
Val
()
{
return
rule
English
;
return
rule
Val
;
}
}
public
void
setRule
English
(
String
ruleEnglish
)
{
public
void
setRule
Val
(
String
ruleVal
)
{
this
.
rule
English
=
ruleEnglish
;
this
.
rule
Val
=
ruleVal
;
}
}
@Basic
@Basic
...
@@ -60,6 +61,16 @@ public class ProductRuleEntity {
...
@@ -60,6 +61,16 @@ public class ProductRuleEntity {
this
.
ruleChinese
=
ruleChinese
;
this
.
ruleChinese
=
ruleChinese
;
}
}
@Basic
@Column
(
name
=
"text_type"
,
nullable
=
true
,
length
=
50
)
public
String
getTextType
()
{
return
textType
;
}
public
void
setTextType
(
String
textType
)
{
this
.
textType
=
textType
;
}
@Basic
@Basic
@Column
(
name
=
"enable"
,
nullable
=
true
)
@Column
(
name
=
"enable"
,
nullable
=
true
)
public
Byte
getEnable
()
{
public
Byte
getEnable
()
{
...
@@ -92,18 +103,14 @@ public class ProductRuleEntity {
...
@@ -92,18 +103,14 @@ public class ProductRuleEntity {
@Override
@Override
public
boolean
equals
(
Object
o
)
{
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
{
if
(
this
==
o
)
return
true
;
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
ProductRuleEntity
that
=
(
ProductRuleEntity
)
o
;
ProductRuleEntity
that
=
(
ProductRuleEntity
)
o
;
return
id
==
that
.
id
&&
Objects
.
equals
(
ruleName
,
that
.
ruleName
)
&&
Objects
.
equals
(
rule
English
,
that
.
ruleEnglish
)
&&
Objects
.
equals
(
ruleChinese
,
that
.
ruleChines
e
)
&&
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
(
rule
Val
,
that
.
ruleVal
)
&&
Objects
.
equals
(
ruleChinese
,
that
.
ruleChinese
)
&&
Objects
.
equals
(
textType
,
that
.
textTyp
e
)
&&
Objects
.
equals
(
enable
,
that
.
enable
)
&&
Objects
.
equals
(
createdAt
,
that
.
createdAt
)
&&
Objects
.
equals
(
updatedAt
,
that
.
updatedAt
);
}
}
@Override
@Override
public
int
hashCode
()
{
public
int
hashCode
()
{
return
Objects
.
hash
(
id
,
ruleName
,
rule
English
,
ruleChines
e
,
enable
,
createdAt
,
updatedAt
);
return
Objects
.
hash
(
id
,
ruleName
,
rule
Val
,
ruleChinese
,
textTyp
e
,
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