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 29de1cae
authored
Dec 15, 2020
by
18356073052
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
群组对象和mapper进行修改添加了userIds字段并加入搜索
1 parent
00b29389
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeGroup.java
linkwe-wecom/src/main/resources/mapper/wecom/WeGroupMapper.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeGroup.java
View file @
29de1ca
...
@@ -62,5 +62,8 @@ public class WeGroup {
...
@@ -62,5 +62,8 @@ public class WeGroup {
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
String
endTime
;
private
String
endTime
;
/**员工id*/
private
String
userIds
;
}
}
linkwe-wecom/src/main/resources/mapper/wecom/WeGroupMapper.xml
View file @
29de1ca
...
@@ -27,6 +27,17 @@
...
@@ -27,6 +27,17 @@
<if
test=
"endTime != null and endTime != ''"
>
<!-- 结束时间检索 -->
<if
test=
"endTime != null and endTime != ''"
>
<!-- 结束时间检索 -->
AND date_format(wg.create_time,'%y%m%d')
<
= date_format(#{endTime},'%y%m%d')
AND date_format(wg.create_time,'%y%m%d')
<
= date_format(#{endTime},'%y%m%d')
</if>
</if>
<if
test=
"userIds != null and userIds !=''"
>
<if
test=
"userIds.indexOf(',') != -1"
>
AND wg.`owner` in
<foreach
item=
"item"
index=
"index"
collection=
"userIds.split(',')"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
<if
test=
"userIds.indexOf(',') == -1"
>
AND wg.`owner`=#{userIds}
</if>
</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