99 lines
4.1 KiB
XML
99 lines
4.1 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<dynamic-sql>
|
||
|
|
<sql id="getspList"><![CDATA[
|
||
|
|
select * from et_train_sp where 1=1
|
||
|
|
<@p p="AND ID IN(%s)" f="?">id</@p>
|
||
|
|
<@p p="AND (%s)">tname</@p>
|
||
|
|
<@p p="AND (%s)">tid</@p>
|
||
|
|
]]></sql>
|
||
|
|
|
||
|
|
<sql id="updatespyw"><![CDATA[
|
||
|
|
update ${tname} set
|
||
|
|
<@p p="%s">status</@p>
|
||
|
|
where 1=1
|
||
|
|
<@p p="AND ID IN(%s)" f="?">tid</@p>
|
||
|
|
]]></sql>
|
||
|
|
|
||
|
|
<sql id="getMyManageList"><![CDATA[
|
||
|
|
select grou.id,gip.name as name,'部门计划内制定' as application,grou.addgroupname,grou.addusername,grou.addtime,grou.tel,sp.spusername,sp.spdate,sp.yj,sp.spresult,sp.tname,sp.tid
|
||
|
|
from et_train_gipgroup grou
|
||
|
|
inner join et_train_sp sp
|
||
|
|
on grou.id = sp.tid
|
||
|
|
inner join et_train_gip gip
|
||
|
|
on grou.gppid = gip.id
|
||
|
|
where <@p>spusercode</@p>
|
||
|
|
union all
|
||
|
|
select gop.id,kc.kcmc as name,'部门计划外制定' as application,sqdw,sqr,sqtime,lxtel,sp.spusername,sp.spdate,sp.yj,sp.spresult,sp.tname,sp.tid
|
||
|
|
from et_train_gop gop
|
||
|
|
inner join et_train_gop_kc kc on gop.id = kc.gopid
|
||
|
|
inner join et_train_sp sp
|
||
|
|
on gop.id = sp.tid
|
||
|
|
where <@p>spusercode</@p>
|
||
|
|
union all
|
||
|
|
select ipgroup.id,ip.name as name,'院级计划制定' as application,ipgroup.addgroupname,ipgroup.addusername,ipgroup.addtime,'无' as tel,sp.spusername,sp.spdate,sp.yj,sp.spresult,sp.tname,sp.tid
|
||
|
|
from et_train_ipgroup ipgroup
|
||
|
|
inner join et_train_sp sp
|
||
|
|
on ipgroup.id = sp.tid
|
||
|
|
inner join et_train_ip ip
|
||
|
|
on ip.id = ipgroup.ipid
|
||
|
|
where <@p>spusercode</@p>
|
||
|
|
union all
|
||
|
|
select bg.id,gip.name as name,'部门计划变更' as application,bg.addgroupname,bg.addusername,bg.addtime,'无' as tel,sp.spusername,sp.spdate,sp.yj,sp.spresult,sp.tname,sp.tid
|
||
|
|
from et_train_gip_bg bg
|
||
|
|
inner join et_train_sp sp
|
||
|
|
on bg.id = sp.tid
|
||
|
|
inner join et_train_gipgroup gipgroup
|
||
|
|
on bg.gipgid = gipgroup.id
|
||
|
|
inner join et_train_gip gip
|
||
|
|
on gip.id = gipgroup.gppid
|
||
|
|
where <@p>spusercode</@p>
|
||
|
|
union all
|
||
|
|
select bg.id,ipf.jhmc as name ,'院级计划变更' as application,bg.addgroupname,bg.addusername,bg.addtime,'无' as tel,sp.spusername,sp.spdate,sp.yj,sp.spresult,sp.tname,sp.tid
|
||
|
|
from et_train_ipf_bg bg
|
||
|
|
inner join et_train_sp sp
|
||
|
|
on bg.id = sp.tid
|
||
|
|
inner join et_train_ipf ipf
|
||
|
|
on ipf.id = bg.ipfid
|
||
|
|
where <@p>spusercode</@p>
|
||
|
|
union all
|
||
|
|
select ysgroup.id,ys.name as name ,'部门年度总结' as application,ysgroup.addgroupname,ysgroup.addusername,ysgroup.addtime,'无' as tel,sp.spusername,sp.spdate,sp.yj,sp.spresult,sp.tname,sp.tid
|
||
|
|
from et_train_ysgroup ysgroup
|
||
|
|
inner join et_train_sp sp
|
||
|
|
on ysgroup.id = sp.tid
|
||
|
|
inner join et_train_ys ys
|
||
|
|
on ys.id = ysgroup.ysid
|
||
|
|
where <@p>spusercode</@p>
|
||
|
|
union all
|
||
|
|
select g.id,y.name as name,'院级年度总结' as application,g.addgroupname,g.addusername,g.addtime,'无' as tel,sp.spusername,sp.spdate,sp.yj,sp.spresult,sp.tname,sp.tid
|
||
|
|
from et_train_ysistgroup g
|
||
|
|
inner join et_train_sp sp
|
||
|
|
on g.id = sp.tid
|
||
|
|
inner join et_train_ysist y
|
||
|
|
on y.id = g.ysid
|
||
|
|
where <@p>spusercode</@p>
|
||
|
|
union all
|
||
|
|
select ot.id,ot.pxmc as name,'外派培训' as application,ot.addgroupname,ot.addusername,ot.addtime,ot.lxdh as tel,sp.spusername,sp.spdate,sp.yj,sp.spresult,sp.tname,sp.tid
|
||
|
|
from et_train_ot ot
|
||
|
|
inner join et_train_sp sp
|
||
|
|
on ot.id = sp.tid
|
||
|
|
where <@p>spusercode</@p>
|
||
|
|
union all
|
||
|
|
select p.id,o.pxmc as name,'外派登记' as application,p.addgroupname,p.addusername,p.addtime,'无' as tel,sp.spusername,sp.spdate,sp.yj,sp.spresult,sp.tname,sp.tid
|
||
|
|
from et_train_ot_pxdj p
|
||
|
|
inner join et_train_sp sp
|
||
|
|
on p.id = sp.tid
|
||
|
|
inner join et_train_ot o
|
||
|
|
on o.id = p.otid
|
||
|
|
where <@p>spusercode</@p>
|
||
|
|
union all
|
||
|
|
select d.id,o.pxmc as name,'外派培训删除' as application,d.addgroupname,d.addusername,d.addtime,'无' as tel,sp.spusername,sp.spdate,sp.yj,sp.spresult,sp.tname,sp.tid
|
||
|
|
from et_train_ot_del d
|
||
|
|
inner join et_train_sp sp
|
||
|
|
on d.id = sp.tid
|
||
|
|
inner join et_train_ot o
|
||
|
|
on o.id = d.otid
|
||
|
|
where <@p>spusercode</@p>
|
||
|
|
|
||
|
|
]]></sql>
|
||
|
|
|
||
|
|
</dynamic-sql>
|