无关风月
2024-07-26 79d97c39f1d118824f91467feb9f4a55717fd0c0
DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DriverOnlineMapper.xml
@@ -47,6 +47,13 @@
        `date` as `date`,
        duration as duration,
        assessment as assessment
        from t_driver_online where DATE_FORMAT(`date`, '%Y-%m-%d') = #{day} and type = #{type} and duration >= #{duration}
        from t_driver_online where DATE_FORMAT(`date`, '%Y-%m-%d') = #{day}
        <if test="null != driverId">
            and driverId = #{driverId}
        </if>
        <if test="null != type">
            and type = #{type}
        </if>
        and duration &gt;= #{duration}
    </select>
</mapper>