前端代码 和 权限校验

This commit is contained in:
liumengyu
2026-08-21 17:46:50 +08:00
parent 179b12e3bf
commit 8312231af5
11 changed files with 201 additions and 93 deletions
@@ -85,6 +85,9 @@
<if test="cond.kcmc != null and cond.kcmc != ''">
AND k."课名称" LIKE CONCAT('%', #{cond.kcmc}, '%')
</if>
<if test="cond.jybh != null and cond.jybh != ''">
AND r."教员编号" = #{cond.jybh}
</if>
<if test="cond.skjy != null and cond.skjy != ''">
AND j."教员姓名" LIKE CONCAT('%', #{cond.skjy}, '%')
</if>
@@ -1,6 +1,7 @@
package com.roomroot.jwgl.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.roomroot.jwgl.entity.XYKCCJ;
import com.roomroot.jwgl.vo.elective.StudentGradeVO;
import org.apache.ibatis.annotations.Mapper;
@@ -13,6 +14,14 @@ public interface XYKCCJMapper extends BaseMapper<XYKCCJ> {
List<XYKCCJ> selectByStudentId(@Param("xybh") String xybh);
/**
* 分页条件查询课程成绩。
* <p>学员编号、年度可选;年度未传时默认取最大年度(最新年度)的数据。</p>
*/
Page<XYKCCJ> selectPageByCondition(Page<XYKCCJ> page,
@Param("xybh") String xybh,
@Param("nd") Integer nd);
/** 按学员队查询成绩(含学员姓名学号) */
List<StudentGradeVO> selectGradeByXydbh(@Param("xydbh") String xydbh, @Param("kmbh") String kmbh);
}
@@ -36,6 +36,23 @@
ORDER BY 年度 DESC, 科目编号
</select>
<!-- 分页条件查询课程成绩:学员编号、年度可选;年度未传时默认取最大年度(最新年度) -->
<select id="selectPageByCondition" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM "学员课程成绩"
WHERE 1=1
<if test="xybh != null and xybh != ''">
AND 学员编号 = #{xybh}
</if>
<if test="nd != null">
AND 年度 = #{nd}
</if>
<if test="nd == null">
AND 年度 = (SELECT MAX(年度) FROM "学员课程成绩")
</if>
ORDER BY 年度 DESC, 科目编号
</select>
<resultMap id="GradeResultMap" type="com.roomroot.jwgl.vo.elective.StudentGradeVO">
<result column="学员编号" property="xybh"/>
<result column="姓名" property="xm"/>
@@ -1,6 +1,7 @@
package com.roomroot.jwgl.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.roomroot.jwgl.entity.XYKCGCCJ;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@@ -11,4 +12,12 @@ import java.util.List;
public interface XYKCGCCJMapper extends BaseMapper<XYKCGCCJ> {
List<XYKCGCCJ> selectByStudentId(@Param("xybh") String xybh);
/**
* 分页条件查询课程过程成绩。
* <p>学员编号、年度可选;年度未传时默认取最大年度(最新年度)的数据。</p>
*/
Page<XYKCGCCJ> selectPageByCondition(Page<XYKCGCCJ> page,
@Param("xybh") String xybh,
@Param("nd") Integer nd);
}
@@ -37,4 +37,21 @@
ORDER BY 年度 DESC, 科目编号
</select>
<!-- 分页条件查询课程过程成绩:学员编号、年度可选;年度未传时默认取最大年度(最新年度) -->
<select id="selectPageByCondition" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM "学员课程过程成绩"
WHERE 1=1
<if test="xybh != null and xybh != ''">
AND 学员编号 = #{xybh}
</if>
<if test="nd != null">
AND 年度 = #{nd}
</if>
<if test="nd == null">
AND 年度 = (SELECT MAX(年度) FROM "学员课程过程成绩")
</if>
ORDER BY 年度 DESC, 科目编号
</select>
</mapper>