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
6d24ddc3
Commit
6d24ddc3
authored
Apr 11, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
6567ba2b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+6
-7
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
6d24ddc3
...
@@ -3,6 +3,7 @@ package com.gic.haoban.manage.service.service.out.impl;
...
@@ -3,6 +3,7 @@ package com.gic.haoban.manage.service.service.out.impl;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Collections
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -18,9 +19,6 @@ import org.apache.logging.log4j.Logger;
...
@@ -18,9 +19,6 @@ import org.apache.logging.log4j.Logger;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.dto.ClerkDTO
;
...
@@ -54,6 +52,7 @@ import com.gic.haoban.manage.service.entity.TabHaobanDepartment;
...
@@ -54,6 +52,7 @@ import com.gic.haoban.manage.service.entity.TabHaobanDepartment;
import
com.gic.haoban.manage.service.entity.TabHaobanStaff
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaff
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffDepartmentRelated
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffDepartmentRelated
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxApplication
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxApplication
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxEnterpriseRelated
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxEnterpriseRelated
;
import
com.gic.haoban.manage.service.service.DepartmentService
;
import
com.gic.haoban.manage.service.service.DepartmentService
;
import
com.gic.haoban.manage.service.service.MemberQueryService
;
import
com.gic.haoban.manage.service.service.MemberQueryService
;
...
@@ -80,7 +79,7 @@ import com.gic.wechat.api.service.qywx.QywxSuiteApiService;
...
@@ -80,7 +79,7 @@ import com.gic.wechat.api.service.qywx.QywxSuiteApiService;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
import
com.google.common.collect.Sets
;
import
com.google.common.collect.Sets
;
import
java.util.*
;
import
cn.hutool.core.convert.Convert
;
/**
/**
* 接收企业微信或者gic推送消息进行处理
* 接收企业微信或者gic推送消息进行处理
...
@@ -237,12 +236,12 @@ public class MessageApiServiceImpl implements MessageApiService {
...
@@ -237,12 +236,12 @@ public class MessageApiServiceImpl implements MessageApiService {
return
;
return
;
}
}
String
corpId
=
qywxCallBackDTO
.
getAuthCorpId
();
String
corpId
=
qywxCallBackDTO
.
getAuthCorpId
();
TabHaobanWx
Application
wxApplication
=
wxApplicationService
.
selectByC
orpId
(
corpId
);
TabHaobanWx
Enterprise
wxEnterprise
=
this
.
wxEnterpriseService
.
getEnterpriseByc
orpId
(
corpId
);
if
(
Objects
.
isNull
(
wx
Application
))
{
if
(
Objects
.
isNull
(
wx
Enterprise
))
{
log
.
info
(
"授权企业不存在,{}"
,
corpId
);
log
.
info
(
"授权企业不存在,{}"
,
corpId
);
return
;
return
;
}
}
String
wxEnterpriseId
=
wx
Application
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
wx
Enterprise
.
getWxEnterpriseId
();
String
changeType
=
qywxCallBackDTO
.
getChangeType
();
String
changeType
=
qywxCallBackDTO
.
getChangeType
();
if
(
changeType
.
equals
(
WxEditType
.
ADD_USER
.
getCode
()))
{
if
(
changeType
.
equals
(
WxEditType
.
ADD_USER
.
getCode
()))
{
...
...
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