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
03a98631
Commit
03a98631
authored
Jun 17, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
群活码-链接调整
parent
0cea089b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
HmLinkApiServiceImpl.java
...age/service/service/out/impl/hm/HmLinkApiServiceImpl.java
+10
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmLinkApiServiceImpl.java
View file @
03a98631
...
...
@@ -219,8 +219,12 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
chatActivity
.
setWxEnterpriseId
(
wxEnterpriseId
);
hmQDTO
.
setChatActivity
(
chatActivity
);
if
(
StringUtils
.
isNotBlank
(
inStoreId
))
{
log
.
info
(
"lbs后指定门店={}"
,
inStoreId
);
hmQDTO
.
setInStoreId
(
inStoreId
);
List
<
GroupChatHmBO
>
hmBOList
=
joinRuleManager
.
handleMainStore
(
hmQDTO
);
if
(
CollectionUtils
.
isNotEmpty
(
hmBOList
))
{
hmId
=
hmBOList
.
get
(
0
).
getChatHmId
()
;
}
}
else
{
JSONArray
arr
=
JSONArray
.
parseArray
(
chatStoreRule
)
;
for
(
int
i
=
0
;
i
<
arr
.
size
();
i
++)
{
...
...
@@ -229,18 +233,21 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
if
(
open
==
1
)
{
int
type
=
json
.
getIntValue
(
"type"
)
;
if
(
type
==
1
)
{
log
.
info
(
"服务门店"
);
List
<
GroupChatHmBO
>
hmBOList
=
joinRuleManager
.
handleMainStore
(
hmQDTO
);
if
(
CollectionUtils
.
isNotEmpty
(
hmBOList
))
{
hmId
=
hmBOList
.
get
(
0
).
getChatHmId
()
;
break
;
}
}
else
if
(
type
==
2
)
{
log
.
info
(
"协管门店"
);
List
<
GroupChatHmBO
>
hmBOList
=
joinRuleManager
.
handleOtherStore
(
hmQDTO
);
if
(
CollectionUtils
.
isNotEmpty
(
hmBOList
))
{
hmId
=
hmBOList
.
get
(
0
).
getChatHmId
()
;
break
;
}
}
else
if
(
type
==
3
)
{
log
.
info
(
"lbs门店"
);
if
(
StringUtils
.
isNotEmpty
(
qdto
.
getLatitude
())
&&
StringUtils
.
isNotEmpty
(
qdto
.
getLongitude
())
&&
StringUtils
.
isNotEmpty
(
qdto
.
getDistrictCode
()))
{
Page
<
StoreDTO
>
page
=
new
Page
<>()
;
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
...
...
@@ -257,11 +264,13 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
break
;
}
List
<
String
>
storeIds
=
page
.
getResult
().
stream
().
map
(
StoreDTO:
:
getStoreId
).
collect
(
Collectors
.
toList
());
log
.
info
(
"lbs门店={}"
,
storeIds
);
//获取storeId对应活码
Map
<
String
,
List
<
GroupChatHmBO
>>
storeToHmMap
=
this
.
joinRuleManager
.
getStoreIdToGroupChatHmBOMap
(
enterpriseId
,
wxEnterpriseId
,
storeIds
);
if
(
MapUtil
.
isEmpty
(
storeToHmMap
))
{
break
;
}
log
.
info
(
"lbs门店={}"
,
storeToHmMap
.
size
());
if
(
storeToHmMap
.
size
()==
1
)
{
hmId
=
storeToHmMap
.
values
().
iterator
().
next
().
get
(
0
).
getChatHmId
();
break
;
...
...
@@ -294,6 +303,7 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
}
}
}
log
.
info
(
"hmid={}"
,
hmId
);
GroupChatHmBO
hm
=
null
;
if
(
null
==
hmId
)
{
log
.
info
(
"群活码不存在"
);
...
...
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