1098226878
2021-09-14 0849670f03eaa4b5de71c11558e6baf6ac8d2586
java110-db/src/main/resources/mapper/community/VisitServiceDaoImplMapper.xml
@@ -151,10 +151,16 @@
        <if test="bId !=null and bId != ''">
            and t.b_id= #{bId}
        </if>
        <if test="visitStartTime !=null and visitStartTime !='' ">
            and t.visit_time &gt;= #{visitStartTime}
        </if>
        <if test="visitEndTime !=null and visitEndTime !='' ">
            and t.visit_time &lt;= #{visitEndTime}
        </if>
        order by t.create_time desc
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
        </if>
    </select>
@@ -242,6 +248,12 @@
        <if test="bId !=null and bId != ''">
            and t.b_id= #{bId}
        </if>
        <if test="visitStartTime !=null and visitStartTime !='' ">
            and t.visit_time &gt;= #{visitStartTime}
        </if>
        <if test="visitEndTime !=null and visitEndTime !='' ">
            and t.visit_time &lt;= #{visitEndTime}
        </if>
    </select>