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
fbc7715f
Commit
fbc7715f
authored
1 year ago
by
张庆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增挡板规则
parent
cda02486
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
15 deletions
+19
-15
GetCreditCommand.java
src/main/java/com/jqtx/windows/command/GetCreditCommand.java
+10
-8
LoanStatusCommand.java
...main/java/com/jqtx/windows/command/LoanStatusCommand.java
+9
-7
No files found.
src/main/java/com/jqtx/windows/command/GetCreditCommand.java
View file @
fbc7715f
...
@@ -47,14 +47,16 @@ public class GetCreditCommand extends AbstractCommand {
...
@@ -47,14 +47,16 @@ public class GetCreditCommand extends AbstractCommand {
String
substring
=
credit
.
getOrderNo
().
substring
(
credit
.
getOrderNo
().
length
()
-
1
,
credit
.
getOrderNo
().
length
());
String
substring
=
credit
.
getOrderNo
().
substring
(
credit
.
getOrderNo
().
length
()
-
1
,
credit
.
getOrderNo
().
length
());
//偶数TODO
//偶数TODO
if
(!
SpringContextConfig
.
getActiveProfile
().
equals
(
"prod"
))
{
if
(!
SpringContextConfig
.
getActiveProfile
().
equals
(
"prod"
))
{
if
(
Integer
.
valueOf
(
substring
)
%
2
==
0
)
{
response
.
setStatus
(
"1"
);
response
.
setStatus
(
"1"
);
response
.
setApprovalAmount
(
"10000.00"
);
response
.
setApprovalAmount
(
"10000.00"
);
// if (Integer.valueOf(substring) % 2 == 0) {
}
else
{
// response.setStatus("1");
response
.
setStatus
(
"2"
);
// response.setApprovalAmount("10000.00");
//response.setApprovalAmount("10000.00");
// } else {
response
.
setRemark
(
"挡板拒绝"
);
// response.setStatus("2");
}
// //response.setApprovalAmount("10000.00");
// response.setRemark("挡板拒绝");
// }
}
else
{
}
else
{
if
(
CreditResultStatusEnum
.
PASS
.
name
().
equals
(
credit
.
getCreditResult
()))
{
if
(
CreditResultStatusEnum
.
PASS
.
name
().
equals
(
credit
.
getCreditResult
()))
{
response
.
setStatus
(
"1"
);
response
.
setStatus
(
"1"
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/jqtx/windows/command/LoanStatusCommand.java
View file @
fbc7715f
...
@@ -42,13 +42,15 @@ public class LoanStatusCommand extends AbstractCommand {
...
@@ -42,13 +42,15 @@ public class LoanStatusCommand extends AbstractCommand {
}
}
if
(!
SpringContextConfig
.
getActiveProfile
().
equals
(
"prod"
))
{
if
(!
SpringContextConfig
.
getActiveProfile
().
equals
(
"prod"
))
{
String
substring
=
loanModel
.
getOrderNo
().
substring
(
loanModel
.
getOrderNo
().
length
()
-
1
,
loanModel
.
getOrderNo
().
length
());
String
substring
=
loanModel
.
getOrderNo
().
substring
(
loanModel
.
getOrderNo
().
length
()
-
1
,
loanModel
.
getOrderNo
().
length
());
if
(
Integer
.
valueOf
(
substring
)
%
2
==
0
)
{
response
.
setStatus
(
1
);
response
.
setStatus
(
1
);
response
.
setRemark
(
"挡板:提现通过"
);
response
.
setRemark
(
"挡板:提现通过"
);
// if (Integer.valueOf(substring) % 2 == 0) {
}
else
{
// response.setStatus(1);
response
.
setStatus
(
2
);
// response.setRemark("挡板:提现通过");
response
.
setRemark
(
"挡板:提现拒绝,去别家看看"
);
// } else {
}
// response.setStatus(2);
// response.setRemark("挡板:提现拒绝,去别家看看");
// }
}
else
{
}
else
{
if
(
"PASS"
.
equals
(
loanModel
.
getLoanCreditResult
()))
{
if
(
"PASS"
.
equals
(
loanModel
.
getLoanCreditResult
()))
{
response
.
setStatus
(
1
);
response
.
setStatus
(
1
);
...
...
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