| | |
| | | <if test="direction != null "> and direction = #{direction}</if> |
| | | <if test="collectTime != null "> and collect_time = #{collectTime}</if> |
| | | <if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 --> |
| | | AND date_format(collect_time,'%y%m%d') >= date_format(#{beginTime},'%y%m%d') |
| | | AND collect_time >= #{beginTime} |
| | | </if> |
| | | <if test="endTime != null and endTime != ''"><!-- 结束时间检索 --> |
| | | AND date_format(collect_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d') |
| | | AND collect_time <= #{endTime} |
| | | </if> |
| | | </where> |
| | | order by collect_time desc |