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
2a227103
Commit
2a227103
authored
Dec 22, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
落地页
parent
d73b5685
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
13 deletions
+48
-13
HmPageBO.java
...va/com/gic/haoban/manage/service/pojo/bo/hm/HmPageBO.java
+10
-0
GroupChatService.java
.../haoban/manage/service/service/chat/GroupChatService.java
+5
-4
GroupChatServiceImpl.java
...anage/service/service/chat/impl/GroupChatServiceImpl.java
+31
-5
GroupChatHmMapper.xml
...vice/src/main/resources/mapper/chat/GroupChatHmMapper.xml
+2
-4
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/pojo/bo/hm/HmPageBO.java
View file @
2a227103
...
@@ -86,6 +86,16 @@ public class HmPageBO implements Serializable {
...
@@ -86,6 +86,16 @@ public class HmPageBO implements Serializable {
private
Date
createTime
;
private
Date
createTime
;
private
Date
updateTime
;
private
Date
updateTime
;
private
int
pageType
;
public
int
getPageType
()
{
return
pageType
;
}
public
void
setPageType
(
int
pageType
)
{
this
.
pageType
=
pageType
;
}
public
Long
getPageId
()
{
public
Long
getPageId
()
{
return
pageId
;
return
pageId
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/GroupChatService.java
View file @
2a227103
...
@@ -129,9 +129,9 @@ public interface GroupChatService {
...
@@ -129,9 +129,9 @@ public interface GroupChatService {
* @throws
* @throws
*/
*/
public
void
handleHmChatFull
(
String
params
);
public
void
handleHmChatFull
(
String
params
);
public
void
ownerDimission
(
String
staffId
)
;
public
void
ownerDimission
(
String
staffId
);
/**
/**
*
*
* @Title: ownerDimission
* @Title: ownerDimission
...
@@ -139,6 +139,6 @@ public interface GroupChatService {
...
@@ -139,6 +139,6 @@ public interface GroupChatService {
* @author xugh
* @author xugh
* @throws
* @throws
*/
*/
public
void
ownerDimission
()
;
public
void
ownerDimission
();
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatServiceImpl.java
View file @
2a227103
...
@@ -370,9 +370,9 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -370,9 +370,9 @@ public class GroupChatServiceImpl implements GroupChatService {
@Override
@Override
public
void
ownerDimission
(
String
staffId
)
{
public
void
ownerDimission
(
String
staffId
)
{
logger
.
info
(
"群主离职,刷新群状态,staffId={}"
,
staffId
);
logger
.
info
(
"群主离职,刷新群状态,staffId={}"
,
staffId
);
TabGroupChatOwner
owner
=
this
.
groupChatOwnerMapper
.
selectByStaffId
(
staffId
)
;
TabGroupChatOwner
owner
=
this
.
groupChatOwnerMapper
.
selectByStaffId
(
staffId
);
if
(
null
!=
owner
)
{
if
(
null
!=
owner
)
{
this
.
groupChatOwnerMapper
.
updateChatCount
(
staffId
,
owner
.
getChatCount
())
;
this
.
groupChatOwnerMapper
.
updateChatCount
(
staffId
,
owner
.
getChatCount
());
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByPrimaryKey
(
staffId
);
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByPrimaryKey
(
staffId
);
this
.
dimissionOwner
(
staff
.
getWxEnterpriseId
(),
staff
.
getWxUserId
(),
staff
.
getWxOpenUseId
());
this
.
dimissionOwner
(
staff
.
getWxEnterpriseId
(),
staff
.
getWxUserId
(),
staff
.
getWxOpenUseId
());
}
}
...
@@ -382,8 +382,12 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -382,8 +382,12 @@ public class GroupChatServiceImpl implements GroupChatService {
public
void
ownerDimission
()
{
public
void
ownerDimission
()
{
List
<
GroupChatOwnerDTO
>
dimissionOwnerList
=
this
.
groupChatOwnerMapper
.
dimissionOwnerList
();
List
<
GroupChatOwnerDTO
>
dimissionOwnerList
=
this
.
groupChatOwnerMapper
.
dimissionOwnerList
();
for
(
GroupChatOwnerDTO
dto
:
dimissionOwnerList
)
{
for
(
GroupChatOwnerDTO
dto
:
dimissionOwnerList
)
{
logger
.
info
(
"群主离职,群状态处理={}"
,
JSON
.
toJSONString
(
dto
));
try
{
this
.
dimissionOwner
(
dto
.
getWxEnterpriseId
(),
dto
.
getWxUserId
(),
dto
.
getWxOpenUserId
());
logger
.
info
(
"群主离职,群状态处理={}"
,
JSON
.
toJSONString
(
dto
));
this
.
dimissionOwner
(
dto
.
getWxEnterpriseId
(),
dto
.
getWxUserId
(),
dto
.
getWxOpenUserId
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
}
}
...
@@ -607,6 +611,7 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -607,6 +611,7 @@ public class GroupChatServiceImpl implements GroupChatService {
TabGroupChatUser
user
=
userMap
.
get
(
userId
);
TabGroupChatUser
user
=
userMap
.
get
(
userId
);
if
(
null
!=
user
)
{
if
(
null
!=
user
)
{
logger
.
info
(
"更新用户,id={}"
,
userId
);
logger
.
info
(
"更新用户,id={}"
,
userId
);
boolean
updateFlag
=
false
;
user
.
setAdminFlag
(
0
);
user
.
setAdminFlag
(
0
);
if
(
member
.
getUserid
().
equals
(
owner
))
{
if
(
member
.
getUserid
().
equals
(
owner
))
{
user
.
setAdminFlag
(
1
);
user
.
setAdminFlag
(
1
);
...
@@ -615,13 +620,24 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -615,13 +620,24 @@ public class GroupChatServiceImpl implements GroupChatService {
}
}
if
(
StringUtils
.
isEmpty
(
user
.
getMemberId
()))
{
if
(
StringUtils
.
isEmpty
(
user
.
getMemberId
()))
{
this
.
matchGicMember
(
wxEnterpriseId
,
enterpriseId
,
member
.
getUnionid
(),
userId
,
user
);
this
.
matchGicMember
(
wxEnterpriseId
,
enterpriseId
,
member
.
getUnionid
(),
userId
,
user
);
if
(
StringUtils
.
isNotEmpty
(
user
.
getMemberId
()))
{
updateFlag
=
true
;
}
}
}
if
(
user
.
getUserType
()
==
3
)
{
if
(
user
.
getUserType
()
==
3
)
{
totalMemberCount
++;
totalMemberCount
++;
}
}
user
.
setUserName
(
userName
);
user
.
setUserName
(
userName
);
if
(
this
.
isDiff
(
user
.
getUserName
(),
userName
))
{
updateFlag
=
true
;
}
user
.
setNickName
(
nickName
);
user
.
setNickName
(
nickName
);
this
.
groupChatUserMapper
.
update
(
user
);
if
(
this
.
isDiff
(
user
.
getNickName
(),
nickName
))
{
updateFlag
=
true
;
}
if
(
updateFlag
)
{
this
.
groupChatUserMapper
.
update
(
user
);
}
continue
;
continue
;
}
}
user
=
new
TabGroupChatUser
();
user
=
new
TabGroupChatUser
();
...
@@ -695,6 +711,16 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -695,6 +711,16 @@ public class GroupChatServiceImpl implements GroupChatService {
quitMemberCount
);
quitMemberCount
);
}
}
private
boolean
isDiff
(
String
a
,
String
b
)
{
if
(
StringUtils
.
isBlank
(
a
)
&&
StringUtils
.
isBlank
(
b
))
{
return
false
;
}
if
(
StringUtils
.
isNotBlank
(
a
)
&&
StringUtils
.
isNotBlank
(
b
)
&&
a
.
equals
(
b
))
{
return
false
;
}
return
true
;
}
private
void
updateData
(
Long
groupChatId
,
int
totalCount
,
int
totalMemberCount
,
int
addMemberCount
,
int
addCount
,
private
void
updateData
(
Long
groupChatId
,
int
totalCount
,
int
totalMemberCount
,
int
addMemberCount
,
int
addCount
,
int
quitCount
,
int
quitMemberCount
)
{
int
quitCount
,
int
quitMemberCount
)
{
logger
.
info
(
"更新群的统计,groupChatId={}"
,
groupChatId
);
logger
.
info
(
"更新群的统计,groupChatId={}"
,
groupChatId
);
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatHmMapper.xml
View file @
2a227103
...
@@ -101,8 +101,7 @@
...
@@ -101,8 +101,7 @@
<!-- =====================删除==================== -->
<!-- =====================删除==================== -->
<update
id=
"deleteById"
parameterType=
"long"
>
<update
id=
"deleteById"
parameterType=
"long"
>
UPDATE
UPDATE
tab_haoban_group_chat_hm SET delete_flag = 1 WHERE chat_hm_id =
tab_haoban_group_chat_hm SET delete_flag = 1 WHERE chat_hm_id = #{chatHmId}
#{chatHmId}
</update>
</update>
...
@@ -134,8 +133,7 @@
...
@@ -134,8 +133,7 @@
resultMap=
"result-map-tabHaobanGroupChatHm"
>
resultMap=
"result-map-tabHaobanGroupChatHm"
>
SELECT
SELECT
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
FROM tab_haoban_group_chat_hm WHERE chat_hm_id = #{chatHmId} and
FROM tab_haoban_group_chat_hm WHERE chat_hm_id = #{chatHmId} and delete_flag = 0
delete_flag = 0
</select>
</select>
<update
id=
"updateLinkCount"
>
<update
id=
"updateLinkCount"
>
...
...
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