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
98f9e98f
Commit
98f9e98f
authored
Dec 06, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
群主头像
parent
f2e85283
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletions
+26
-1
GroupChatDTO.java
...java/com/gic/haoban/manage/api/dto/chat/GroupChatDTO.java
+10
-1
GroupChatApiServiceImpl.java
...ervice/service/out/impl/chat/GroupChatApiServiceImpl.java
+12
-0
GroupChatPlanLogMapper.xml
...src/main/resources/mapper/chat/GroupChatPlanLogMapper.xml
+4
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/chat/GroupChatDTO.java
View file @
98f9e98f
...
...
@@ -54,10 +54,19 @@ public class GroupChatDTO implements Serializable{
/**gic侧状态1可用,2不可用*/
private
Integer
gicFlag
;
private
String
staffName
;
private
String
staffImage
;
private
String
originalStaffId
;
private
Date
offTime
;
public
Date
getOffTime
()
{
public
String
getStaffImage
()
{
return
staffImage
;
}
public
void
setStaffImage
(
String
staffImage
)
{
this
.
staffImage
=
staffImage
;
}
public
Date
getOffTime
()
{
return
offTime
;
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/chat/GroupChatApiServiceImpl.java
View file @
98f9e98f
...
...
@@ -2,6 +2,7 @@ package com.gic.haoban.manage.service.service.out.impl.chat;
import
java.util.List
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -19,8 +20,10 @@ import com.gic.haoban.manage.api.dto.chat.GroupChatUserDTO;
import
com.gic.haoban.manage.api.dto.qdto.chat.GroupChatSearchQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.chat.GroupChatUserSearchQDTO
;
import
com.gic.haoban.manage.api.service.chat.GroupChatApiService
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaff
;
import
com.gic.haoban.manage.service.pojo.bo.chat.GroupChatBO
;
import
com.gic.haoban.manage.service.pojo.bo.chat.GroupChatUserBO
;
import
com.gic.haoban.manage.service.service.StaffService
;
import
com.gic.haoban.manage.service.service.chat.GroupChatService
;
import
com.gic.haoban.manage.service.service.chat.GroupChatUserService
;
...
...
@@ -33,6 +36,8 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
private
GroupChatService
groupChatService
;
@Autowired
private
GroupChatUserService
groupChatUserService
;
@Autowired
private
StaffService
staffService
;
@Override
public
ServiceResponse
<
Page
<
GroupChatDTO
>>
listPage
(
GroupChatSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
...
...
@@ -53,6 +58,13 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
public
ServiceResponse
<
GroupChatDTO
>
detail
(
String
wxEnterpriseId
,
Long
groupChatId
)
{
GroupChatBO
bo
=
this
.
groupChatService
.
detail
(
wxEnterpriseId
,
groupChatId
);
GroupChatDTO
dto
=
EntityUtil
.
changeEntityByJSON
(
GroupChatDTO
.
class
,
bo
);
if
(
StringUtils
.
isNotBlank
(
dto
.
getStaffId
()))
{
TabHaobanStaff
staff
=
this
.
staffService
.
selectById
(
dto
.
getStaffId
())
;
if
(
null
!=
staff
)
{
dto
.
setStaffName
(
staff
.
getStaffName
());
dto
.
setStaffImage
(
staff
.
getHeadImg
());
}
}
return
ServiceResponse
.
success
(
dto
);
}
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatPlanLogMapper.xml
View file @
98f9e98f
...
...
@@ -68,6 +68,8 @@
SELECT b.clerk_id clerkId ,
b.store_id storeId ,
b.staff_id staffId ,
d.name chatName ,
d.total_count chatTotalCount ,
c.staff_name staffName ,
a.group_chat_id groupChatId,
a.send_status sendStatus,
...
...
@@ -76,6 +78,7 @@
FROM tab_haoban_group_chat_plan_log a
LEFT JOIN tab_haoban_group_chat_plan_owner_log b ON a.`own_log_id` = b.`owner_log_id`
LEFT JOIN tab_haoban_staff c ON b.`staff_id` = c.`staff_id`
LEFT JOIN tab_haoban_group_chat d on a.group_chat_id = d.group_chat_id
where a.wx_enterprise_id = #{wxEnterpriseId} and plan_id = #{planId}
</select>
</mapper>
\ No newline at end of file
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