见习之星考核

This commit is contained in:
paidaxing444
2020-09-01 09:50:54 +08:00
parent 6c5ba0d4eb
commit 598d72e8bc
9 changed files with 111 additions and 108 deletions

View File

@ -2,9 +2,9 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.jxzxkhgl.mapper.TsbzJzxzkhshMapper">
<mapper namespace="com.ruoyi.jxzxkhgl.mapper.TsbzJxzxkhshMapper">
<resultMap type="TsbzJzxzkhsh" id="TsbzJzxzkhshResult">
<resultMap type="TsbzJxzxkhsh" id="TsbzJxzxkhshResult">
<result property="id" column="id"/>
<result property="faid" column="faid"/>
<result property="jsid" column="jsid"/>
@ -19,33 +19,36 @@
<result property="createTime" column="create_time"/>
</resultMap>
<sql id="selectTsbzJzxzkhshVo">
select id, faid, jsid, status, xjshr, xjshyj, xjshjy, qjshr, qjshyj, qjshjy, createuseird, create_time from tsbz_jzxzkhsh
<sql id="selectTsbzJxzxkhshVo">
select d.* from tsbz_jxzxmd a
left join tsbz_jxjsjbxx b on b.id=a.jsid
left join sys_dept c on b.prdwid=c.schoolid
left join tsbz_jxzxkhsh d on a.jsid=d.jsid
</sql>
<select id="selectTsbzJzxzkhshList" parameterType="TsbzJzxzkhsh" resultMap="TsbzJzxzkhshResult">
<include refid="selectTsbzJzxzkhshVo"/>
<select id="selectTsbzJxzxkhshList" parameterType="TsbzJxzxkhsh" resultMap="TsbzJxzxkhshResult">
<include refid="selectTsbzJxzxkhshVo"/>
<where>
<if test="faid != null ">and faid = #{faid}</if>
<if test="jsid != null ">and jsid = #{jsid}</if>
<if test="status != null and status != ''">and status = #{status}</if>
<if test="xjshr != null ">and xjshr = #{xjshr}</if>
<if test="xjshyj != null and xjshyj != ''">and xjshyj = #{xjshyj}</if>
<if test="xjshjy != null and xjshjy != ''">and xjshjy = #{xjshjy}</if>
<if test="qjshr != null ">and qjshr = #{qjshr}</if>
<if test="qjshyj != null and qjshyj != ''">and qjshyj = #{qjshyj}</if>
<if test="qjshjy != null and qjshjy != ''">and qjshjy = #{qjshjy}</if>
<if test="createuseird != null ">and createuseird = #{createuseird}</if>
<if test="faid != null ">and d.faid = #{faid}</if>
<if test="jsid != null ">and d.jsid = #{jsid}</if>
<if test="status != null and status != ''">and d.status = #{status}</if>
<if test="xjshr != null ">and d.xjshr = #{xjshr}</if>
<if test="xjshyj != null and xjshyj != ''">and d.xjshyj = #{xjshyj}</if>
<if test="xjshjy != null and xjshjy != ''">and d.xjshjy = #{xjshjy}</if>
<if test="qjshr != null ">and d.qjshr = #{qjshr}</if>
<if test="qjshyj != null and qjshyj != ''">and d.qjshyj = #{qjshyj}</if>
<if test="qjshjy != null and qjshjy != ''">and d.qjshjy = #{qjshjy}</if>
<if test="createuseird != null ">and d.createuseird = #{createuseird}</if>
</where>
</select>
<select id="selectTsbzJzxzkhshById" parameterType="Long" resultMap="TsbzJzxzkhshResult">
<include refid="selectTsbzJzxzkhshVo"/>
where id = #{id}
<select id="selectTsbzJxzxkhshById" parameterType="Long" resultMap="TsbzJxzxkhshResult">
<include refid="selectTsbzJxzxkhshVo"/>
where d.id = #{id}
</select>
<insert id="insertTsbzJzxzkhsh" parameterType="TsbzJzxzkhsh" useGeneratedKeys="true" keyProperty="id">
insert into tsbz_jzxzkhsh
<insert id="insertTsbzJxzxkhsh" parameterType="TsbzJxzxkhsh" useGeneratedKeys="true" keyProperty="id">
insert into tsbz_jxzxkhsh
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="faid != null">faid,</if>
<if test="jsid != null">jsid,</if>
@ -74,8 +77,8 @@
</trim>
</insert>
<update id="updateTsbzJzxzkhsh" parameterType="TsbzJzxzkhsh">
update tsbz_jzxzkhsh
<update id="updateTsbzJxzxkhsh" parameterType="TsbzJxzxkhsh">
update tsbz_jxzxkhsh
<trim prefix="SET" suffixOverrides=",">
<if test="faid != null">faid = #{faid},</if>
<if test="jsid != null">jsid = #{jsid},</if>
@ -92,12 +95,12 @@
where id = #{id}
</update>
<delete id="deleteTsbzJzxzkhshById" parameterType="Long">
delete from tsbz_jzxzkhsh where id = #{id}
<delete id="deleteTsbzJxzxkhshById" parameterType="Long">
delete from tsbz_jxzxkhsh where id = #{id}
</delete>
<delete id="deleteTsbzJzxzkhshByIds" parameterType="String">
delete from tsbz_jzxzkhsh where id in
<delete id="deleteTsbzJxzxkhshByIds" parameterType="String">
delete from tsbz_jxzxkhsh where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>