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
3d7444ac
Commit
3d7444ac
authored
Mar 15, 2023
by
gaoyingwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 通行数据增加数据来源筛选项
parent
a2065d21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
DoorRecordMapper.xml
src/main/resources/mapper/DoorRecordMapper.xml
+10
-2
No files found.
src/main/resources/mapper/DoorRecordMapper.xml
View file @
3d7444ac
...
...
@@ -123,7 +123,8 @@
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
<select
id=
"queryDoorRecords"
resultMap=
"BaseResultMap"
>
SELECT
dr.record_id,su.name,dr.tenement_type,dr.cross_time,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.cross_time,dr.device_type,dr.device_name,dr.card_type,dr.record_type,
dr.card_type_label,dr.abnormal,dr.source
FROM door_record dr
left JOIN sys_user su ON dr.user_id = su.business_id
WHERE dr.del_flag = 0
...
...
@@ -148,6 +149,9 @@
<if
test=
"entity.cardType !=null and entity.cardType != '' "
>
and dr.card_type = #{entity.cardType}
</if>
<if
test=
"entity.source !=null and entity.source != '' "
>
and dr.source = #{entity.source}
</if>
<if
test=
"entity.px == '1'.toString() "
>
<!-- 排序-->
order BY dr.create_date desc
</if>
...
...
@@ -194,7 +198,8 @@
<select
id=
"queryDoorRecordsPagedWithCrossTimeRange"
resultMap=
"BaseResultMap"
>
SELECT
dr.record_id,su.name,su.business_id,dr.tenement_type,dr.cross_time,dr.create_date,dr.device_id,dr.device_type,dr.device_name,dr.card_type,dr.record_type,dr.card_type_label,dr.abnormal
dr.record_id,su.name,su.business_id,dr.tenement_type,dr.cross_time,dr.create_date,dr.device_id,dr.device_type,
dr.device_name,dr.card_type,dr.record_type,dr.card_type_label,dr.abnormal,dr.source
FROM door_record dr
LEFT JOIN sys_user su ON dr.user_id = su.business_id
WHERE dr.del_flag = 0
...
...
@@ -219,6 +224,9 @@
<if
test=
"entity.name !=null and entity.name != '' "
>
and su.name like concat ("%",#{entity.name},"%")
</if>
<if
test=
"entity.source !=null and entity.source != '' "
>
and dr.source = #{entity.source}
</if>
<if
test=
"entity.px == '1'.toString() "
>
<!-- 排序-->
order BY dr.create_date desc
</if>
...
...
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