Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
znks
Project
Project
Details
Activity
Releases
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
王夏晖
znks
Commits
12369c03
Commit
12369c03
authored
Sep 14, 2018
by
leyboy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.用户记录查询增加模糊查询
parent
0c32f520
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
94 additions
and
214 deletions
+94
-214
workspace.xml
.idea/workspace.xml
+90
-211
UserEOMapper.xml
...n/src/main/resources/mybatis/mapper/znks/UserEOMapper.xml
+4
-3
No files found.
.idea/workspace.xml
View file @
12369c03
This diff is collapsed.
Click to expand it.
adc-da-main/src/main/resources/mybatis/mapper/znks/UserEOMapper.xml
View file @
12369c03
...
...
@@ -151,17 +151,17 @@
<result
column=
"createTime"
property=
"createTime"
/>
<result
column=
"telphone"
property=
"telphone"
/>
<result
column=
"deviceNum"
property=
"deviceNum"
/>
<result
column=
"userId"
property=
"userId"
/>
</resultMap>
<select
id=
"listUserVOs"
parameterType=
"object"
resultMap=
"userVOMap"
>
SELECT u.`create_time` AS createTime,u.`temphone` AS telphone,COUNT(d.`id`) AS deviceNum FROM tb_user u
LEFT JOIN tb_device d ON u.`id` = d.`user_id`
GROUP BY u.`id`
LEFT JOIN tb_device d ON u.`id` = d.`user_id`
<where>
<trim
suffixOverrides=
"and"
>
<if
test=
"userSearch.telphone != null and userSearch.telphone != ''"
>
u.`temphone` = #{userSearch.telphone} and
<bind
name=
"telphoneLike"
value=
"'%'+userSearch.telphone+'%'"
/>
u.`temphone` LIKE #{telphoneLike} and
</if>
<if
test=
"userSearch.createTime1!=null"
>
u.create_time >= #{userSearch.createTime1} and
...
...
@@ -171,6 +171,7 @@
</if>
</trim>
</where>
GROUP BY u.`id`
</select>
</mapper>
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