新生报到查询sql修改
This commit is contained in:
@@ -77,11 +77,11 @@
|
|||||||
<if test="ZZMM != null and ZZMM != ''">and a.ZZMM = #{ZZMM}</if>
|
<if test="ZZMM != null and ZZMM != ''">and a.ZZMM = #{ZZMM}</if>
|
||||||
<if test="MZ != null and MZ != ''">and a.MZ = #{MZ}</if>
|
<if test="MZ != null and MZ != ''">and a.MZ = #{MZ}</if>
|
||||||
<if test="XH != null and XH != ''">and a.XH = #{XH}</if>
|
<if test="XH != null and XH != ''">and a.XH = #{XH}</if>
|
||||||
<if test="XY != null and XY != ''">and a.XY = #{XY}</if>
|
<if test="XY != null and XY != ''">and a.XY like concat('%', #{XY}, '%')</if>
|
||||||
<if test="XYDM != null and XYDM != ''">and a.XYDM = #{XYDM}</if>
|
<if test="XYDM != null and XYDM != ''">and a.XYDM = #{XYDM}</if>
|
||||||
<if test="ZY != null and ZY != ''">and a.ZY = #{ZY}</if>
|
<if test="ZY != null and ZY != ''">and a.ZY = #{ZY}</if>
|
||||||
<if test="ZYDM != null and ZYDM != ''">and a.ZYDM = #{ZYDM}</if>
|
<if test="ZYDM != null and ZYDM != ''">and a.ZYDM = #{ZYDM}</if>
|
||||||
<if test="BJ != null and BJ != ''">and a.BJ = #{BJ}</if>
|
<if test="BJ != null and BJ != ''">and a.BJ like concat('%',#{BJ}, '%')</if>
|
||||||
<if test="BJDM != null and BJDM != ''">and a.BJDM = #{BJDM}</if>
|
<if test="BJDM != null and BJDM != ''">and a.BJDM = #{BJDM}</if>
|
||||||
<if test="lastSchool != null and lastSchool != ''">and a.last_school = #{lastSchool}</if>
|
<if test="lastSchool != null and lastSchool != ''">and a.last_school = #{lastSchool}</if>
|
||||||
<if test="lastSchoolAddr != null and lastSchoolAddr != ''">and a.last_school_addr = #{lastSchoolAddr}</if>
|
<if test="lastSchoolAddr != null and lastSchoolAddr != ''">and a.last_school_addr = #{lastSchoolAddr}</if>
|
||||||
@@ -650,7 +650,7 @@
|
|||||||
select a.*,b.class_name,f.major_name,g.dept_name,
|
select a.*,b.class_name,f.major_name,g.dept_name,
|
||||||
case e.room_no is NULL
|
case e.room_no is NULL
|
||||||
when true then "无"
|
when true then "无"
|
||||||
else concat(e.park_name,' ',e.building_name,' ',e.room_no) end as dorm
|
else concat(e.park_name,' ',e.building_name,' ',e.room_no) end as dorm,a.is_smoke,a.is_early,a.hobby
|
||||||
from srs_stu_reg as a
|
from srs_stu_reg as a
|
||||||
left join srs_class as b on a.BJDM = b.class_code
|
left join srs_class as b on a.BJDM = b.class_code
|
||||||
left join cph_teacher as c on b.teacher_id = c.teacher_id
|
left join cph_teacher as c on b.teacher_id = c.teacher_id
|
||||||
|
|||||||
Reference in New Issue
Block a user