Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform
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
QA
qa-platform
Commits
9a54ecb3
Commit
9a54ecb3
authored
Aug 21, 2020
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新造数据状态
parent
55a3881a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
11 deletions
+26
-11
GenLoanUser.java
src/main/java/cn/qg/qaplatform/domain/GenLoanUser.java
+6
-1
GenUserDataServiceImpl.java
...cn/qg/qaplatform/service/impl/GenUserDataServiceImpl.java
+20
-10
No files found.
src/main/java/cn/qg/qaplatform/domain/GenLoanUser.java
View file @
9a54ecb3
...
@@ -39,5 +39,10 @@ public class GenLoanUser {
...
@@ -39,5 +39,10 @@ public class GenLoanUser {
/**
/**
* 当前状态
* 当前状态
*/
*/
private
String
status
;
private
Integer
status
;
/**
* 状态描述
*/
private
String
desc
;
}
}
src/main/java/cn/qg/qaplatform/service/impl/GenUserDataServiceImpl.java
View file @
9a54ecb3
...
@@ -9,13 +9,10 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -9,13 +9,10 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
sun.applet.Main
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
javax.print.URIException
;
import
java.net.URISyntaxException
;
import
java.net.URISyntaxException
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.concurrent.TimeUnit
;
@Service
@Service
...
@@ -147,8 +144,15 @@ public class GenUserDataServiceImpl implements GenUserDataService {
...
@@ -147,8 +144,15 @@ public class GenUserDataServiceImpl implements GenUserDataService {
Map
authResult
=
MainProcess
.
queryUserAuditRecord
(
namespace
,
userId
);
Map
authResult
=
MainProcess
.
queryUserAuditRecord
(
namespace
,
userId
);
String
orderNo
=
authResult
.
get
(
"order_no"
).
toString
().
trim
();
String
orderNo
=
authResult
.
get
(
"order_no"
).
toString
().
trim
();
String
productId
=
authResult
.
get
(
"product_id"
).
toString
();
String
productId
=
authResult
.
get
(
"product_id"
).
toString
();
Long
accountId
;
// 查询accountId
// 查询accountId
Long
accountId
=
MainProcess
.
getUserAccountId
(
namespace
,
userId
,
productId
);
try
{
accountId
=
MainProcess
.
getUserAccountId
(
namespace
,
userId
,
productId
);
}
catch
(
IndexOutOfBoundsException
e
)
{
e
.
printStackTrace
();
log
.
info
(
"资方分配失败,quota_account表中无法查询到accountId!"
);
return
false
;
}
// 绑卡
// 绑卡
String
payToken
=
MainProcess
.
bindCard
(
namespace
,
token
,
accountId
);
String
payToken
=
MainProcess
.
bindCard
(
namespace
,
token
,
accountId
);
// 绑卡发送短信
// 绑卡发送短信
...
@@ -301,27 +305,33 @@ public class GenUserDataServiceImpl implements GenUserDataService {
...
@@ -301,27 +305,33 @@ public class GenUserDataServiceImpl implements GenUserDataService {
genLoanUser
=
queryBasicLoanStatusDataService
.
getUserInfoByPhoneNo
(
namespace
,
phoneNo
);
genLoanUser
=
queryBasicLoanStatusDataService
.
getUserInfoByPhoneNo
(
namespace
,
phoneNo
);
// 资方审核中
// 资方审核中
if
(
redisResult
.
equals
(
"0"
))
{
if
(
redisResult
.
equals
(
"0"
))
{
genLoanUser
.
setStatus
(
"资方审核中..."
);
genLoanUser
.
setStatus
(
0
);
genLoanUser
.
setDesc
(
"资方审核中..."
);
}
}
// 资方审核失败
// 资方审核失败
if
(
redisResult
.
equals
(
"1"
))
{
if
(
redisResult
.
equals
(
"1"
))
{
genLoanUser
.
setStatus
(
"资方审核失败"
);
genLoanUser
.
setStatus
(
1
);
genLoanUser
.
setDesc
(
"资方审核失败"
);
}
}
// 提现成功
// 提现成功
if
(
redisResult
.
equals
(
"2"
))
{
if
(
redisResult
.
equals
(
"2"
))
{
genLoanUser
.
setStatus
(
"提现成功"
);
genLoanUser
.
setStatus
(
2
);
genLoanUser
.
setDesc
(
"提现成功"
);
}
}
// 提现失败
// 提现失败
if
(
redisResult
.
equals
(
"10"
))
{
if
(
redisResult
.
equals
(
"10"
))
{
genLoanUser
.
setStatus
(
"提现失败"
);
genLoanUser
.
equals
(
"10"
);
genLoanUser
.
setDesc
(
"资方分配失败"
);
}
}
// 放款成功
// 放款成功
if
(
redisResult
.
equals
(
"3"
))
{
if
(
redisResult
.
equals
(
"3"
))
{
genLoanUser
.
setStatus
(
"放款成功"
);
genLoanUser
.
setStatus
(
3
);
genLoanUser
.
setDesc
(
"放款成功"
);
}
}
// 放款失败
// 放款失败
if
(
redisResult
.
equals
(
"4"
))
{
if
(
redisResult
.
equals
(
"4"
))
{
genLoanUser
.
setStatus
(
"放款失败"
);
genLoanUser
.
setStatus
(
4
);
genLoanUser
.
setDesc
(
"放款失败"
);
}
}
return
genLoanUser
;
return
genLoanUser
;
}
}
...
...
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