swb
2024-09-10 9367b86590a9774cd1e4f5d02d9f394605fe6a7f
screen-api/src/main/resources/mapper/SecondCruiserSortMapper.xml
@@ -13,7 +13,10 @@
    <select id="getSort" resultType="com.moral.api.entity.SecondCruiserSort">
        select road,avg(value) as "avg",time,mac from second_cruiser_sort
        where mac =#{mac} and time BETWEEN #{startTime} and #{endTime} GROUP BY road ORDER BY avg DESC
        where mac =#{mac}
        AND `time` <![CDATA[>]]> #{startTime}
        AND `time` <![CDATA[<=]]> #{endTime}
        GROUP BY road ORDER BY avg DESC
    </select>