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 886fa7ff
authored
Dec 07, 2020
by
水库浪子
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改欢迎语模板BUG;修改客户群搜索BUG;修改客户搜索BUG
1 parent
40dd0bf1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
2 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeGroup.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeMsgTlpServiceImpl.java
linkwe-wecom/src/main/resources/mapper/wecom/WeGroupMapper.xml
linkwe-wecom/src/main/resources/mapper/wecom/WeGroupMemberMapper.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeGroup.java
View file @
886fa7f
...
@@ -49,4 +49,18 @@ public class WeGroup {
...
@@ -49,4 +49,18 @@ public class WeGroup {
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
groupLeaderName
;
private
String
groupLeaderName
;
@TableField
(
exist
=
false
)
private
String
groupLeader
;
@TableField
(
exist
=
false
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
String
beginTime
;
@TableField
(
exist
=
false
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
String
endTime
;
}
}
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeMsgTlpServiceImpl.java
View file @
886fa7f
...
@@ -68,6 +68,8 @@ public class WeMsgTlpServiceImpl implements IWeMsgTlpService
...
@@ -68,6 +68,8 @@ public class WeMsgTlpServiceImpl implements IWeMsgTlpService
int
returnCode
=
weMsgTlpMapper
.
insertWeMsgTlp
(
weMsgTlp
);
int
returnCode
=
weMsgTlpMapper
.
insertWeMsgTlp
(
weMsgTlp
);
if
(
returnCode
>
0
){
if
(
returnCode
>
0
){
List
<
WeMsgTlpScope
>
weMsgTlpScopess
=
weMsgTlp
.
getWeMsgTlpScopes
();
if
(
CollectionUtil
.
isNotEmpty
(
weMsgTlpScopess
)){
List
<
WeMsgTlpScope
>
weMsgTlpScopes
=
weMsgTlp
.
getWeMsgTlpScopes
().
stream
().
filter
(
c
->
c
.
getUseUserId
()
!=
null
).
collect
(
Collectors
.
toList
());
List
<
WeMsgTlpScope
>
weMsgTlpScopes
=
weMsgTlp
.
getWeMsgTlpScopes
().
stream
().
filter
(
c
->
c
.
getUseUserId
()
!=
null
).
collect
(
Collectors
.
toList
());
if
(
CollectionUtil
.
isNotEmpty
(
weMsgTlpScopes
)){
if
(
CollectionUtil
.
isNotEmpty
(
weMsgTlpScopes
)){
...
@@ -81,6 +83,10 @@ public class WeMsgTlpServiceImpl implements IWeMsgTlpService
...
@@ -81,6 +83,10 @@ public class WeMsgTlpServiceImpl implements IWeMsgTlpService
}
}
}
}
}
return
returnCode
;
return
returnCode
;
}
}
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeGroupMapper.xml
View file @
886fa7f
...
@@ -19,7 +19,14 @@
...
@@ -19,7 +19,14 @@
LEFT JOIN we_user wu ON wg.`owner`=wu.user_id
LEFT JOIN we_user wu ON wg.`owner`=wu.user_id
<where>
<where>
<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=
"owner != null and owner != ''"
>
and owner = #{owner}
</if>
<if
test=
"groupLeader != null and groupLeader != ''"
>
and wu.user_name like concat('%', #{groupLeader}, '%')
</if>
<if
test=
"beginTime != null and beginTime != ''"
>
<!-- 开始时间检索 -->
AND date_format(wg.create_time,'%y%m%d')
>
= date_format(#{beginTime},'%y%m%d')
</if>
<if
test=
"endTime != null and endTime != ''"
>
<!-- 结束时间检索 -->
AND date_format(wg.create_time,'%y%m%d')
<
= date_format(#{endTime},'%y%m%d')
</if>
</where>
</where>
</select>
</select>
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeGroupMemberMapper.xml
View file @
886fa7f
...
@@ -16,18 +16,24 @@
...
@@ -16,18 +16,24 @@
(
(
SELECT wu.user_name FROM we_user wu
SELECT wu.user_name FROM we_user wu
WHERE wu.user_id=wgm.user_id
WHERE wu.user_id=wgm.user_id
<if
test=
"memberName != null and memberName != ''"
>
AND wu.user_name like concat('%', #{memberName}, '%')
</if>
)
)
WHEN wgm.type = 2 THEN
WHEN wgm.type = 2 THEN
(
(
SELECT wc.name FROM we_customer wc
SELECT wc.name FROM we_customer wc
WHERE wc.external_userid=wgm.user_id
WHERE wc.external_userid=wgm.user_id
<if
test=
"memberName != null and memberName != ''"
>
AND wc.name like concat('%', #{memberName}, '%')
</if>
)
)
END memberName
END memberName
FROM
FROM
we_group_member wgm
we_group_member wgm
<where>
<where>
<if
test=
"chatId != null "
>
and wgm.chat_id = #{chatId}
</if>
<if
test=
"chatId != null "
>
and wgm.chat_id = #{chatId}
</if>
<if
test=
"memberName != null and memberName != ''"
>
and HAVING wc.`name` like concat('%', #{memberName}, '%')
</if>
<if
test=
"memberName != null and memberName != ''"
>
HAVING memberName IS NOT NULL
</if>
</where>
</where>
</select>
</select>
...
...
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