Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 70fd0d36
authored
Dec 17, 2021
by
linkwechat8856@163.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
群详情接口
1 parent
922ec016
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeGroupController.java
linkwe-wecom/src/main/resources/mapper/wecom/WeGroupMapper.xml
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeGroupController.java
View file @
70fd0d3
package
com
.
linkwechat
.
web
.
controller
.
wecom
;
package
com
.
linkwechat
.
web
.
controller
.
wecom
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.linkwechat.common.constant.WeConstans
;
import
com.linkwechat.common.constant.WeConstans
;
import
com.linkwechat.common.core.controller.BaseController
;
import
com.linkwechat.common.core.controller.BaseController
;
...
@@ -60,6 +61,22 @@ public class WeGroupController extends BaseController {
...
@@ -60,6 +61,22 @@ public class WeGroupController extends BaseController {
/**
/**
* 群详情
* @param chatId
* @return
*/
@GetMapping
(
"/chatDetail/{chatId}"
)
public
AjaxResult
chatDetail
(
@PathVariable
String
chatId
){
List
<
WeGroup
>
weGroups
=
this
.
weGroupService
.
selectWeGroupList
(
WeGroup
.
builder
()
.
chatId
(
chatId
)
.
build
());
if
(
CollectionUtil
.
isNotEmpty
(
weGroups
)){
return
AjaxResult
.
success
(
weGroups
.
stream
().
findFirst
().
get
());
}
return
AjaxResult
.
success
();
}
/**
* 获取所有群接口(不分页)
* 获取所有群接口(不分页)
* @param weGroup
* @param weGroup
* @return
* @return
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeGroupMapper.xml
View file @
70fd0d3
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
LEFT JOIN we_group_tag_rel wgtr ON wg.chat_id=wgtr.chat_id
LEFT JOIN we_group_tag_rel wgtr ON wg.chat_id=wgtr.chat_id
LEFT JOIN we_tag wt ON wt.tag_id=wgtr.tag_id
LEFT JOIN we_tag wt ON wt.tag_id=wgtr.tag_id
<where>
<where>
<if
test=
"chatId !=null and chatId !=''"
>
wg.chat_id=#{chatId}
</if>
<if
test=
"delFlag !=null"
>
wg.del_flag=#{delFlag}
</if>
<if
test=
"delFlag !=null"
>
wg.del_flag=#{delFlag}
</if>
<if
test=
"groupName != null and groupName != ''"
>
and wg.group_name like concat('%', #{groupName}, '%')
</if>
<if
test=
"groupName != null and groupName != ''"
>
and wg.group_name like concat('%', #{groupName}, '%')
</if>
<if
test=
"groupLeaderName != null and groupLeaderName != ''"
>
and wu.user_name like concat('%', #{groupLeaderName}, '%')
</if>
<if
test=
"groupLeaderName != null and groupLeaderName != ''"
>
and wu.user_name like concat('%', #{groupLeaderName}, '%')
</if>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment