无关风月
2025-01-09 ff1be70b35a043a42ef7471c3ed9f10a9a736db0
manage/src/main/resources/mapping/TOptometristMapper.xml
@@ -46,12 +46,15 @@
            <if test="query.phone != null and query.phone != ''">
                and t1.phone like  concat('%',#{query.phone},'%')
            </if>
            <if test="query.storeId != null and query.storeId != ''">
            <if test="query.storeId != null ">
                and t1.storeId =  #{query.storeId}
            </if>
            <if test="query.optometristId != null and query.optometristId != ''">
            <if test="query.optometristId != null ">
                and t1.optometristId =  #{query.optometristId}
            </if>
            <if test="query.userId != null ">
                and t1.userId =  #{query.userId}
            </if>
            <if test="query.startTime != null and query.startTime!=''">
                and (t1.createTime between #{query.startTime} and #{query.endTime})
            </if>