Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quant-andy
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
贺超
quant-andy
Commits
3f6dc8ea
Commit
3f6dc8ea
authored
Sep 01, 2021
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建项目
parent
3bbc4d92
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
14 deletions
+24
-14
SummaryRepository.java
...y-core/src/main/java/cn/quant/andy/SummaryRepository.java
+3
-2
ApplicationProfileEntity.java
...va/cn/quant/andy/jpa/entity/ApplicationProfileEntity.java
+2
-2
BalanceBillingEntity.java
...n/java/cn/quant/andy/jpa/entity/BalanceBillingEntity.java
+5
-2
BalanceSummaryEntity.java
...n/java/cn/quant/andy/jpa/entity/BalanceSummaryEntity.java
+3
-2
InstitutionProfileEntity.java
...va/cn/quant/andy/jpa/entity/InstitutionProfileEntity.java
+1
-1
InstitutionTransactionSummaryEntity.java
.../andy/jpa/entity/InstitutionTransactionSummaryEntity.java
+5
-2
TransactionSummaryEntity.java
...va/cn/quant/andy/jpa/entity/TransactionSummaryEntity.java
+5
-3
No files found.
quant-andy-core/src/main/java/cn/quant/andy/SummaryRepository.java
View file @
3f6dc8ea
...
...
@@ -4,6 +4,7 @@ import cn.quant.andy.jpa.entity.EntityConstant;
import
cn.quant.andy.jpa.mybatis.mapper.SummaryMapper
;
import
cn.quant.spring.context.ServerApplicationContext
;
import
cn.quant.spring.util.CommonUtils
;
import
cn.quant.spring.util.DateUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -53,9 +54,9 @@ public class SummaryRepository {
params
.
put
(
EntityConstant
.
BASE_CODE
,
base
);
params
.
put
(
EntityConstant
.
TERM_NO
,
termNo
);
Date
now
=
Common
Utils
.
now
();
Date
now
=
Date
Utils
.
now
();
LocalDateTime
localDate
=
Common
Utils
.
toLocalDateTime
((
Date
)
values
[
postDateIndex
]);
LocalDateTime
localDate
=
Date
Utils
.
toLocalDateTime
((
Date
)
values
[
postDateIndex
]);
params
.
put
(
EntityConstant
.
POST_DATE
,
localDate
.
toLocalDate
());
params
.
put
(
EntityConstant
.
POST_TIME
,
localDate
.
toLocalTime
());
params
.
put
(
EntityConstant
.
IMPORT_TIME
,
now
);
...
...
quant-andy-core/src/main/java/cn/quant/andy/jpa/entity/ApplicationProfileEntity.java
View file @
3f6dc8ea
...
...
@@ -41,9 +41,9 @@ public class ApplicationProfileEntity extends DescriptionEntity {
public
void
setPostDateIndex
(
Integer
postDateIndex
)
{
this
.
postDateIndex
=
postDateIndex
;
}
@Override
public
Object
primary
Key
()
{
public
String
persistence
Key
()
{
return
null
;
}
}
\ No newline at end of file
quant-andy-core/src/main/java/cn/quant/andy/jpa/entity/BalanceBillingEntity.java
View file @
3f6dc8ea
package
cn
.
quant
.
andy
.
jpa
.
entity
;
import
cn.quant.spring.data.jpa.entity.DescriptionEntity
;
import
cn.quant.spring.util.StringUtils
;
import
javax.persistence.Column
;
import
javax.persistence.Id
;
...
...
@@ -178,8 +179,8 @@ public class BalanceBillingEntity extends DescriptionEntity {
}
@Override
public
Object
primary
Key
()
{
return
hashCode
(
);
public
String
persistence
Key
()
{
return
StringUtils
.
toDelimitedString
(
termNo
,
typeCode
);
}
@Override
...
...
@@ -218,4 +219,6 @@ public class BalanceBillingEntity extends DescriptionEntity {
sb
.
append
(
'}'
);
return
sb
.
toString
();
}
}
\ No newline at end of file
quant-andy-core/src/main/java/cn/quant/andy/jpa/entity/BalanceSummaryEntity.java
View file @
3f6dc8ea
package
cn
.
quant
.
andy
.
jpa
.
entity
;
import
cn.quant.spring.data.jpa.entity.DescriptionEntity
;
import
cn.quant.spring.util.StringUtils
;
import
javax.persistence.Column
;
import
javax.persistence.Id
;
...
...
@@ -168,8 +169,8 @@ public class BalanceSummaryEntity extends DescriptionEntity {
}
@Override
public
Object
primary
Key
()
{
return
hashCode
(
);
public
String
persistence
Key
()
{
return
StringUtils
.
toDelimitedString
(
BalanceSummaryEntity
.
class
,
termNo
,
baseCode
,
baseOrderNo
);
}
@Override
...
...
quant-andy-core/src/main/java/cn/quant/andy/jpa/entity/InstitutionProfileEntity.java
View file @
3f6dc8ea
...
...
@@ -132,7 +132,7 @@ public class InstitutionProfileEntity extends DescriptionEntity {
}
@Override
public
Object
primary
Key
()
{
public
String
persistence
Key
()
{
return
null
;
}
}
\ No newline at end of file
quant-andy-core/src/main/java/cn/quant/andy/jpa/entity/InstitutionTransactionSummaryEntity.java
View file @
3f6dc8ea
package
cn
.
quant
.
andy
.
jpa
.
entity
;
import
cn.quant.spring.data.jpa.entity.DescriptionEntity
;
import
cn.quant.spring.util.StringUtils
;
import
javax.persistence.Column
;
import
javax.persistence.Id
;
...
...
@@ -245,8 +246,8 @@ public class InstitutionTransactionSummaryEntity extends DescriptionEntity {
}
@Override
public
Object
primary
Key
()
{
return
hashCode
(
);
public
String
persistence
Key
()
{
return
StringUtils
.
toDelimitedString
(
InstitutionTransactionSummaryEntity
.
class
,
transactionId
);
}
@Override
...
...
@@ -290,4 +291,6 @@ public class InstitutionTransactionSummaryEntity extends DescriptionEntity {
sb
.
append
(
'}'
);
return
sb
.
toString
();
}
}
\ No newline at end of file
quant-andy-core/src/main/java/cn/quant/andy/jpa/entity/TransactionSummaryEntity.java
View file @
3f6dc8ea
package
cn
.
quant
.
andy
.
jpa
.
entity
;
import
cn.quant.spring.data.jpa.entity.DescriptionEntity
;
import
cn.quant.spring.util.StringUtils
;
import
javax.persistence.Column
;
import
javax.persistence.Id
;
...
...
@@ -224,10 +225,9 @@ public class TransactionSummaryEntity extends DescriptionEntity{
}
@Override
public
Object
primary
Key
()
{
return
hashCode
(
);
public
String
persistence
Key
()
{
return
StringUtils
.
toDelimitedString
(
TransactionSummaryEntity
.
class
,
transactionId
);
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
...
...
@@ -267,4 +267,6 @@ public class TransactionSummaryEntity extends DescriptionEntity{
sb
.
append
(
'}'
);
return
sb
.
toString
();
}
}
\ No newline at end of file
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