and q.status = #{query.status} | and q.status = #{query.status} | ||||
</if> | </if> | ||||
<if test="query.inspectTime != null and query.inspectTime !=''"> | <if test="query.inspectTime != null and query.inspectTime !=''"> | ||||
and DATE_FORMAT(q.create_time,"%Y-%m-%d") between #{query.inspectStartTime} and #{query.inspectEndTime} | |||||
and q.create_time between #{query.inspectStartTime} and #{query.inspectEndTime} | |||||
</if> | </if> | ||||
ORDER BY q.id DESC | ORDER BY q.id DESC | ||||
</select> | </select> |