SELECT a.role_id, a.parent_role_id, a.role_business_example_id, a.role_business_example_name, a.role_type, a.role_code, a.role_name, a.role_remark, a.role_data_scope, a.role_status FROM role a WHERE a.del_flag = 1 and a.role_id = #{roleId} and a.role_grade = #{roleGrade} and a.organization_id = #{organizationId} -- and a.organization_name IS NOT NULL and a.top_organization_id = #{topOrganizationId} and a.organization_name like concat('%' , #{organizationName} , '%') and a.organization_id in #{organizationId} and a.role_code in #{roleCode} and a.role_code = #{roleCode} and a.role_name like concat('%' , #{roleTypeName} , '%') and a.role_business_example_name like concat('%' , #{roleBusinessExampleName} , '%') /*职务/角色状态:0-无状态,1-开启,2-关闭*/ and a.role_status = #{roleStatus} /*角色分类:0-无状态,1-托运人,2-承运人,3-公共*/ and a.role_type = #{roleType} /*角色分类:0-无状态,1-托运人,2-承运人,3-公共*/ and a.create_by = #{createBy}