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
85dde237
Commit
85dde237
authored
Sep 14, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
ea31d26f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
HmPageServiceTest.java
haoban-manage3-service/src/test/java/HmPageServiceTest.java
+18
-10
No files found.
haoban-manage3-service/src/test/java/HmPageServiceTest.java
View file @
85dde237
import
java.util.Arrays
;
import
java.util.List
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
...
...
@@ -7,7 +16,6 @@ import com.gic.haoban.manage.api.dto.hm.HmGroupQueryDTO;
import
com.gic.haoban.manage.api.dto.hm.HmPageDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmPageRelationDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmWelcomeRelationDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmPageQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmPageRelationQDTO
;
import
com.gic.haoban.manage.api.dto.welcome.qdto.QueryWelcomeRelationQDTO
;
import
com.gic.haoban.manage.api.enums.hm.HmWelcomeReferType
;
...
...
@@ -17,16 +25,10 @@ import com.gic.haoban.manage.api.service.hm.HmGroupApiService;
import
com.gic.haoban.manage.api.service.hm.HmPageApiService
;
import
com.gic.haoban.manage.api.service.hm.HmQrcodeApiService
;
import
com.gic.haoban.manage.api.service.hm.HmWelcomeRelationApiService
;
import
com.gic.haoban.manage.service.config.Config
;
import
com.gic.haoban.manage.service.pojo.bo.hm.HmWelcomeRelationBO
;
import
com.gic.haoban.manage.service.service.hm.WelcomeRelationService
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
java.util.Arrays
;
import
java.util.List
;
import
com.gic.wechat.api.service.qywx.QywxExternalUserService
;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@ContextConfiguration
(
locations
=
{
"classpath:applicationContext-conf.xml"
})
...
...
@@ -45,11 +47,17 @@ public class HmPageServiceTest {
private
HmWelcomeRelationApiService
welcomeRelationApiService
;
@Autowired
private
WxEnterpriseApiService
wxEnterpriseApiService
;
@Autowired
private
QywxExternalUserService
qywxExternalUserService
;
@Autowired
private
Config
config
;
@Test
public
void
test
(){
this
.
wxEnterpriseApiService
.
stopHaoban
(
"ff8080815dacd3a2015dacd3ef5c0000"
);
// this.wxEnterpriseApiService.stopHaoban("ff8080815dacd3a2015dacd3ef5c0000");
System
.
out
.
println
(
JSON
.
toJSONString
(
this
.
qywxExternalUserService
.
externalUseridToPendingId
(
"wp59NLDQAAWfAU-uhldYZyNZnPXz_1xg"
,
config
.
getWxSuiteid
(),
Arrays
.
asList
(
"wm59NLDQAAAI39Od3hmd81FyMMxJcGuw"
,
"wm59NLDQAA10rEOdSvUZVxte8j0SNEAA"
))
));;
/* HmPageQDTO pageQDTO = new HmPageQDTO();
pageQDTO.setPageSearchText("MB01419872763172380673");
...
...
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