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
b00b135d
Commit
b00b135d
authored
May 31, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时同步企业微信通讯录列表
parent
4c7bc159
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
WxEnterpriseMapper.java
.../haoban/manage/service/dao/mapper/WxEnterpriseMapper.java
+2
-1
WxEnterpriseService.java
...ic/haoban/manage/service/service/WxEnterpriseService.java
+1
-1
WxEnterpriseServiceImpl.java
.../manage/service/service/impl/WxEnterpriseServiceImpl.java
+1
-1
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+3
-4
WxEnterpriseMapper.xml
...-service/src/main/resources/mapper/WxEnterpriseMapper.xml
+2
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/WxEnterpriseMapper.java
View file @
b00b135d
...
@@ -93,5 +93,5 @@ public interface WxEnterpriseMapper {
...
@@ -93,5 +93,5 @@ public interface WxEnterpriseMapper {
* 根据是否配置回调地址查询所有企业微信
* 根据是否配置回调地址查询所有企业微信
* @return
* @return
*/
*/
List
<
WxEnterpriseDTO
>
listWxEnterpriseByCallbackFlag
(
@Param
(
"callbackFlag"
)
Integer
callbackFlag
);
List
<
String
>
listWxEnterpriseByCallbackFlag
(
@Param
(
"callbackFlag"
)
Integer
callbackFlag
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/WxEnterpriseService.java
View file @
b00b135d
...
@@ -97,6 +97,6 @@ public interface WxEnterpriseService {
...
@@ -97,6 +97,6 @@ public interface WxEnterpriseService {
* 根据是否配置回调地址查询所有企业微信
* 根据是否配置回调地址查询所有企业微信
* @return
* @return
*/
*/
List
<
WxEnterpriseDTO
>
listWxEnterpriseByCallbackFlag
(
Integer
callbackFlag
);
List
<
String
>
listWxEnterpriseByCallbackFlag
(
Integer
callbackFlag
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxEnterpriseServiceImpl.java
View file @
b00b135d
...
@@ -313,7 +313,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
...
@@ -313,7 +313,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
}
}
@Override
@Override
public
List
<
WxEnterpriseDTO
>
listWxEnterpriseByCallbackFlag
(
Integer
callbackFlag
)
{
public
List
<
String
>
listWxEnterpriseByCallbackFlag
(
Integer
callbackFlag
)
{
return
this
.
mapper
.
listWxEnterpriseByCallbackFlag
(
callbackFlag
);
return
this
.
mapper
.
listWxEnterpriseByCallbackFlag
(
callbackFlag
);
}
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
b00b135d
...
@@ -1209,10 +1209,9 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -1209,10 +1209,9 @@ public class StaffApiServiceImpl implements StaffApiService {
public
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
<
Boolean
>
syncQywxStaffList
(
String
params
)
{
public
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
<
Boolean
>
syncQywxStaffList
(
String
params
)
{
logger
.
info
(
"定时刷新企业微信通讯录列表信息"
);
logger
.
info
(
"定时刷新企业微信通讯录列表信息"
);
//查询所有未配置回调地址的自建应用
//查询所有未配置回调地址的自建应用
List
<
WxEnterpriseDTO
>
enterpriseDTOList
=
wxEnterpriseService
.
listWxEnterpriseByCallbackFlag
(
0
);
List
<
String
>
wxEnterpriseList
=
wxEnterpriseService
.
listWxEnterpriseByCallbackFlag
(
0
);
if
(
CollUtil
.
isNotEmpty
(
enterpriseDTOList
)){
if
(
CollUtil
.
isNotEmpty
(
wxEnterpriseList
)){
for
(
WxEnterpriseDTO
dto
:
enterpriseDTOList
){
for
(
String
wxEnterpriseId
:
wxEnterpriseList
){
String
wxEnterpriseId
=
dto
.
getWxEnterpriseId
();
logger
.
info
(
"开始刷新:{}"
,
wxEnterpriseId
);
logger
.
info
(
"开始刷新:{}"
,
wxEnterpriseId
);
String
taskId
=
dealSyncOperationApiService
.
createQywxTask
(
wxEnterpriseId
,
"后门同步企业微信架构"
,
"定时同步处理"
,
"后门同步企业微信架构"
);
String
taskId
=
dealSyncOperationApiService
.
createQywxTask
(
wxEnterpriseId
,
"后门同步企业微信架构"
,
"定时同步处理"
,
"后门同步企业微信架构"
);
String
ret
=
dealSyncOperationApiService
.
dealQywxDepartment
(
taskId
,
wxEnterpriseId
);
String
ret
=
dealSyncOperationApiService
.
dealQywxDepartment
(
taskId
,
wxEnterpriseId
);
...
...
haoban-manage3-service/src/main/resources/mapper/WxEnterpriseMapper.xml
View file @
b00b135d
...
@@ -594,9 +594,9 @@
...
@@ -594,9 +594,9 @@
where wx_enterprise_id = #{wxEnterpriseId}
where wx_enterprise_id = #{wxEnterpriseId}
</update>
</update>
<select
id=
"listWxEnterpriseByCallbackFlag"
resultType=
"
com.gic.haoban.manage.api.dto.WxEnterpriseDTO
"
>
<select
id=
"listWxEnterpriseByCallbackFlag"
resultType=
"
java.lang.String
"
>
select
select
<include
refid=
"Base_Column_List"
/>
wx_enterprise_id
from tab_haoban_wx_enterprise
from tab_haoban_wx_enterprise
where
where
status_flag = 1
status_flag = 1
...
...
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