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
f10779e2
Commit
f10779e2
authored
Apr 09, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5ad41911
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
15 deletions
+23
-15
StaffDepartmentRelatedService.java
...manage/service/service/StaffDepartmentRelatedService.java
+2
-0
StaffDepartmentRelatedServiceImpl.java
...rvice/service/impl/StaffDepartmentRelatedServiceImpl.java
+4
-0
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+1
-1
ServiceTest.java
haoban-manage3-service/src/test/java/ServiceTest.java
+16
-14
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/StaffDepartmentRelatedService.java
View file @
f10779e2
...
...
@@ -27,5 +27,7 @@ public interface StaffDepartmentRelatedService {
List
<
TabHaobanStaffDepartmentRelated
>
listByDepartmentIdByKeyword
(
String
departmentId
,
String
keyword
);
List
<
TabHaobanStaffDepartmentRelated
>
listByWxUserId
(
String
wxUserId
);
StaffDepartmentRelatedDTO
getById
(
String
staffDepartmentStaffRelatedId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffDepartmentRelatedServiceImpl.java
View file @
f10779e2
...
...
@@ -84,6 +84,10 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated
public
List
<
TabHaobanStaffDepartmentRelated
>
listByDepartmentIdByKeyword
(
String
departmentId
,
String
keyword
)
{
return
mapper
.
listByDepartmentIdByKeyword
(
departmentId
,
keyword
);
}
@Override
public
StaffDepartmentRelatedDTO
getById
(
String
staffDepartmentStaffRelatedId
)
{
return
EntityUtil
.
changeEntityByJSON
(
StaffDepartmentRelatedDTO
.
class
,
mapper
.
getById
(
staffDepartmentStaffRelatedId
));
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
f10779e2
...
...
@@ -211,7 +211,7 @@ public class StaffApiServiceImpl implements StaffApiService {
@Override
public
void
del
(
String
staffDepartmentStaffRelatedId
)
{
StaffDepartmentRelatedDTO
related
=
staffDepartmentRelatedService
.
selec
tById
(
staffDepartmentStaffRelatedId
);
StaffDepartmentRelatedDTO
related
=
staffDepartmentRelatedService
.
ge
tById
(
staffDepartmentStaffRelatedId
);
if
(
related
!=
null
)
{
List
<
TabHaobanStaffDepartmentRelated
>
relatedList
=
staffDepartmentRelatedService
.
listStaffDepartmentByStaffId
(
related
.
getStaffId
());
if
(
relatedList
==
null
||
relatedList
.
isEmpty
()){
...
...
haoban-manage3-service/src/test/java/ServiceTest.java
View file @
f10779e2
import
com.gic.haoban.manage.api.service.MemberUnionidRelatedApiService
;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
//
import com.gic.haoban.manage.api.service.MemberUnionidRelatedApiService;
//
import com.gic.wechat.api.service.qywx.QywxUserApiService;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
//
import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService
;
//import com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService;
import
com.gic.redis.data.util.RedisUtil
;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@ContextConfiguration
(
locations
=
{
"classpath:applicationContext-conf.xml"
})
public
class
ServiceTest
{
@Autowired
private
WxEnterpriseRelatedApiService
wxEnterpriseRelatedApiService
;
//
@Autowired
//
private WxEnterpriseRelatedApiService wxEnterpriseRelatedApiService;
@Autowired
private
QywxUserApiService
qywxUserApiService
;
//
@Autowired
//
private QywxUserApiService qywxUserApiService;
@Test
public
void
test
()
{
//wxEnterpriseRelatedApiService.listEnterpriseByWxEnterpriseId("073e89a37eb14acabf258e59a57359b6");
RedisUtil
.
delCache
(
"haoban-sync-department-ca66a01b79474c40b3e7c7f93daf1a3b"
);
}
@Test
public
void
test1
()
{
String
corpSelfExternalUseridInfo
=
qywxUserApiService
.
getCorpSelfExternalUseridInfo
(
"ww50d418adce14b4a9"
,
"1azg6LG5Vj_YKFO-X27to4S4x_y-f6APR0fwE9YnQd8"
,
"wm-0J8CQAAbGIhtnLd51B97OO_0gf3zw"
);
System
.
out
.
println
(
corpSelfExternalUseridInfo
);
}
//
@Test
//
public void test1() {
//
String corpSelfExternalUseridInfo = qywxUserApiService.getCorpSelfExternalUseridInfo("ww50d418adce14b4a9"
//
, "1azg6LG5Vj_YKFO-X27to4S4x_y-f6APR0fwE9YnQd8", "wm-0J8CQAAbGIhtnLd51B97OO_0gf3zw");
//
System.out.println(corpSelfExternalUseridInfo);
//
}
}
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