Commit 3d7444ac authored by gaoyingwei's avatar gaoyingwei

修改 通行数据增加数据来源筛选项

parent a2065d21
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment