修改查询到已删除数据问题

This commit is contained in:
xiaofajia 2024-10-04 23:49:27 +08:00
parent ea93d5f209
commit cde25a64b7

View File

@ -98,6 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
`rescue_info` ri
INNER JOIN rescue_driver_info rdi ON ri.id = rdi.rescue_id AND rdi.driver_accept = '2'
WHERE
rdi.deleted = '0' and
rdi.driver_id =#{driverId} and ri.rescue_status = '2'
and ri.driver_id is null
ORDER BY rdi.create_time desc