优质专家资源库

数据统计

  • 评审专家数:统计所有提交了评审任务的专家数量之和;
  • 竞赛评审数:统计所有提交了评审的专家的评审的竞赛数量之和;
  • 创客任务评审数:统计所有提交了评审的专家的评审的创客数量之和;
select COUNT(*) as '评审专家数'
from (select (select COUNT(distinct container_id) from task_expert where expert_id = e.id and container_type = 1 and `status` in (1,2)) as taskAuditCount,
             (select COUNT(distinct container_id)
              from task_expert
              where expert_id = e.id
                and container_type = 2 and `status` in (1,2))                                                       as competitionAuditCount
      from experts e where is_delete = '0' and status = 1) tmp
where tmp.taskAuditCount > 0
   OR tmp.competitionAuditCount > 0;



select IFNULL(SUM(competitionAuditCount), 0) as '竞赛评审数'
from (select COUNT(distinct container_id) as competitionAuditCount
        from task_expert te
                join experts e on e.id = te.expert_id and te.container_type = 2 and te.`status` in (1, 2)) tmp;


select IFNULL(SUM(taskAuditCount), 0) as '创客任务评审数'
from (select COUNT(distinct container_id) as taskAuditCount
        from task_expert te
                join experts e on e.id = te.expert_id and te.container_type = 1 and te.`status` in (1, 2)) tmp;

优质专家资源库列表

字段 说明
专家ID
姓名
专家领域
最高学历
工作单位
专家详情
毕业院校
专家职称
附件 专家注册时上传的附件合集
转入状态
参与创客评审(taskAuditCount)
参与竞赛评审(competitionAuditCount)
操作 转入专家资源库
  select * from ( select erl.id, e.id as expert_id,e.user_id, e.expert_name, e.highest_degree, e.graduated_from,
        u.nickname as "userNickName",ue.gender as "gender",
        e.id_number,images, attachments,
        e.major, e.workplace, e.phone,
        e.workplace_type, e.expert_email, erl.expert_summary, erl.expert_detail, e.professional_title, e.expert_type,
        expert_domain,u.authentication as expertAuth,
        e.title_rank, erl.status, e.review_area_one, e.review_area_two, e.review_area_three, e.is_delete, erl.create_by,
        erl.create_time,
        (select COUNT(*) from task_expert where expert_id = e.id and container_type = 1 and `status` in (1,2)) as taskAuditCount,
        (select COUNT(*) from task_expert where expert_id = e.id and container_type = 2 and `status` in (1,2)) as competitionAuditCount,
        erl.update_by, erl.update_time,erl.sort_no
        from experts e
        inner join users u on e.user_id = u.id
        inner join user_extensions ue on u.id = ue.user_id
        left join expert_resource_library erl on e.id = erl.expert_id
          where e.is_delete='0' and e.status=1

        ) tmp where tmp.taskAuditCount > 0 OR tmp.competitionAuditCount > 0 order by tmp.status;

转入专家资源库

前提条件:当前成果未转入成果库

  • 选择未转入成果库的专家,点击“转入成果库”,弹出“转入成果库”弹窗,输入各项内容,点击“转入”按钮,转入成果库成功。
  • 转入成果库的成果默认是上架状态,在前台展示;
字段 说明
专家ID 不可更改
姓名 不可更改;
专家领域 不可更改
最高学历 不可更改
工作单位 不可更改
毕业院校 不可更改
专家职称 不可更改
参与创客评审数 不可更改
参与竞赛评审数 不可更改
专家详情 必填,长度300
附件 点击直接下载附件
select e.id,e.expert_name,
(select COUNT(*) from task_expert where expert_id = e.id and container_type = 1) as '参与创客评审数',
(select COUNT(*) from task_expert where expert_id = e.id and container_type = 2) as '参与竞赛评审数'
from experts e
where e.is_delete='0' and e.status=1;

排序

  • 选择一个专家,点击“排序”按钮,弹出“排序”弹窗,输入排序号,点击“确定”按钮,给专家设置排序成功;
  • 注意:需要越小,排序越靠前