liu пре 2 година
родитељ
комит
2e6603cf73
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/resources/mapper/template/SmartVisitorMapper.xml

+ 1 - 1
src/main/resources/mapper/template/SmartVisitorMapper.xml

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