@@ -90,7 +90,7 @@
operatorId = #{operatorId}
and warehouseId = #{warehouseId}
and stockTakingType = 'REGULAR'
- and #{intervalStartDate} >= intervalEndTime
+ and concat(#{intervalStartDate}, ' 03:59:59') = intervalEndTime
order by id desc limit 1
</select>