| | |
| | | <if test="animalHeatVo.type==2"> |
| | | and date_format(create_time,'%Y%m') = date_format(now(),'%Y%m') |
| | | </if> |
| | | ORDER BY create_time asc |
| | | <if test="animalHeatVo.status!=null"> |
| | | and status=#{animalHeatVo.status} |
| | | </if> |
| | | <if test="animalHeatVo.begTime!=null and animalHeatVo.begTime!='' and animalHeatVo.endTime!=null and animalHeatVo.endTime!='' "> |
| | | and date(create_time) between #{animalHeatVo.begTime} and #{animalHeatVo.endTime} |
| | | </if> |
| | | ORDER BY create_time desc |
| | | </select> |
| | | |
| | | <!--查询本周每天的体温数据(按礼拜一开始计算)--> |
| | |
| | | ) b |
| | | on |
| | | a.click_date = b.datetime |
| | | order by a.click_date asc |
| | | </select> |
| | | </mapper> |