Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
entrance_api
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
王琮
entrance_api
Commits
f7f09fef
Commit
f7f09fef
authored
Nov 25, 2022
by
mx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通行
parent
a57d8553
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
DoorRecordMapper.xml
src/main/resources/mapper/DoorRecordMapper.xml
+3
-3
No files found.
src/main/resources/mapper/DoorRecordMapper.xml
View file @
f7f09fef
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<select
id=
"queryDoorRecordsPaged"
resultMap=
"BaseResultMap"
>
<select
id=
"queryDoorRecordsPaged"
resultMap=
"BaseResultMap"
>
SELECT
SELECT
dr.record_id,su.name,dr.tenement_type,dr.create_date,dr.device_type,dr.device_name,dr.card_type,dr.record_type,dr.card_type_label,dr.abnormal
dr.record_id,su.name,dr.tenement_type,dr.create_date,dr.device_
id,dr.device_
type,dr.device_name,dr.card_type,dr.record_type,dr.card_type_label,dr.abnormal
FROM door_record_2022 dr
FROM door_record_2022 dr
left JOIN sys_user su ON dr.person_id = su.person_id
left JOIN sys_user su ON dr.person_id = su.person_id
WHERE dr.del_flag = 0
WHERE dr.del_flag = 0
...
@@ -71,8 +71,8 @@
...
@@ -71,8 +71,8 @@
<if
test=
"entity.endTime != null and entity.endTime !='' "
>
<!-- 结束时间检索 -->
<if
test=
"entity.endTime != null and entity.endTime !='' "
>
<!-- 结束时间检索 -->
and date_format(dr.create_date,'%Y-%m-%d')
<
= date_format(#{entity.endTime},'%Y-%m-%d')
and date_format(dr.create_date,'%Y-%m-%d')
<
= date_format(#{entity.endTime},'%Y-%m-%d')
</if>
</if>
<if
test=
"entity.device
Name !=null and entity.deviceName
!= '' "
>
<if
test=
"entity.device
Id !=null and entity.deviceId
!= '' "
>
and dr.device_
name in(${entity.deviceName
})
and dr.device_
id in(${entity.deviceId
})
</if>
</if>
<if
test=
"entity.tenementType !=null and entity.tenementType != '' "
>
<if
test=
"entity.tenementType !=null and entity.tenementType != '' "
>
and dr.tenement_type = #{entity.tenementType}
and dr.tenement_type = #{entity.tenementType}
...
...
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