Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
0555e7c4
Commit
0555e7c4
authored
Aug 10, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
e00fe2ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
BaseOrderBiz.java
...c/main/java/com/xxfc/platform/order/biz/BaseOrderBiz.java
+1
-1
MQSenderController.java
...xfc/platform/universal/controller/MQSenderController.java
+2
-5
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/BaseOrderBiz.java
View file @
0555e7c4
...
@@ -437,8 +437,8 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> {
...
@@ -437,8 +437,8 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> {
orderMQDTO
.
setSign
(
sign
);
orderMQDTO
.
setSign
(
sign
);
SendMsgDTO
sendMsgDTO
=
new
SendMsgDTO
(){{
SendMsgDTO
sendMsgDTO
=
new
SendMsgDTO
(){{
setExchange
(
ORDER_TOPIC
);
setExchange
(
ORDER_TOPIC
);
setJson
(
JSONUtil
.
toJsonStr
(
orderMQDTO
));
}};
}};
sendMsgDTO
.
setJson
(
JSONUtil
.
toJsonStr
(
orderMQDTO
));
switch
(
sign
)
{
switch
(
sign
)
{
case
2
:
case
2
:
sendMsgDTO
.
setRoutKey
(
KEY_ORDER_CANCEL
);
sendMsgDTO
.
setRoutKey
(
KEY_ORDER_CANCEL
);
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/controller/MQSenderController.java
View file @
0555e7c4
...
@@ -4,10 +4,7 @@ import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
...
@@ -4,10 +4,7 @@ import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import
com.xxfc.platform.universal.biz.MQServiceBiZ
;
import
com.xxfc.platform.universal.biz.MQServiceBiZ
;
import
com.xxfc.platform.universal.dto.SendMsgDTO
;
import
com.xxfc.platform.universal.dto.SendMsgDTO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RestController
@RequestMapping
(
value
=
"message"
)
@RequestMapping
(
value
=
"message"
)
...
@@ -22,7 +19,7 @@ public class MQSenderController {
...
@@ -22,7 +19,7 @@ public class MQSenderController {
}
}
@PostMapping
(
value
=
"/sendMessage"
)
@PostMapping
(
value
=
"/sendMessage"
)
public
ObjectRestResponse
sendMessage
(
SendMsgDTO
dto
)
{
public
ObjectRestResponse
sendMessage
(
@RequestBody
SendMsgDTO
dto
)
{
return
mqServiceBiZ
.
sendMessage
(
dto
.
getExchange
(),
dto
.
getRoutKey
(),
dto
.
getJson
());
return
mqServiceBiZ
.
sendMessage
(
dto
.
getExchange
(),
dto
.
getRoutKey
(),
dto
.
getJson
());
}
}
...
...
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