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
3bd1053d
Commit
3bd1053d
authored
Dec 21, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
操作日志
parent
1791eeb0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
6 deletions
+21
-6
GroupChatOwnerHistoryMapper.java
.../service/dao/mapper/chat/GroupChatOwnerHistoryMapper.java
+2
-0
GroupChatServiceImpl.java
...anage/service/service/chat/impl/GroupChatServiceImpl.java
+4
-0
GroupChatOwnerHistoryMapper.xml
...ain/resources/mapper/chat/GroupChatOwnerHistoryMapper.xml
+6
-1
GroupChatHmController.java
...ban/manage/web/controller/chat/GroupChatHmController.java
+7
-3
GroupChatPlanController.java
...n/manage/web/controller/chat/GroupChatPlanController.java
+2
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/chat/GroupChatOwnerHistoryMapper.java
View file @
3bd1053d
...
@@ -20,6 +20,8 @@ public interface GroupChatOwnerHistoryMapper {
...
@@ -20,6 +20,8 @@ public interface GroupChatOwnerHistoryMapper {
public
int
insert
(
TabGroupChatOwnerHistory
entity
);
public
int
insert
(
TabGroupChatOwnerHistory
entity
);
public
TabGroupChatOwnerHistory
getGroupChatNowStaff
(
@Param
(
"groupChatId"
)
Long
groupChatId
,
@Param
(
"staffId"
)
String
staffId
)
;
public
int
updateOwnerEnd
(
@Param
(
"groupChatId"
)
Long
groupChatId
,
@Param
(
"staffId"
)
String
staffId
);
public
int
updateOwnerEnd
(
@Param
(
"groupChatId"
)
Long
groupChatId
,
@Param
(
"staffId"
)
String
staffId
);
public
List
<
GroupChatOwnerHistoryDTO
>
listAll
(
@Param
(
"groupChatId"
)
Long
groupChatId
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
public
List
<
GroupChatOwnerHistoryDTO
>
listAll
(
@Param
(
"groupChatId"
)
Long
groupChatId
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatServiceImpl.java
View file @
3bd1053d
...
@@ -475,6 +475,7 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -475,6 +475,7 @@ public class GroupChatServiceImpl implements GroupChatService {
private
void
updateGroupChatDetail
(
WxEnterpriseQwDTO
qwDTO
,
TabGroupChat
chat
,
boolean
syncMember
)
{
private
void
updateGroupChatDetail
(
WxEnterpriseQwDTO
qwDTO
,
TabGroupChat
chat
,
boolean
syncMember
)
{
// 控制同时刷新
// 控制同时刷新
Long
groupChatId
=
chat
.
getGroupChatId
();
Long
groupChatId
=
chat
.
getGroupChatId
();
String
wxEnterpriseId
=
chat
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
chat
.
getWxEnterpriseId
();
String
enterpriseId
=
chat
.
getEnterpriseId
();
String
enterpriseId
=
chat
.
getEnterpriseId
();
...
@@ -671,6 +672,9 @@ public class GroupChatServiceImpl implements GroupChatService {
...
@@ -671,6 +672,9 @@ public class GroupChatServiceImpl implements GroupChatService {
return
;
return
;
}
}
if
(
null
!=
newStaffId
)
{
if
(
null
!=
newStaffId
)
{
if
(
null
!=
this
.
groupChatOwnerHistoryMapper
.
getGroupChatNowStaff
(
groupChatId
,
newStaffId
))
{
return
;
}
TabGroupChatOwnerHistory
entity
=
new
TabGroupChatOwnerHistory
();
TabGroupChatOwnerHistory
entity
=
new
TabGroupChatOwnerHistory
();
entity
.
setOwnerHistoryId
(
UniqueIdUtils
.
uniqueLong
());
entity
.
setOwnerHistoryId
(
UniqueIdUtils
.
uniqueLong
());
entity
.
setWxEnterpriseId
(
wxEnterpriseId
);
entity
.
setWxEnterpriseId
(
wxEnterpriseId
);
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatOwnerHistoryMapper.xml
View file @
3bd1053d
...
@@ -38,12 +38,17 @@
...
@@ -38,12 +38,17 @@
]]>
]]>
</insert>
</insert>
<select
id=
"getGroupChatNowStaff"
resultMap=
"result-map-tabHaobanGroupChatOwnerHistory"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_group_chat_owner_history
where group_chat_id=#{groupChatId} and staff_id=#{staffId} and end_time is null
</select>
<!-- ==================更新 ========== -->
<!-- ==================更新 ========== -->
<update
id=
"updateOwnerEnd"
>
<update
id=
"updateOwnerEnd"
>
<![CDATA[
<![CDATA[
UPDATE tab_haoban_group_chat_owner_history SET
UPDATE tab_haoban_group_chat_owner_history SET
end_time= now()
end_time= now()
where group_chat_id=#{groupChatId} and
where group_chat_id=#{groupChatId} and
staff_id=#{staffId}
]]>
]]>
</update>
</update>
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatHmController.java
View file @
3bd1053d
...
@@ -137,7 +137,7 @@ public class GroupChatHmController {
...
@@ -137,7 +137,7 @@ public class GroupChatHmController {
if
(
StringUtils
.
isNotBlank
(
logContent
))
{
if
(
StringUtils
.
isNotBlank
(
logContent
))
{
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
GicLogRecordEvaluationContext
.
putAttribute
(
"logValue"
,
logContent
);
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
GicLogRecordEvaluationContext
.
putOptTargetId
(
AuthWebRequestUtil
.
getLoginUser
().
getClerkId
());
}
else
{
}
else
{
GicLogRecordEvaluationContext
.
noWriteLog
();
GicLogRecordEvaluationContext
.
noWriteLog
();
}
}
return
RestResponse
.
successResult
();
return
RestResponse
.
successResult
();
...
@@ -168,15 +168,19 @@ public class GroupChatHmController {
...
@@ -168,15 +168,19 @@ public class GroupChatHmController {
d
=
"开启自动建群功能【"
+
newDTO
.
getRoomBaseName
()
+
newDTO
.
getRoomBaseId
()
+
"】"
;
d
=
"开启自动建群功能【"
+
newDTO
.
getRoomBaseName
()
+
newDTO
.
getRoomBaseId
()
+
"】"
;
content
.
append
(
d
);
content
.
append
(
d
);
}
}
String
e
=
comp
(
wxEnterpriseId
,
enterpriseId
,
"群名前缀"
,
oldDTO
.
getRoomBaseName
(),
newDTO
.
getRoomBaseName
(),
0
);
String
e
=
null
;
String
f
=
null
;
if
(
null
==
c
&&
d
==
null
)
{
e
=
comp
(
wxEnterpriseId
,
enterpriseId
,
"群名前缀"
,
oldDTO
.
getRoomBaseName
(),
newDTO
.
getRoomBaseName
(),
0
);
if
(
null
!=
e
)
{
if
(
null
!=
e
)
{
content
.
append
(
e
);
content
.
append
(
e
);
}
}
String
f
=
comp
(
wxEnterpriseId
,
enterpriseId
,
"群起始序号"
,
oldDTO
.
getRoomBaseId
()
+
""
,
newDTO
.
getRoomBaseId
()
+
""
,
f
=
comp
(
wxEnterpriseId
,
enterpriseId
,
"群起始序号"
,
oldDTO
.
getRoomBaseId
()
+
""
,
newDTO
.
getRoomBaseId
()
+
""
,
0
);
0
);
if
(
null
!=
f
)
{
if
(
null
!=
f
)
{
content
.
append
(
f
);
content
.
append
(
f
);
}
}
}
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isAllBlank
(
a
,
b
,
c
,
d
,
e
,
f
))
{
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isAllBlank
(
a
,
b
,
c
,
d
,
e
,
f
))
{
return
null
;
return
null
;
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/chat/GroupChatPlanController.java
View file @
3bd1053d
...
@@ -250,8 +250,8 @@ public class GroupChatPlanController {
...
@@ -250,8 +250,8 @@ public class GroupChatPlanController {
String
f
=
null
;
String
f
=
null
;
if
(!
oldDTO
.
getExpireDays
().
equals
(
newDTO
.
getExpireDays
()))
{
if
(!
oldDTO
.
getExpireDays
().
equals
(
newDTO
.
getExpireDays
()))
{
StringBuilder
sb
=
new
StringBuilder
();
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"结束时间"
).
append
(
"「"
).
append
(
oldDTO
.
getExpireDays
()).
append
(
"天后
,
"
).
append
(
""
).
append
(
"」变更为「"
)
sb
.
append
(
"结束时间"
).
append
(
"「"
).
append
(
oldDTO
.
getExpireDays
()).
append
(
"天后"
).
append
(
""
).
append
(
"」变更为「"
)
.
append
(
newDTO
.
getExpireDays
()).
append
(
"天后
,
"
).
append
(
""
).
append
(
"」"
);
.
append
(
newDTO
.
getExpireDays
()).
append
(
"天后"
).
append
(
""
).
append
(
"」"
);
f
=
sb
.
toString
();
f
=
sb
.
toString
();
content
.
append
(
f
);
content
.
append
(
f
);
}
}
...
...
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