Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
windows
Project
Project
Details
Activity
Releases
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
zhanhai
windows
Commits
910113fe
Commit
910113fe
authored
1 year ago
by
张庆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
最受结果
parent
2c910c6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
SyncLoanCommand.java
src/main/java/com/jqtx/windows/command/SyncLoanCommand.java
+13
-1
No files found.
src/main/java/com/jqtx/windows/command/SyncLoanCommand.java
View file @
910113fe
package
com
.
jqtx
.
windows
.
command
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.lang.Assert
;
import
com.alibaba.fastjson.JSON
;
import
com.jqtx.windows.common.converter.ProtocolConverter
;
...
...
@@ -24,6 +25,7 @@ import org.springframework.stereotype.Service;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.List
;
import
java.util.stream.Collectors
;
...
...
@@ -62,7 +64,9 @@ public class SyncLoanCommand extends AbstractCommand {
loanModel
.
setRateAmt
(
rateAmt
);
loanModel
.
setBurdenAmt
(
burdenAmt
);
loanModel
.
setLoanUsage
(
syncLoanRequest
.
getLoanUsage
());
loanModel
.
setRaiseDate
(
LocalDateTime
.
parse
(
syncLoanRequest
.
getRaiseDate
()));
DateTimeFormatter
df
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
);
LocalDateTime
dateTime
=
LocalDateTime
.
parse
(
syncLoanRequest
.
getRaiseDate
(),
df
);
loanModel
.
setRaiseDate
(
dateTime
);
loanModel
.
setLoanStatus
(
LoanStatusEnum
.
BACKING
.
name
());
loanModel
.
setBankAccount
(
syncLoanRequest
.
getBankAccount
());
loanModel
.
setLoanTerm
(
syncLoanRequest
.
getLoanTerm
());
...
...
@@ -87,4 +91,12 @@ public class SyncLoanCommand extends AbstractCommand {
iProtocalFeignService
.
uploadProtocolPdf
(
uploadPdfRequest
);
return
JsonResult
.
success
();
}
public
static
void
main
(
String
[]
args
)
{
String
dateTimeStr
=
"2019-11-01 11:11:11"
;
DateTimeFormatter
df
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
);
LocalDateTime
dateTime
=
LocalDateTime
.
parse
(
dateTimeStr
,
df
);
System
.
out
.
println
(
dateTime
);
}
}
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