| | |
| | | <if test="animalHeatVo.type==2"> |
| | | and date_format(create_time,'%Y%m') = date_format(now(),'%Y%m') |
| | | </if> |
| | | <if test="animalHeatVo.begTime!=null and animalHeatVo.begTime!='' and animalHeatVo.endTime!=null and animalHeatVo.endTime!='' "> |
| | | <if test="animalHeatVo.begTime!=null and animalHeatVo.begTime!='' and animalHeatVo.endTime!=null and animalHeatVo.endTime!='' and animalHeatVo.begTime!='undefined' and animalHeatVo.endTime!='undefined' "> |
| | | and date(create_time) between #{animalHeatVo.begTime} and #{animalHeatVo.endTime} |
| | | </if> |
| | | <if test="animalHeatVo.timeDesc!=null and animalHeatVo.timeDesc!=''"> |
| | | <if test="animalHeatVo.timeDesc!=null and animalHeatVo.timeDesc!='' and animalHeatVo.timeDesc!='undefined'"> |
| | | <if test="animalHeatVo.timeDesc=='0-2'"> |
| | | and hour(create_time)>=0 and hour(create_time) <2 |
| | | </if> |
| | |
| | | <select id="exportAnimalHeat" resultType="org.springblade.common.entity.AnimalHeatExcel"> |
| | | SELECT * FROM blade_animal_heat |
| | | where 1=1 |
| | | <if test="animalHeatVo.status!=null"> |
| | | <if test="animalHeatVo.status!=null and animalHeatVo.status!='' and animalHeatVo.status!='undefined'"> |
| | | and status=#{animalHeatVo.status} |
| | | </if> |
| | | <include refid="animalHeatCondition"></include> |