| | |
| | | YEARWEEK(date_format(create_time,'%Y-%m-%d')) = YEARWEEK(now()) and `status`=0 |
| | | </select> |
| | | |
| | | <!--获取本月的体温统计数据--> |
| | | <select id="getAnimalStatisMonth" resultType="java.util.HashMap"> |
| | | SELECT 1 `name`,count(`status`) value FROM `blade_animal_heat` where |
| | | date_format(create_time,'%Y%m') = date_format(now(),'%Y%m') and `status`=1 |
| | | UNION |
| | | SELECT 0 `name`,count(`status`) value FROM `blade_animal_heat` where |
| | | date_format(create_time,'%Y%m') = date_format(now(),'%Y%m') and `status`=0 |
| | | </select> |
| | | |
| | | <!--查询体温数据的分页数据--> |
| | | <select id="selectAnimalHeatPageList" resultType="org.springblade.jfpt.animalheat.entity.BladeAnimalHeat"> |
| | | SELECT * FROM blade_animal_heat |
| | | <if test="animalHeatVo.begTime!=null and animalHeatVo.begTime!=''"> |