|
@@ -54,7 +54,7 @@
|
|
|
<select id="queryVisitorCount" resultType="java.lang.Integer">
|
|
<select id="queryVisitorCount" resultType="java.lang.Integer">
|
|
|
select Count(*) from smart_visitor
|
|
select Count(*) from smart_visitor
|
|
|
where 1=1
|
|
where 1=1
|
|
|
- <if test="cardNo != null and cardNo != ''">
|
|
|
|
|
|
|
+ <if test="userId != null and userId != ''">
|
|
|
and user_id = #{userId}
|
|
and user_id = #{userId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|