left join biz_entrust t9 on t9.work_order_id = t1.work_order_id and t9.deleted = 0 and date_format(t9.current_month, '%Y%m') = concat(#{year}, #{month})
left join biz_tenant t8 on t8.id = t9.to_tenant_id
WHERE
- t1.deleted = 0 and t1.is_stop = 0
+ t1.deleted = 0 and t1.is_stop = 0 and t2.deleted = 0
@@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join biz_entrust t7 on t7.work_order_id = t1.work_order_id and t7.deleted = 0 and date_format(t7.current_month, '%Y%m') = concat(#{year}, #{month})
left join biz_tenant t8 on t8.id = t7.to_tenant_id