无关风月
2025-01-07 d02d3b681da14c2f342f2247457dc60b426ff299
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>