screen-api/src/main/resources/mapper/HistoryDailyMapper.xml
@@ -18,4 +18,17 @@ AND time <![CDATA[<=]]> #{end} </select> <select id="listAvgResult" resultType="com.moral.api.pojo.vo.historyMonthly.HistoryResultVo"> select DATE_FORMAT(time,'%Y-%m-%d') time,${type} from history_daily where date(time) <![CDATA[>=]]> #{startTime} and date(time) <![CDATA[<=]]> #{endTime} and mac in <foreach collection="macs" item="id" index="index" open="(" close=")" separator=","> #{id} </foreach> group by time order by time </select> </mapper>