| | |
| | | AND organization_id = #{orgId} |
| | | </select> |
| | | |
| | | <select id="getCruiserDataNewAvg" resultType="com.moral.api.pojo.dto.historySecondCruiser.HistorySecondCruiserListDTO"> |
| | | select DATE_FORMAT(`time`, #{dateFormat}) AS time,value ->>'$.flylat' as flyLat,value ->>'$.flylon' as flyLon , |
| | | value ->> #{type} as num |
| | | from history_second_cruiser |
| | | WHERE mac = #{mac} |
| | | AND `time` <![CDATA[>=]]> #{time1} |
| | | AND `time` <![CDATA[<=]]> #{time2} |
| | | AND organization_id = #{orgId} |
| | | order by time |
| | | </select> |
| | | |
| | | <select id="getDaily" resultType="java.lang.String"> |
| | | select AVG(JSON_EXTRACT(value,'$.dustld')) |