src/main/resources/mapper/BasLiftOptMapper.xml
@@ -17,4 +17,17 @@ </resultMap> <select id="selectByDeviceWrk" resultMap="BaseResultMap"> select top 1 * from asr_bas_lift_opt where device_wrk = #{deviceWrk} order by send_time desc </select> <select id="selectRunStatistic" resultType="map"> select lift_no,count(*) count from asr_bas_lift_opt where send_time > DATEADD(day, DATEDIFF(day, 0, GETDATE()), 0) and send_time < DATEADD(day, DATEDIFF(day, 0, GETDATE())+1, 0) group by lift_no </select> </mapper>