教师月绩效考核 一日流程评估 教师出勤率 幼儿出勤率 卫生和安全

This commit is contained in:
zhanglipeng
2021-07-01 17:34:38 +08:00
parent 976c284ca7
commit 63c5659925
8 changed files with 1088 additions and 0 deletions

View File

@ -0,0 +1,107 @@
<?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.ruoyi.project.benyi.mapper.ByTeacherassessmentMapper">
<resultMap type="ByTeacherassessment" id="ByTeacherassessmentResult">
<result property="id" column="id"/>
<result property="jsid" column="jsid"/>
<result property="classid" column="classid"/>
<result property="deptId" column="dept_id"/>
<result property="month" column="month"/>
<result property="yrlcbl" column="yrlcbl"/>
<result property="jskqbl" column="jskqbl"/>
<result property="yekqbl" column="yekqbl"/>
<result property="sgbl" column="sgbl"/>
<result property="wsbl" column="wsbl"/>
<result property="zfbl" column="zfbl"/>
<result property="createTime" column="create_time"/>
</resultMap>
<sql id="selectByTeacherassessmentVo">
select id, jsid, classid, dept_id, month, yrlcbl, jskqbl, yekqbl, sgbl, wsbl, zfbl, create_time from by_teacherassessment
</sql>
<select id="selectByTeacherassessmentList" parameterType="ByTeacherassessment"
resultMap="ByTeacherassessmentResult">
<include refid="selectByTeacherassessmentVo"/>
<where>
<if test="jsid != null ">and jsid = #{jsid}</if>
<if test="classid != null and classid != ''">and classid = #{classid}</if>
<if test="deptId != null ">and dept_id = #{deptId}</if>
<if test="month != null and month != ''">and month = #{month}</if>
<if test="yrlcbl != null ">and yrlcbl = #{yrlcbl}</if>
<if test="jskqbl != null ">and jskqbl = #{jskqbl}</if>
<if test="yekqbl != null ">and yekqbl = #{yekqbl}</if>
<if test="sgbl != null ">and sgbl = #{sgbl}</if>
<if test="wsbl != null ">and wsbl = #{wsbl}</if>
<if test="zfbl != null ">and zfbl = #{zfbl}</if>
</where>
</select>
<select id="selectByTeacherassessmentById" parameterType="Long" resultMap="ByTeacherassessmentResult">
<include refid="selectByTeacherassessmentVo"/>
where id = #{id}
</select>
<insert id="insertByTeacherassessment" parameterType="ByTeacherassessment" useGeneratedKeys="true" keyProperty="id">
insert into by_teacherassessment
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jsid != null ">jsid,</if>
<if test="classid != null and classid != ''">classid,</if>
<if test="deptId != null ">dept_id,</if>
<if test="month != null and month != ''">month,</if>
<if test="yrlcbl != null ">yrlcbl,</if>
<if test="jskqbl != null ">jskqbl,</if>
<if test="yekqbl != null ">yekqbl,</if>
<if test="sgbl != null ">sgbl,</if>
<if test="wsbl != null ">wsbl,</if>
<if test="zfbl != null ">zfbl,</if>
<if test="createTime != null ">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jsid != null ">#{jsid},</if>
<if test="classid != null and classid != ''">#{classid},</if>
<if test="deptId != null ">#{deptId},</if>
<if test="month != null and month != ''">#{month},</if>
<if test="yrlcbl != null ">#{yrlcbl},</if>
<if test="jskqbl != null ">#{jskqbl},</if>
<if test="yekqbl != null ">#{yekqbl},</if>
<if test="sgbl != null ">#{sgbl},</if>
<if test="wsbl != null ">#{wsbl},</if>
<if test="zfbl != null ">#{zfbl},</if>
<if test="createTime != null ">#{createTime},</if>
</trim>
</insert>
<update id="updateByTeacherassessment" parameterType="ByTeacherassessment">
update by_teacherassessment
<trim prefix="SET" suffixOverrides=",">
<if test="jsid != null ">jsid = #{jsid},</if>
<if test="classid != null and classid != ''">classid = #{classid},</if>
<if test="deptId != null ">dept_id = #{deptId},</if>
<if test="month != null and month != ''">month = #{month},</if>
<if test="yrlcbl != null ">yrlcbl = #{yrlcbl},</if>
<if test="jskqbl != null ">jskqbl = #{jskqbl},</if>
<if test="yekqbl != null ">yekqbl = #{yekqbl},</if>
<if test="sgbl != null ">sgbl = #{sgbl},</if>
<if test="wsbl != null ">wsbl = #{wsbl},</if>
<if test="zfbl != null ">zfbl = #{zfbl},</if>
<if test="createTime != null ">create_time = #{createTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteByTeacherassessmentById" parameterType="Long">
delete from by_teacherassessment where id = #{id}
</delete>
<delete id="deleteByTeacherassessmentByIds" parameterType="String">
delete from by_teacherassessment where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>