南昌市物联网技防平台-后台
zengh
2021-04-07 f14966e7c0338b4c749fee51c73470ca0230f163
blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/animalheat/mapper/AnimalHeatMapper.xml
@@ -118,4 +118,20 @@
       a.click_date = b.datetime
       order by a.click_date asc
    </select>
    <!--查询当前时间段体温异常总次数-->
    <select id="selAnimalTimeCount" resultType="java.lang.Integer">
        select count(*) from blade_animal_heat
        where status=1
        <if test="conditionVo.startTime!=null and conditionVo.startTime!='' and conditionVo.endTime!=null and conditionVo.endTime!=''">
            and create_time between #{conditionVo.startTime} and #{conditionVo.endTime}
        </if>
    </select>
    <!--查询当前时间段区间时间体温异常次数-->
    <select id="selAnimalTimeData" resultType="org.springblade.jfpt.animalheat.entity.BladeAnimalHeat">
        select status,create_time from blade_animal_heat
            where status=1
        and create_time between #{conditionVo.startTime} and #{conditionVo.endTime}
    </select>
</mapper>