30 lines
1.1 KiB
XML
30 lines
1.1 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<dynamic-sql>
|
||
|
|
<sql id="getReplaceStudentList"><![CDATA[
|
||
|
|
select * from et_train_pd_replacestudent
|
||
|
|
where 1=1
|
||
|
|
<@p p=" and %s">card</@p>
|
||
|
|
<@p p="AND status = ?">status</@p>
|
||
|
|
<@p p=" and %s">createdepartment_id</@p>
|
||
|
|
<@p p=" and course like ? ">course</@p>
|
||
|
|
<@p p=" and %s">id</@p>
|
||
|
|
]]></sql>
|
||
|
|
|
||
|
|
<sql id="getReplaceStudentListForCheck"><![CDATA[
|
||
|
|
select * from et_train_pd_replacestudent
|
||
|
|
where status=0
|
||
|
|
<@p p="and course_id in (%s)" f="?">coursearr</@p>
|
||
|
|
<@p p="and %s">course</@p>
|
||
|
|
]]></sql>
|
||
|
|
|
||
|
|
<sql id="getCheckReplaceStudent"><![CDATA[
|
||
|
|
select r.id,course,classname,original_student,original_student_id,new_student,new_student_id,
|
||
|
|
replacement_method,replacement_method_id,r.status,opinion,createperson,createtime
|
||
|
|
from et_train_pd_replacestudent r
|
||
|
|
inner join et_train_pd_cc c
|
||
|
|
on r.classid = c.id
|
||
|
|
where <@p p = " c.addusercode = ? ">addusercode</@p>
|
||
|
|
<@p p="and course like ? ">course</@p>
|
||
|
|
]]></sql>
|
||
|
|
|
||
|
|
</dynamic-sql>
|