Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
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
haoban3.0
haoban-manage3.0
Commits
4e6c4c66
Commit
4e6c4c66
authored
May 21, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
bf42a662
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
TestController.java
.../com/gic/haoban/manage/web/controller/TestController.java
+22
-0
dubbo-haoban-manage-web.xml
...3-web/src/main/webapp/WEB-INF/dubbo-haoban-manage-web.xml
+1
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/TestController.java
View file @
4e6c4c66
...
...
@@ -3,6 +3,7 @@ package com.gic.haoban.manage.web.controller;
import
com.gic.haoban.common.utils.EntityUtil
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.manage.api.service.MemberUnionidRelatedApiService
;
import
com.gic.haoban.manage.api.service.TestApiService
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.qo.QywxXcxSendMessageQo
;
import
com.gic.wechat.api.dto.qywx.QywxXcxSendMessageDTO
;
...
...
@@ -12,6 +13,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
/**
* Created 2020/4/9.
...
...
@@ -28,6 +31,11 @@ public class TestController extends WebBaseController {
@Autowired
private
MemberUnionidRelatedApiService
memberUnionidRelatedApiService
;
private
final
ExecutorService
pools
=
Executors
.
newFixedThreadPool
(
50
);
@Autowired
private
TestApiService
testApiService
;
@RequestMapping
(
"/send-message-test"
)
public
HaobanResponse
testSendMessage
(
QywxXcxSendMessageQo
qo
)
{
QywxXcxSendMessageDTO
messageDTO
=
EntityUtil
.
changeEntityByOrika
(
QywxXcxSendMessageDTO
.
class
,
qo
);
...
...
@@ -49,4 +57,18 @@ public class TestController extends WebBaseController {
memberUnionidRelatedApiService
.
cleanByCid
(
cid
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
@RequestMapping
(
"/test-dubbo"
)
public
HaobanResponse
dubbo
(
String
cid
)
{
int
i
=
2000
;
while
(
i
-->
0
)
{
int
finalI
=
i
;
pools
.
execute
(
new
Runnable
(){
@Override
public
void
run
()
{
testApiService
.
checkThread
(
finalI
+
""
,
100L
);
}
});
}
}
}
haoban-manage3-web/src/main/webapp/WEB-INF/dubbo-haoban-manage-web.xml
View file @
4e6c4c66
...
...
@@ -62,5 +62,6 @@
id=
"dealSyncOperationApiService"
/>
<dubbo:reference
id=
"quartzService"
interface=
"com.gic.quartz.api.service.QuartzService"
timeout=
"10000"
/>
<dubbo:reference
id=
"testApiService"
interface=
"com.gic.haoban.manage.api.service.TestApiService"
timeout=
"10000"
/>
</beans>
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