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
479589a0
Commit
479589a0
authored
Oct 27, 2023
by
张庆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增MQ
parent
6216b6dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
18 deletions
+9
-18
CreditSubmitCommand.java
...in/java/com/jqtx/windows/command/CreditSubmitCommand.java
+3
-10
CreditListener.java
src/main/java/com/jqtx/windows/common/mq/CreditListener.java
+6
-8
No files found.
src/main/java/com/jqtx/windows/command/CreditSubmitCommand.java
View file @
479589a0
...
...
@@ -59,17 +59,10 @@ public class CreditSubmitCommand extends AbstractCommand {
if
(
ObjectUtil
.
isNotNull
(
order
))
{
return
JsonResult
.
success
();
}
CreditModel
creditModel
=
new
CreditModel
();
creditModel
.
setOrderNo
(
request
.
getOrderNo
());
creditComponent
.
insert
(
creditModel
);
windowsProducer
.
pullCrditDate
(
request
);
// CreditModel creditModel = new CreditModel();
// creditModel.setOrderNo(request.getOrderNo());
// this.convert(request, creditModel);
// ClientInfoModel infoModel = this.convertCredit(request, creditModel);
// JsonResult result = iWakandaFeignService.clientCredit(infoModel);
// result.apiCheck();
// creditComponent.insert(creditModel);
// JSONObject thirdDataReq=new JSONObject();
// thirdDataReq.put("orderNo",request.getOrderNo());
// windowsProducer.pullCreditThirdData(thirdDataReq);
return
JsonResult
.
success
();
}
}
src/main/java/com/jqtx/windows/common/mq/CreditListener.java
View file @
479589a0
...
...
@@ -52,19 +52,17 @@ public class CreditListener extends AbstractMQConsumerHandler<CreditSubmitReques
@Override
public
void
run
(
CreditSubmitRequest
request
)
throws
Exception
{
CreditModel
order
=
creditComponent
.
getByOrderNo
(
request
.
getOrderNo
());
if
(
ObjectUtil
.
isN
otNull
(
order
))
{
return
;
CreditModel
creditModel
=
creditComponent
.
getByOrderNo
(
request
.
getOrderNo
());
if
(
ObjectUtil
.
isN
ull
(
creditModel
))
{
throw
new
RuntimeException
(
"消息重试"
)
;
}
CreditModel
creditModel
=
new
CreditModel
();
creditModel
.
setOrderNo
(
request
.
getOrderNo
());
this
.
convert
(
request
,
creditModel
);
ClientInfoModel
infoModel
=
this
.
convertCredit
(
request
,
creditModel
);
JsonResult
result
=
iWakandaFeignService
.
clientCredit
(
infoModel
);
result
.
apiCheck
();
creditComponent
.
insert
(
creditModel
);
JSONObject
thirdDataReq
=
new
JSONObject
();
thirdDataReq
.
put
(
"orderNo"
,
request
.
getOrderNo
());
creditComponent
.
updateByOrderNo
(
request
.
getOrderNo
(),
creditModel
);
JSONObject
thirdDataReq
=
new
JSONObject
();
thirdDataReq
.
put
(
"orderNo"
,
request
.
getOrderNo
());
windowsProducer
.
pullCreditThirdData
(
thirdDataReq
);
}
...
...
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