Wrong result between Flux Query and InfluxDB query

I have one issue about Flux Query and Influx DB Query give different result.
I run the query in InfluxDB I can see the data, but when I try the FluxD Query, it doesn’t give any data, rs
The Flux Query range is last 7 days and the timestamp of the Influx DB query is definitely in between last 7 days.