| | |
| | | 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> |