= (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
]]>
ccid@p>
group by ccid
]]>
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
]]>
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
]]>
= (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
]]>
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>
]]>
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>
]]>
= (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
]]>
id@p>,<@p p=" ? ">end_time@p>,<@p p=" ? ">is_success@p>,<@p p=" ? ">error_information@p>,<@p p=" ? ">add_time@p>)
]]>