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
57267675
Commit
57267675
authored
Dec 16, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
链接
parent
b5c1c40e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
HmLinkChatMapper.java
...haoban/manage/service/dao/mapper/hm/HmLinkChatMapper.java
+0
-1
HmLinkChatServiceImpl.java
...manage/service/service/hm/impl/HmLinkChatServiceImpl.java
+3
-2
HmLinkServiceImpl.java
...ban/manage/service/service/hm/impl/HmLinkServiceImpl.java
+7
-0
HmLinkChatMapper.xml
...service/src/main/resources/mapper/hm/HmLinkChatMapper.xml
+1
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/hm/HmLinkChatMapper.java
View file @
57267675
package
com
.
gic
.
haoban
.
manage
.
service
.
dao
.
mapper
.
hm
;
package
com
.
gic
.
haoban
.
manage
.
service
.
dao
.
mapper
.
hm
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmLinkChatServiceImpl.java
View file @
57267675
...
@@ -38,9 +38,10 @@ public class HmLinkChatServiceImpl implements HmLinkChatService {
...
@@ -38,9 +38,10 @@ public class HmLinkChatServiceImpl implements HmLinkChatService {
log
.
info
(
"保存群链接={}"
,
JSON
.
toJSONString
(
list
));
log
.
info
(
"保存群链接={}"
,
JSON
.
toJSONString
(
list
));
List
<
HmLinkChatDTO
>
updateList
=
list
.
stream
().
filter
(
dto
->
null
!=
dto
.
getLinkChatId
())
List
<
HmLinkChatDTO
>
updateList
=
list
.
stream
().
filter
(
dto
->
null
!=
dto
.
getLinkChatId
())
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
List
<
Long
>
notDelIdList
=
updateList
.
stream
().
map
(
dto
->
dto
.
getChatHmId
()).
collect
(
Collectors
.
toList
());
log
.
info
(
"不删除={},{}"
,
linkId
,
notDelIdList
);
this
.
hmLinkChatMapper
.
delete
(
linkId
,
notDelIdList
);
if
(
CollectionUtils
.
isNotEmpty
(
updateList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
updateList
))
{
List
<
Long
>
notDelIdList
=
updateList
.
stream
().
map
(
dto
->
dto
.
getChatHmId
()).
collect
(
Collectors
.
toList
());
this
.
hmLinkChatMapper
.
delete
(
linkId
,
notDelIdList
);
for
(
HmLinkChatDTO
item
:
updateList
)
{
for
(
HmLinkChatDTO
item
:
updateList
)
{
TabHmLinkChat
entity
=
EntityUtil
.
changeEntityByJSON
(
TabHmLinkChat
.
class
,
item
);
TabHmLinkChat
entity
=
EntityUtil
.
changeEntityByJSON
(
TabHmLinkChat
.
class
,
item
);
this
.
hmLinkChatMapper
.
update
(
entity
);
this
.
hmLinkChatMapper
.
update
(
entity
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmLinkServiceImpl.java
View file @
57267675
...
@@ -15,6 +15,7 @@ import com.gic.commons.util.EntityUtil;
...
@@ -15,6 +15,7 @@ import com.gic.commons.util.EntityUtil;
import
com.gic.commons.util.PageHelperUtils
;
import
com.gic.commons.util.PageHelperUtils
;
import
com.gic.commons.util.ToolUtil
;
import
com.gic.commons.util.ToolUtil
;
import
com.gic.commons.util.UniqueIdUtils
;
import
com.gic.commons.util.UniqueIdUtils
;
import
com.gic.haoban.manage.api.dto.hm.HmLinkChatDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmLinkDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmLinkDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmLinkStoreDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmLinkStoreDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmLinkSearchQDTO
;
import
com.gic.haoban.manage.api.dto.qdto.hm.HmLinkSearchQDTO
;
...
@@ -150,6 +151,12 @@ public class HmLinkServiceImpl implements HmLinkService {
...
@@ -150,6 +151,12 @@ public class HmLinkServiceImpl implements HmLinkService {
}
}
// 群活码
// 群活码
if
(
dto
.
getLinkType
()==
HmLinkTypeEnum
.
CHAT_HM_LINK_TYPE
.
getLinkType
())
{
if
(
dto
.
getLinkType
()==
HmLinkTypeEnum
.
CHAT_HM_LINK_TYPE
.
getLinkType
())
{
int
index
=
0
;
for
(
HmLinkChatDTO
item
:
dto
.
getLinkChatList
())
{
item
.
setWxEnterpriseId
(
dto
.
getWxEnterpriseId
());
item
.
setEnterpriseId
(
dto
.
getEnterpriseId
());
item
.
setSortNum
(
index
++);
}
this
.
hmLinkChatService
.
save
(
linkId
,
dto
.
getLinkChatList
())
;
this
.
hmLinkChatService
.
save
(
linkId
,
dto
.
getLinkChatList
())
;
}
}
return
dto
.
getLinkCode
();
return
dto
.
getLinkCode
();
...
...
haoban-manage3-service/src/main/resources/mapper/hm/HmLinkChatMapper.xml
View file @
57267675
...
@@ -60,8 +60,7 @@
...
@@ -60,8 +60,7 @@
<!-- =====================删除==================== -->
<!-- =====================删除==================== -->
<update
id=
"delete"
>
<update
id=
"delete"
>
UPDATE tab_haoban_hm_link_chat SET delete_flag = 1 WHERE link_id =
UPDATE tab_haoban_hm_link_chat SET delete_flag = 1 , update_time =now() WHERE link_id = {linkId}
{linkId}
<if
test=
"null != idList and idList.size > 0"
>
<if
test=
"null != idList and idList.size > 0"
>
and link_chat_id in
and link_chat_id in
<foreach
collection=
"idList"
item=
"item"
separator=
","
index=
"index"
<foreach
collection=
"idList"
item=
"item"
separator=
","
index=
"index"
...
...
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