forked from liweijie/education
41 lines
1.6 KiB
XML
41 lines
1.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.roomroot.jwgl.mapper.KTBZMapper">
|
|
|
|
<!-- 课堂标准结果映射 -->
|
|
<resultMap id="BaseResultMap" type="com.roomroot.jwgl.entity.KTBZ">
|
|
<result column="编号" property="bh"/>
|
|
<result column="课程标准编号" property="kcbh"/>
|
|
<result column="课堂节次" property="ktjc"/>
|
|
<result column="教学内容" property="jxnr"/>
|
|
<result column="教学要点" property="jxyd"/>
|
|
<result column="教学方法" property="jxff"/>
|
|
<result column="主讲教员数" property="zjjys"/>
|
|
<result column="辅讲教员数" property="fjjys"/>
|
|
<result column="备注" property="bz"/>
|
|
<result column="教学目的" property="jxmd"/>
|
|
<result column="教学要求" property="jxyq"/>
|
|
</resultMap>
|
|
|
|
<!-- 查询列 -->
|
|
<sql id="Base_Column_List">
|
|
编号, 课程标准编号, 课堂节次, 教学内容, 教学要点, 教学方法,
|
|
主讲教员数, 辅讲教员数, 备注, 教学目的, 教学要求
|
|
</sql>
|
|
|
|
<!-- 根据课程标准编号查询课堂列表(按课堂节次升序) -->
|
|
<select id="selectByKcbh" resultMap="BaseResultMap">
|
|
SELECT <include refid="Base_Column_List"/>
|
|
FROM 课堂标准
|
|
WHERE 课程标准编号 = #{kcbh}
|
|
ORDER BY 课堂节次 ASC
|
|
</select>
|
|
|
|
<!-- 根据课程标准编号物理删除课堂 -->
|
|
<delete id="deleteByKcbh">
|
|
DELETE FROM 课堂标准
|
|
WHERE 课程标准编号 = #{kcbh}
|
|
</delete>
|
|
|
|
</mapper>
|