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
1791eeb0
Commit
1791eeb0
authored
Dec 21, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
群
parent
2addd96a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
6 deletions
+18
-6
GroupChatService.java
.../haoban/manage/service/service/chat/GroupChatService.java
+2
-1
GroupChatServiceImpl.java
...anage/service/service/chat/impl/GroupChatServiceImpl.java
+11
-3
GroupChatApiServiceImpl.java
...ervice/service/out/impl/chat/GroupChatApiServiceImpl.java
+1
-2
GroupChatController.java
...aoban/manage/web/controller/chat/GroupChatController.java
+4
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/GroupChatService.java
View file @
1791eeb0
...
@@ -4,6 +4,7 @@ import java.util.List;
...
@@ -4,6 +4,7 @@ import java.util.List;
import
com.gic.api.base.commons.BasePageInfo
;
import
com.gic.api.base.commons.BasePageInfo
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.chat.GroupChatDTO
;
import
com.gic.haoban.manage.api.dto.chat.GroupChatDTO
;
import
com.gic.haoban.manage.api.dto.chat.GroupChatOwnerDTO
;
import
com.gic.haoban.manage.api.dto.chat.GroupChatOwnerDTO
;
import
com.gic.haoban.manage.api.dto.chat.GroupChatOwnerHistoryDTO
;
import
com.gic.haoban.manage.api.dto.chat.GroupChatOwnerHistoryDTO
;
...
@@ -105,7 +106,7 @@ public interface GroupChatService {
...
@@ -105,7 +106,7 @@ public interface GroupChatService {
* @return
* @return
* @throws
* @throws
*/
*/
public
void
transfer
(
String
wxEnterpriseId
,
String
staffId
,
List
<
Long
>
groupChatIdList
);
public
ServiceResponse
<
Void
>
transfer
(
String
wxEnterpriseId
,
String
staffId
,
List
<
Long
>
groupChatIdList
);
/**
/**
*
*
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatServiceImpl.java
View file @
1791eeb0
...
@@ -693,7 +693,7 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -693,7 +693,7 @@ public class GroupChatServiceImpl implements GroupChatService {
// 匹配群成员-客户
// 匹配群成员-客户
private
void
matchGicMember
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
unionid
,
String
externalUserId
,
private
void
matchGicMember
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
unionid
,
String
externalUserId
,
TabGroupChatUser
user
)
{
TabGroupChatUser
user
)
{
logger
.
info
(
"入群匹配群客户,unionid={},exteruserid={}"
,
unionid
,
externalUserId
);
logger
.
info
(
"入群匹配群客户,unionid={},exteruserid={}"
,
unionid
,
externalUserId
);
if
(
StringUtils
.
isBlank
(
enterpriseId
))
{
if
(
StringUtils
.
isBlank
(
enterpriseId
))
{
return
;
return
;
}
}
...
@@ -849,11 +849,11 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -849,11 +849,11 @@ public class GroupChatServiceImpl implements GroupChatService {
}
}
@Override
@Override
public
void
transfer
(
String
wxEnterpriseId
,
String
staffId
,
List
<
Long
>
groupChatIdList
)
{
public
ServiceResponse
<
Void
>
transfer
(
String
wxEnterpriseId
,
String
staffId
,
List
<
Long
>
groupChatIdList
)
{
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
);
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
);
if
(
null
==
qwDTO
)
{
if
(
null
==
qwDTO
)
{
logger
.
info
(
"wxEnterpriseId不存在,id={}"
,
wxEnterpriseId
);
logger
.
info
(
"wxEnterpriseId不存在,id={}"
,
wxEnterpriseId
);
return
;
return
ServiceResponse
.
failure
(
"9999"
,
"企业不存在"
)
;
}
}
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByPrimaryKey
(
staffId
);
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByPrimaryKey
(
staffId
);
String
userid
=
staff
.
getWxUserId
();
String
userid
=
staff
.
getWxUserId
();
...
@@ -865,6 +865,14 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -865,6 +865,14 @@ public class GroupChatServiceImpl implements GroupChatService {
ServiceResponse
<
List
<
FailChatListDTO
>>
resp
=
this
.
qywxChatApiService
.
transfer
(
qwDTO
.
getThirdCorpid
(),
ServiceResponse
<
List
<
FailChatListDTO
>>
resp
=
this
.
qywxChatApiService
.
transfer
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
wxChatIdList
,
userid
);
config
.
getWxSuiteid
(),
wxChatIdList
,
userid
);
logger
.
info
(
"群继承={}"
,
JSON
.
toJSONString
(
resp
));
logger
.
info
(
"群继承={}"
,
JSON
.
toJSONString
(
resp
));
if
(!
resp
.
isSuccess
())
{
return
ServiceResponse
.
failure
(
"9999"
,
resp
.
getMessage
());
}
else
{
if
(
CollectionUtils
.
isNotEmpty
(
resp
.
getResult
()))
{
return
ServiceResponse
.
failure
(
"9999"
,
JSON
.
toJSONString
(
resp
.
getResult
()));
}
}
return
ServiceResponse
.
success
();
}
}
// 如果群的人数达到上限,则群GIC侧的下线,记录状态,且从活码中剔除
// 如果群的人数达到上限,则群GIC侧的下线,记录状态,且从活码中剔除
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/chat/GroupChatApiServiceImpl.java
View file @
1791eeb0
...
@@ -205,8 +205,7 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
...
@@ -205,8 +205,7 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
@Override
@Override
public
ServiceResponse
<
Void
>
transfer
(
String
wxEnterpriseId
,
String
staffId
,
List
<
Long
>
groupChatIdList
)
{
public
ServiceResponse
<
Void
>
transfer
(
String
wxEnterpriseId
,
String
staffId
,
List
<
Long
>
groupChatIdList
)
{
this
.
groupChatService
.
transfer
(
wxEnterpriseId
,
staffId
,
groupChatIdList
);
return
this
.
groupChatService
.
transfer
(
wxEnterpriseId
,
staffId
,
groupChatIdList
);
return
ServiceResponse
.
success
();
}
}
@Override
@Override
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatController.java
View file @
1791eeb0
...
@@ -191,6 +191,10 @@ public class GroupChatController {
...
@@ -191,6 +191,10 @@ public class GroupChatController {
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
();
ServiceResponse
<
Void
>
resp
=
this
.
groupChatApiService
.
transfer
(
wxEnterpriseId
,
staffId
,
idList
);
ServiceResponse
<
Void
>
resp
=
this
.
groupChatApiService
.
transfer
(
wxEnterpriseId
,
staffId
,
idList
);
if
(!
resp
.
isSuccess
())
{
GicLogRecordEvaluationContext
.
noWriteLog
();
return
RestResponse
.
failure
(
"9999"
,
resp
.
getMessage
());
}
StaffDTO
staff
=
this
.
staffApiService
.
selectById
(
staffId
);
StaffDTO
staff
=
this
.
staffApiService
.
selectById
(
staffId
);
String
logContent
=
"将【"
+
this
.
getChatNames
(
wxEnterpriseId
,
idList
)
+
"】分配给【"
+
staff
.
getStaffName
()
+
"】继承"
;
String
logContent
=
"将【"
+
this
.
getChatNames
(
wxEnterpriseId
,
idList
)
+
"】分配给【"
+
staff
.
getStaffName
()
+
"】继承"
;
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
...
...
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