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
07472368
Commit
07472368
authored
Oct 30, 2024
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
社群判断是否有效过滤
parent
881e256f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
GroupChatActivityInviteLogServiceImpl.java
...vice/chat/impl/GroupChatActivityInviteLogServiceImpl.java
+12
-4
GroupChatUserMapper.xml
...ce/src/main/resources/mapper/chat/GroupChatUserMapper.xml
+1
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatActivityInviteLogServiceImpl.java
View file @
07472368
...
...
@@ -179,7 +179,7 @@ public class GroupChatActivityInviteLogServiceImpl implements GroupChatActivityI
Integer
inviteType
=
Constant
.
FLAG_FALSE
;
int
batchNumber
=
-
1
;
Integer
invalidInviteType
=
getActivityEffective
(
context
);
logger
.
info
(
"获取本次入群有效状态:{}
"
,
invalidInviteType
);
logger
.
info
(
"获取本次入群有效状态:{}
,{}"
,
invalidInviteType
,
ChatActivityInvalidInviteTypeEnum
.
getDescByValue
(
invalidInviteType
)
);
if
(
invalidInviteType
==
null
)
{
inviteType
=
Constant
.
FLAG_TRUE
;
//获取奖励批次
...
...
@@ -271,7 +271,9 @@ public class GroupChatActivityInviteLogServiceImpl implements GroupChatActivityI
private
Integer
getActivityEffective
(
GroupChatActivityContext
context
)
{
GroupChatActivityDTO
activity
=
context
.
getChatActivityDTO
();
String
enterpriseId
=
activity
.
getEnterpriseId
();
String
userId
=
context
.
getChatUser
().
getUserId
();
TabGroupChatUser
chatUser
=
context
.
getChatUser
();
String
userId
=
chatUser
.
getUserId
();
Long
chatUserId
=
chatUser
.
getChatUserId
();
Long
chatActivityId
=
context
.
getChatActivityId
();
Integer
inviteType
=
activity
.
getInviteType
();
TabGroupChatActivityInviteLog
inviteLog
=
new
TabGroupChatActivityInviteLog
();
...
...
@@ -285,13 +287,19 @@ public class GroupChatActivityInviteLogServiceImpl implements GroupChatActivityI
if
(
Objects
.
equals
(
ChatActivityInviteTypeEnum
.
NONE_GROUP_CHAT
.
value
,
inviteType
))
{
List
<
TabGroupChatUser
>
chatUserList
=
groupChatUserMapper
.
listByUserId
(
enterpriseId
,
userId
,
1
);
if
(
CollectionUtils
.
isNotEmpty
(
chatUserList
))
{
return
ChatActivityInvalidInviteTypeEnum
.
TWO
.
value
;
TabGroupChatUser
groupChatUser
=
chatUserList
.
get
(
0
);
if
(!
Objects
.
equals
(
groupChatUser
.
getChatUserId
(),
chatUserId
))
{
return
ChatActivityInvalidInviteTypeEnum
.
TWO
.
value
;
}
}
}
if
(
Objects
.
equals
(
ChatActivityInviteTypeEnum
.
FIRST_GROUP_CHAT
.
value
,
inviteType
))
{
List
<
TabGroupChatUser
>
chatUserList2
=
groupChatUserMapper
.
listByUserId
(
enterpriseId
,
userId
,
null
);
if
(
CollectionUtils
.
isNotEmpty
(
chatUserList2
))
{
return
ChatActivityInvalidInviteTypeEnum
.
THREE
.
value
;
TabGroupChatUser
groupChatUser
=
chatUserList2
.
get
(
0
);
if
(!
Objects
.
equals
(
groupChatUser
.
getChatUserId
(),
chatUserId
))
{
return
ChatActivityInvalidInviteTypeEnum
.
THREE
.
value
;
}
}
}
return
null
;
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatUserMapper.xml
View file @
07472368
...
...
@@ -216,6 +216,7 @@
and status_flag = #{statusFlag}
</if>
and delete_flag = 0
order by join_time asc,chat_user_id asc
</select>
<select
id=
"listByExternalUseridForMatch"
resultMap=
"result-map-tabHaobanGroupChatUser"
>
...
...
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