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
13c1f7bc
Commit
13c1f7bc
authored
Dec 21, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排序
parent
52bd0bad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
HmLinkApiServiceImpl.java
...age/service/service/out/impl/hm/HmLinkApiServiceImpl.java
+12
-8
GroupChatOwnerMapper.xml
...e/src/main/resources/mapper/chat/GroupChatOwnerMapper.xml
+1
-1
GroupChatPlanMapper.xml
...ce/src/main/resources/mapper/chat/GroupChatPlanMapper.xml
+1
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmLinkApiServiceImpl.java
View file @
13c1f7bc
...
...
@@ -161,13 +161,14 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
@Override
public
ServiceResponse
<
List
<
HmLinkDTO
>>
listForSms
(
String
wxEnterpriseId
,
String
enterprieId
,
String
linkName
,
Integer
linkType
)
{
return
this
.
listForSms
(
wxEnterpriseId
,
enterprieId
,
linkName
,
linkType
,
null
);
return
this
.
listForSms
(
wxEnterpriseId
,
enterprieId
,
linkName
,
linkType
,
null
);
}
@Override
public
ServiceResponse
<
List
<
HmLinkDTO
>>
listForSms
(
String
wxEnterpriseId
,
String
enterprieId
,
String
linkName
,
Integer
linkType
,
List
<
String
>
creatorIdList
)
{
List
<
HmLinkBO
>
list
=
this
.
hmLinkService
.
listForSms
(
wxEnterpriseId
,
enterprieId
,
linkName
,
linkType
,
creatorIdList
);
List
<
HmLinkBO
>
list
=
this
.
hmLinkService
.
listForSms
(
wxEnterpriseId
,
enterprieId
,
linkName
,
linkType
,
creatorIdList
);
List
<
HmLinkDTO
>
retList
=
EntityUtil
.
changeEntityListByJSON
(
HmLinkDTO
.
class
,
list
);
return
ServiceResponse
.
success
(
retList
);
}
...
...
@@ -201,8 +202,10 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
}
if
(
CollectionUtils
.
isNotEmpty
(
hmList
))
{
for
(
HmLinkChatDTO
item
:
hmList
)
{
boolean
flag
=
this
.
memberCondition
(
enterpriseId
,
memberId
,
item
,
link
.
getCreatorId
()
,
link
.
getUpdateTime
());
boolean
flag
=
this
.
memberCondition
(
enterpriseId
,
memberId
,
item
,
link
.
getCreatorId
(),
link
.
getUpdateTime
());
if
(
flag
)
{
log
.
info
(
"使用特殊群活码={}"
,
item
.
getChatHmId
());
hmId
=
item
.
getChatHmId
();
break
;
}
...
...
@@ -210,8 +213,8 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
}
GroupChatHmBO
hm
=
null
;
if
(
null
==
hmId
)
{
log
.
info
(
"
使用其它群活码
"
);
hmId
=
link
.
getOtherChatHmId
(
);
log
.
info
(
"
群活码不存在
"
);
return
ServiceResponse
.
failure
(
"9999"
,
"群活码不存在"
);
}
hm
=
this
.
groupChatHmService
.
getById
(
hmId
);
if
(
null
==
hm
)
{
...
...
@@ -256,7 +259,7 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
// 如果是社群链接
if
(
link
.
getLinkType
()
==
HmLinkTypeEnum
.
CHAT_HM_LINK_TYPE
.
getLinkType
())
{
log
.
info
(
"群链接,linkId={}"
,
link
.
getLinkId
());
log
.
info
(
"群链接,linkId={}"
,
link
.
getLinkId
());
return
this
.
getLinkChatHmFromWxa
(
wxEnterpriseId
,
enterpriseId
,
mixPhone
,
unionid
,
memberId
,
link
,
retDTO
);
}
...
...
@@ -641,7 +644,8 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
return
memberDataDTO
;
}
private
boolean
memberCondition
(
String
enterpriseId
,
String
memberId
,
HmLinkChatDTO
dto
,
String
creatorId
,
Date
updateTime
)
{
private
boolean
memberCondition
(
String
enterpriseId
,
String
memberId
,
HmLinkChatDTO
dto
,
String
creatorId
,
Date
updateTime
)
{
boolean
flag
=
true
;
int
memberType
=
dto
.
getMemberType
();
String
limitCondition
=
dto
.
getFilterJson
();
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatOwnerMapper.xml
View file @
13c1f7bc
...
...
@@ -64,7 +64,7 @@
#{id,jdbcType=VARCHAR}
</foreach>
</if>
<if
test=
"null != searchParams"
>
<if
test=
"null != searchParams
and ''!=searchParams
"
>
and b.staff_name like '%${searchParams}%'
</if>
<if
test=
"status==1"
>
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatPlanMapper.xml
View file @
13c1f7bc
...
...
@@ -189,6 +189,7 @@
#{id}
</foreach>
</if>
order by create_time desc
</select>
<update
id=
"updateData"
>
...
...
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