and c.salesman_id= #{salesmanid} and c.salesman_id in (SELECT id from system_user where dept_id =#{deptid} )