同步学生信息修改
This commit is contained in:
@@ -32,19 +32,26 @@
|
||||
<if test="gradeCode != null and gradeCode!= '' ">and BJSSNJ=#{gradeCode}</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectNumber" resultType="java.lang.Integer">
|
||||
select count(1) as number from from_gxsdxyxxzx_student
|
||||
<select id="selectNumber" resultType="java.lang.Integer" parameterType="String">
|
||||
select count(1) as number from from_gxsdxyxxzx_student a left join from_gxsdxyxxzx_class b ON a.SZBJBH=b.BJBH
|
||||
<where>
|
||||
<if test="gradeCode != null and gradeCode != ''">and b.BJSSNJ=#{gradeCode}</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="getStudentInfoList" resultType="java.util.Map">
|
||||
SELECT ROW_NUMBER() OVER(ORDER BY TBA.XH) as xsid,TBA.XH as xh,TBA.XM as xm,CASE
|
||||
WHEN TBA.XBDM = 1 THEN '男'
|
||||
WHEN TBA.XBDM = 2 THEN '女'
|
||||
ELSE '未知' -- 可选:添加默认值,避免NULL
|
||||
END as xb,TBA.XSDQZTDM as sfzx,TBA.XSDQZTDMMC as status,TBA.MZDM as mz,TBB.BJMC as bjmc
|
||||
END as xb,TBA.XSDQZTDM as sfzx,TBA.XSDQZTDMMC as status,TBA.MZDM as mz,TBB.BJMC as bjmc,
|
||||
TBB.BJSSNJ,TBD.BMMC,TBC.JXZYMC
|
||||
FROM `from_gxsdxyxxzx_student` TBA
|
||||
LEFT JOIN from_gxsdxyxxzx_class TBB ON TBA.SZBJBH=TBB.BJBH
|
||||
LEFT JOIN from_gxsdxyxxzx_zyxx TBC ON TBB.BJSSJXZYBH=TBC.JXZYBH
|
||||
LEFT JOIN from_gxsdxyxxzx_xzbm TBD ON TBC.JXZYSSYXBBH=TBD.BMBH
|
||||
where TBB.BJSSNJ>=2019 and TBA.XH is not null
|
||||
<if test="stuNo != null and stuNo != ''">and TBA.XH=#{stuNo}</if>
|
||||
<if test="gradeCode != null and gradeCode != ''">and TBB.BJSSNJ=#{gradeCode}</if>
|
||||
LIMIT #{offset}, #{pageSize}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user