- 系统管理模块(用户/角色/组织/权限/日志) - 教育培训计划管理模块 - 教育培训实施模块 - 考试管理模块 - 调研问卷管理模块 - 外派培训管理模块 - 年度培训总结模块 - 学习资源管理模块 - 任职资格管理模块 - 即时通讯模块 - APP 版本管理 - 统计分析模块(FineReport) - 代码审查标准和报告(CODE_REVIEW_GUIDE.md, CODE_REVIEW_REPORT.md) - 项目开发指南(PROJECT_GUIDE.md)
84 lines
6.1 KiB
XML
84 lines
6.1 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<dynamic-sql>
|
|
<sql id="getInterfaceCode"><![CDATA[
|
|
select * from et_hcm_interface
|
|
]]></sql>
|
|
|
|
<sql id="getClassId"><![CDATA[
|
|
select id from et_train_pd_cc
|
|
where finish_time >= (select ifnull(max(end_time),'2000-01-01 00:00:00') end_time from et_hcm_push_time where is_success = '1') and id is not null and status = '2'
|
|
order by finish_time desc
|
|
]]></sql>
|
|
|
|
<sql id="getStudentNumber"><![CDATA[
|
|
select ccid,count(*) studentnum from et_train_pd_cc_user
|
|
where <@p p="ccid in (%s)" f="?">ccid</@p>
|
|
group by ccid
|
|
]]></sql>
|
|
|
|
<sql id="getInternalTrainingClassList"><![CDATA[
|
|
select id,<@p p=" ? ">internal_training</@p> as PXXS
|
|
,case jhly when 'bmn' then <@p p=" ? ">department_level</@p> when 'bmw' then <@p p=" ? ">department_level</@p> when 'sj' then <@p p=" ? ">institute_level</@p> else '' end as PXBLX
|
|
,case bjlb when '技术' then <@p p=" ? ">technology</@p> when '技能' then <@p p=" ? ">technical_ability</@p> when '管理' then <@p p=" ? ">management</@p> when '营销' then <@p p=" ? ">marketing</@p> else '' end as KCXL
|
|
,KCMC,BJMC,addgroupname as ZBDW,'中电科网络通信研究院' as PXDD,ifnull(teacher,'') as SKR,ifnull(teacher_code,'') as GZH,ifnull(teacher_department,'') as SKRDW,starttime as KSSJ,endtime as JSSJ,ifnull(price,0) as PXFY
|
|
,ifnull(pxxsh,0) as PXXST,case sfkh when '是' then <@p p=" ? ">is_exam</@p> when '否' then <@p p=" ? ">not_exam</@p> else '' end as KHBZ
|
|
from et_train_pd_cc
|
|
where status = '2' <@p p="and id in (%s)" f="?">id</@p>
|
|
order by finish_time desc
|
|
]]></sql>
|
|
|
|
<sql id="getInternalTrainingStudentList"><![CDATA[
|
|
select c.id,u.usercode as WorkNumbe,u.username as PersonName,<@p p=" ? ">internal_training</@p> as PXXS
|
|
,case jhly when 'bmn' then <@p p=" ? ">department_level</@p> when 'bmw' then <@p p=" ? ">department_level</@p> when 'sj' then <@p p=" ? ">institute_level</@p> else '' end as PXBLX
|
|
,case bjlb when '技术' then <@p p=" ? ">technology</@p> when '技能' then <@p p=" ? ">technical_ability</@p> when '管理' then <@p p=" ? ">management</@p> when '营销' then <@p p=" ? ">marketing</@p> else '' end as KCXL
|
|
,KCMC,BJMC,c.addgroupname as ZBDW,'中电科网络通信研究院' as PXDD,ifnull(teacher,'') as SKR,ifnull(teacher_department,'') as SKRDW,ifnull(teacher_code,'') as GZH,starttime as KSSJ,endtime as JSSJ,ifnull(price,0) as PXFY
|
|
,ifnull(realperiod,0) as PXXST,ifnull(score,0) as KHCJ,ifnull(code,'') as ZSBH,'' as 'BZ1','' as 'BZ2'
|
|
from et_train_pd_cc c
|
|
inner join et_train_pd_cc_user u on c.id = u.ccid
|
|
left join (select code,class_id,usercode from et_train_pd_zs where <@p p="class_id in (%s)" f="?">id</@p>) z on c.id = z.class_id and u.usercode = z.usercode
|
|
left join et_exam_limitation_class cl on c.id = cl.class_id and u.usercode = cl.class_person_id
|
|
where status = '2' <@p p="and c.id in (%s)" f="?">id</@p>
|
|
order by finish_time desc
|
|
]]></sql>
|
|
|
|
<sql id="getExternalClassId"><![CDATA[
|
|
select o.id from et_train_ot o
|
|
left join et_train_sp s on o.id = s.tid and s.ywstatus = '5'
|
|
where status = '5' and spdate >= (select ifnull(max(end_time),'2000-01-01 00:00:00') end_time from et_hcm_push_time where is_success = '1') and o.id is not null
|
|
group by o.id
|
|
]]></sql>
|
|
|
|
<sql id="getExternalTrainingClassList"><![CDATA[
|
|
select o.id,<@p p=" ? ">external_training</@p> as PXXS, case jhly when 'bmn' then <@p p=" ? ">department_level</@p> when 'bmw' then <@p p=" ? ">department_level</@p> when 'sj' then <@p p=" ? ">institute_level</@p> else '' end as PXBLX
|
|
,case kcxl when '技术' then <@p p=" ? ">technology</@p> when '技能' then <@p p=" ? ">technical_ability</@p> when '管理' then <@p p=" ? ">management</@p> when '营销' then <@p p=" ? ">marketing</@p> else '' end as KCXL
|
|
,KCMC,'' as BJMC,ifnull(ZBDW,'') ZBDW,ifnull(PXDD,'') PXDD,'' as SKR,'' as GZH,pxstarttime as KSSJ,pxendtime as JSSJ,ifnull(PXFY,0) PXFY,'' as PXXST,'' as KHBZ
|
|
,(select count(*) from et_train_ot_xy x where x.otid = o.id) as CXRS
|
|
from et_train_ot o
|
|
inner join et_train_kc_all a on o.wpid = a.id
|
|
where o.status = '5' <@p p="and o.id in (%s)" f="?">id</@p>
|
|
]]></sql>
|
|
|
|
<sql id="getExternalTrainingStudentList"><![CDATA[
|
|
select x.usercode as WorkNumbe,x.username as PersonName,<@p p=" ? ">external_training</@p> as PXXS
|
|
,<@p p=" ? ">external_training</@p> as PXXS, case jhly when 'bmn' then <@p p=" ? ">department_level</@p> when 'bmw' then <@p p=" ? ">department_level</@p> when 'sj' then <@p p=" ? ">institute_level</@p> else '' end as PXBLX
|
|
,case kcxl when '技术' then <@p p=" ? ">technology</@p> when '技能' then <@p p=" ? ">technical_ability</@p> when '管理' then <@p p=" ? ">management</@p> when '营销' then <@p p=" ? ">marketing</@p> else '' end as KCXL
|
|
,KCMC,'' as BJMC,ifnull(ZBDW,'') ZBDW,ifnull(PXDD,'') PXDD,'' as SKR,'' as GZH,pxstarttime as KSSJ,pxendtime as JSSJ,ifnull(PXFY,0)PXFY,'' as PXXST,'' as KHCJ,'' as ZSBH,'' as 'BZ1','' as 'BZ2'
|
|
,(select count(*) from et_train_ot_xy x where x.otid = o.id) as CXRS
|
|
from et_train_ot o
|
|
inner join et_train_ot_xy x on o.id = x.otid
|
|
inner join et_train_kc_all a on o.wpid = a.id
|
|
where o.status = '5' <@p p="and o.id in (%s)" f="?">id</@p>
|
|
]]></sql>
|
|
|
|
<sql id="getCertificateClassId"><![CDATA[
|
|
select class_id from et_train_pd_zs
|
|
where addtime >= (select ifnull(max(end_time),'2000-01-01 00:00:00') end_time from et_hcm_push_time where is_success = '1') and class_id is not null
|
|
group by class_id
|
|
order by addtime desc
|
|
]]></sql>
|
|
|
|
<sql id="insertHcmPushTimeTable"><![CDATA[
|
|
insert into et_hcm_push_time values(<@p p=" ? ">id</@p>,<@p p=" ? ">end_time</@p>,<@p p=" ? ">is_success</@p>,<@p p=" ? ">error_information</@p>,<@p p=" ? ">add_time</@p>)
|
|
]]></sql>
|
|
|
|
</dynamic-sql> |