Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
33ed697f
Commit
33ed697f
authored
Apr 04, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
适配between and字段
parent
297a786e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/LoginLogMapper.xml
+2
-1
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/OperationLogMapper.xml
+2
-1
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/UserMapper.xml
+2
-1
No files found.
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/LoginLogMapper.xml
View file @
33ed697f
...
...
@@ -37,7 +37,8 @@
from sys_login_log
where 1 = 1
<if
test=
"beginTime != null and beginTime !='' and endTime != null and endTime != ''"
>
and (create_time between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59'))
and create_time
>
= to_date(#{beginTime}||'00:00:00','yyyy-mm-dd hh24:mi:ss')
and create_time
<
= to_date(#{endTime}||'23:59:59','yyyy-mm-dd hh24:mi:ss')
</if>
<if
test=
"logName != null and logName !=''"
>
and log_name like '%' || #{logName} || '%'
...
...
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/OperationLogMapper.xml
View file @
33ed697f
...
...
@@ -40,7 +40,8 @@
<include
refid=
"Base_Column_List"
/>
from sys_operation_log where 1 = 1
<if
test=
"beginTime != null and beginTime !='' and endTime != null and endTime != ''"
>
and (create_time between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59'))
and create_time
>
= to_date(#{beginTime}||'00:00:00','yyyy-mm-dd hh24:mi:ss')
and create_time
<
= to_date(#{endTime}||'23:59:59','yyyy-mm-dd hh24:mi:ss')
</if>
<if
test=
"logName != null and logName !=''"
>
and log_name like '%' || #{logName} || '%'
...
...
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/UserMapper.xml
View file @
33ed697f
...
...
@@ -65,7 +65,8 @@
and (dept_id = #{deptId} or dept_id in ( select dept_id from sys_dept where pids like '%[' || #{deptId} || ']%'))
</if>
<if
test=
"beginTime != null and beginTime != '' and endTime != null and endTime != ''"
>
and (create_time between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59'))
and create_time
>
= to_date(#{beginTime}||'00:00:00','yyyy-mm-dd hh24:mi:ss')
and create_time
<
= to_date(#{endTime}||'23:59:59','yyyy-mm-dd hh24:mi:ss')
</if>
</select>
...
...
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