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
70e02fe5
Commit
70e02fe5
authored
Jun 12, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微托管
parent
94b3d5d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
GroupChatApiService.java
...c/haoban/manage/api/service/chat/GroupChatApiService.java
+3
-0
GroupChatApiServiceImpl.java
...ervice/service/out/impl/chat/GroupChatApiServiceImpl.java
+17
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/chat/GroupChatApiService.java
View file @
70e02fe5
...
@@ -160,4 +160,7 @@ public interface GroupChatApiService {
...
@@ -160,4 +160,7 @@ public interface GroupChatApiService {
*/
*/
public
ServiceResponse
<
List
<
GroupChatDTO
>>
listChatByIdList
(
String
wxEnterpriseId
,
List
<
Long
>
groupChatIdList
);
public
ServiceResponse
<
List
<
GroupChatDTO
>>
listChatByIdList
(
String
wxEnterpriseId
,
List
<
Long
>
groupChatIdList
);
public
ServiceResponse
<
GroupChatDTO
>
getByWxChatId
(
String
wxEnterpriseId
,
String
wxChatId
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/chat/GroupChatApiServiceImpl.java
View file @
70e02fe5
...
@@ -11,7 +11,9 @@ import java.util.stream.Collectors;
...
@@ -11,7 +11,9 @@ import java.util.stream.Collectors;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.service.StoreService
;
import
com.gic.enterprise.api.service.StoreService
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanClerkMainStoreRelatedMapper
;
import
com.gic.haoban.manage.service.dao.mapper.TabHaobanClerkMainStoreRelatedMapper
;
import
com.gic.haoban.manage.service.dao.mapper.chat.GroupChatMapper
;
import
com.gic.haoban.manage.service.entity.TabHaobanClerkMainStoreRelated
;
import
com.gic.haoban.manage.service.entity.TabHaobanClerkMainStoreRelated
;
import
com.gic.haoban.manage.service.entity.chat.TabGroupChat
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.LogManager
;
...
@@ -69,6 +71,8 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
...
@@ -69,6 +71,8 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
private
TabHaobanClerkMainStoreRelatedMapper
clerkMainStoreRelatedMapper
;
private
TabHaobanClerkMainStoreRelatedMapper
clerkMainStoreRelatedMapper
;
@Autowired
@Autowired
private
StoreService
storeService
;
private
StoreService
storeService
;
@Autowired
private
GroupChatMapper
groupChatMapper
;
@Override
@Override
public
ServiceResponse
<
Page
<
GroupChatDTO
>>
listPage
(
GroupChatSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
public
ServiceResponse
<
Page
<
GroupChatDTO
>>
listPage
(
GroupChatSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
...
@@ -284,4 +288,17 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
...
@@ -284,4 +288,17 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
}
}
return
ServiceResponse
.
success
();
return
ServiceResponse
.
success
();
}
}
@Override
public
ServiceResponse
<
GroupChatDTO
>
getByWxChatId
(
String
wxEnterpriseId
,
String
wxChatId
)
{
TabGroupChat
groupChat
=
this
.
groupChatMapper
.
selectByWxChatId
(
wxEnterpriseId
,
wxChatId
);
if
(
null
==
groupChat
)
{
groupChat
=
this
.
groupChatMapper
.
selectByWxChatIdDk
(
wxEnterpriseId
,
wxChatId
)
;
}
if
(
null
==
groupChat
)
{
return
ServiceResponse
.
success
(
null
)
;
}
GroupChatDTO
dto
=
EntityUtil
.
changeEntityByJSON
(
GroupChatDTO
.
class
,
groupChat
)
;
return
ServiceResponse
.
success
(
dto
);
}
}
}
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