@@ -495,7 +495,7 @@
select sp.serviceProviderId, name, linkMan, userId, contractMobile as mobile, ptr.receiveFlag
from serviceprovider sp
left join provider_task_role ptr on sp.serviceProviderId = ptr.serviceProviderId AND ptr.taskId = #{taskId}
- WHERE ptr.serviceProviderId IS NULL
+ WHERE ptr.serviceProviderId IS NULL and sp.status = 90
<if test="mobile != null and mobile != ''">and sp.contractMobile = #{mobile}</if>
<if test="name != null and name != ''">and sp.name like concat('%', #{name}, '%')</if>
</select>