- 系统管理模块(用户/角色/组织/权限/日志) - 教育培训计划管理模块 - 教育培训实施模块 - 考试管理模块 - 调研问卷管理模块 - 外派培训管理模块 - 年度培训总结模块 - 学习资源管理模块 - 任职资格管理模块 - 即时通讯模块 - APP 版本管理 - 统计分析模块(FineReport) - 代码审查标准和报告(CODE_REVIEW_GUIDE.md, CODE_REVIEW_REPORT.md) - 项目开发指南(PROJECT_GUIDE.md)
86 lines
3.2 KiB
XML
86 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<dynamic-sql>
|
|
<!--所级管理员下发-->
|
|
<sql id="getGroupInPlanList"><![CDATA[
|
|
select * from et_train_gip where 1=1
|
|
<@p p="AND ID IN(%s)" f="?">id</@p>
|
|
<@p p=" AND %s" f="%S LIKE ?">name</@p>
|
|
]]></sql>
|
|
|
|
<sql id="getGroupInPlan_GroupList"><![CDATA[
|
|
select * from et_train_gip_group where 1=1
|
|
<@p p="AND (%s)">gppid</@p>
|
|
order by etsort asc
|
|
]]></sql>
|
|
<sql id="deleteGroupInPlan_Group"><![CDATA[
|
|
DELETE FROM et_train_gip_group WHERE gppid IN(<@p f="?">gppid</@p>)
|
|
]]>
|
|
</sql>
|
|
|
|
<!--部门管理员填写-->
|
|
<sql id="getGroupInPlanGroupList"><![CDATA[
|
|
select etgg.*,etg.name from et_train_gipgroup etgg,et_train_gip etg where 1=1
|
|
and etgg.gppid=etg.id
|
|
<@p p="AND etgg.ID IN(%s)" f="?">id</@p>
|
|
<@p p="and ( etg.name like ?">name</@p>
|
|
<@p p="or etgg.addgroupname like ? )">addgroupname</@p>
|
|
<@p p="and etgg.status = ?">status</@p>
|
|
<@p p="and etgg.addgroupid = ?">groupid</@p>
|
|
<@p p="and etgg.addgroupid in(%s)" f="?">groupidarray</@p>
|
|
<@p p="and etgg.addusercode = ?">addusercode</@p>
|
|
]]></sql>
|
|
|
|
<sql id="getGroupInPlanGroup_KcList"><![CDATA[
|
|
select * from et_train_gipgroup_kc where 1=1
|
|
<@p p="AND (%s)">gipgid</@p>
|
|
order by etsort asc
|
|
]]></sql>
|
|
|
|
<sql id="getGroupInPlanGroup_KcList_View"><![CDATA[
|
|
select kc.*
|
|
,
|
|
IF(yxx.status is not null,(case yxx.status when -1 then "未完成" when 0 then "未完成" when 1 then "未完成" else "完成" end),(case sfwp
|
|
when "是" then (case ot.pxfy when ot.pxfy then "完成" else "未完成" end)
|
|
when "否" then (case pg.status when 1 then "完成" else "未完成" end)
|
|
end))
|
|
coursestatus
|
|
,(case sfwp
|
|
when "是" then round(ifnull(ot.pxfy,0),2)
|
|
when "否" then round(ifnull(cc.price,0),2)
|
|
end) usedfund
|
|
from et_train_gipgroup_kc kc
|
|
left join et_train_pd_cc cc on cc.kcmcid = kc.id
|
|
left join et_train_pd_cc_pg pg on pg.ccid = cc.id
|
|
left join et_train_pd_cc_pgwjyxx yxx on pg.id = yxx.pgid
|
|
left join et_train_ot ot on ot.wpid = kc.id and ot.status = '5'
|
|
where 1=1
|
|
<@p p="AND (%s)">gipgid</@p>
|
|
group by id
|
|
order by etsort asc
|
|
]]></sql>
|
|
|
|
<sql id="deleteGroupInPlanGroup_kc"><![CDATA[
|
|
DELETE FROM et_train_gipgroup_kc WHERE gipgid IN(<@p f="?">gipgid</@p>)
|
|
]]>
|
|
</sql>
|
|
|
|
<!--部门获取下发至本部门的部门计划-->
|
|
<sql id="getDbGroupInPlanGroupList"><![CDATA[
|
|
select gip.* from et_train_gip gip left join et_train_gip_group gipgroup on(gip.id=gipgroup.gppid)
|
|
where 1=1 and gip.status=1
|
|
<@p p="and (gipgroup.groupid= ?">groupid</@p>
|
|
or gipgroup.groupid='0') and <@p f="?">groupid</@p>
|
|
not in(select addgroupid from et_train_gipgroup gipg where gipg.gppid=gip.id )
|
|
]]></sql>
|
|
|
|
<sql id="getWorkflowList"><![CDATA[
|
|
select * from et_train_sp
|
|
]]></sql>
|
|
|
|
<sql id="getSPPersonList"><![CDATA[
|
|
select user,user_id from et_train_sp_person where 1=1
|
|
<@p p="and (%s)">department_id</@p>
|
|
<@p p="and (%s)">role_id</@p>
|
|
]]></sql>
|
|
|
|
</dynamic-sql> |