Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
baa-pay-server
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
贺超
baa-pay-server
Commits
7b8c2b61
Commit
7b8c2b61
authored
Sep 26, 2021
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建项目
parent
de507dea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
EntityBuilder.java
...ore/src/main/java/cn/quant/baa/pay/jpa/EntityBuilder.java
+3
-2
No files found.
baa-pay-core/src/main/java/cn/quant/baa/pay/jpa/EntityBuilder.java
View file @
7b8c2b61
...
@@ -10,9 +10,11 @@ import cn.quant.spring.util.DateUtils;
...
@@ -10,9 +10,11 @@ import cn.quant.spring.util.DateUtils;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
import
java.util.Date
;
import
static
cn
.
quant
.
baa
.
pay
.
Constant
.
MINI_LOCAL_DATE
;
import
static
cn
.
quant
.
baa
.
pay
.
Constant
.
MINI_LOCAL_DATE
;
import
static
cn
.
quant
.
baa
.
pay
.
Constant
.
PAY_DUE_TIME
;
/**
/**
* Created by Administrator on 2021/8/27 0027.
* Created by Administrator on 2021/8/27 0027.
...
@@ -135,13 +137,12 @@ public class EntityBuilder {
...
@@ -135,13 +137,12 @@ public class EntityBuilder {
}
}
public
static
BatchCycleTriggerEntity
payTrigger
(
Long
triggerId
,
TransactionSummaryEntity
history
)
{
public
static
BatchCycleTriggerEntity
payTrigger
(
Long
triggerId
,
TransactionSummaryEntity
history
)
{
Date
now
=
DateUtils
.
now
();
BatchCycleTriggerEntity
entity
=
new
BatchCycleTriggerEntity
();
BatchCycleTriggerEntity
entity
=
new
BatchCycleTriggerEntity
();
entity
.
setAccountId
(
history
.
getAccountId
());
entity
.
setAccountId
(
history
.
getAccountId
());
entity
.
setChanNotifyStatus
(
StatusCode
.
PEND
);
entity
.
setChanNotifyStatus
(
StatusCode
.
PEND
);
entity
.
setEntityCode
(
history
.
getTxnType
());
entity
.
setEntityCode
(
history
.
getTxnType
());
entity
.
setMchNotifyStatus
(
StatusCode
.
PEND
);
entity
.
setMchNotifyStatus
(
StatusCode
.
PEND
);
entity
.
setPayDueTime
(
DateUtils
.
toLocalDateTime
(
now
).
plusMinutes
(
30
));
entity
.
setPayDueTime
(
LocalDateTime
.
now
().
plus
(
PAY_DUE_TIME
));
entity
.
setTargetId
(
history
.
getTransactionId
());
entity
.
setTargetId
(
history
.
getTransactionId
());
entity
.
setTriggerId
(
triggerId
);
entity
.
setTriggerId
(
triggerId
);
entity
.
setPartitionKey
(
history
.
getPartitionKey
());
entity
.
setPartitionKey
(
history
.
getPartitionKey
());
...
...
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