综合素质申请

This commit is contained in:
2025-08-15 11:11:12 +08:00
parent c3318b41f4
commit 133f21d085
9 changed files with 225 additions and 56 deletions

View File

@@ -4,6 +4,7 @@ import java.util.List;
import com.srs.system.domain.QgzxTeacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
/**
* 教职工信息Mapper接口
@@ -59,4 +60,8 @@ public interface QgzxTeacherMapper extends BaseMapper<QgzxTeacher> {
* @return 结果
*/
int deleteQgzxTeacherByTeacherIds(Long[] teacherIds);
public List<QgzxTeacher> selectTeacherList();
Long selectDeptCode(String ksh);
Integer insertBatchSomeColumn(@Param("list")List<QgzxTeacher> entityList);
}

View File

@@ -39,7 +39,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectQgzxTeacherVo"/>
where teacher_id = #{teacherId}
</select>
<select id="selectTeacherList" resultType="com.srs.system.domain.QgzxTeacher">
select * from qgzx_teacher
</select>
<select id="selectDeptCode" resultType="java.lang.Long">
select a.dept_id
from sys_dept as a
where dept_code = #{ksh}
</select>
<insert id="insertQgzxTeacher" parameterType="QgzxTeacher" useGeneratedKeys="true" keyProperty="teacherId">
insert into qgzx_teacher
<trim prefix="(" suffix=")" suffixOverrides=",">
@@ -65,6 +72,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<insert id="insertBatchSomeColumn">
insert into qgzx_teacher(name,gender,age,employee_id,dept_id,status,create_time)
values
<foreach item="entity" collection="List" separator="," open="(" close=")">
(
<if test="entity.name != null and entity.name != ''">#{entity.name},</if>
<if test="entity.gender != null and entity.gender != ''">#{entity.gender},</if>
<if test="entity.age!=null">#{entity.age},</if>
<if test="entity.employeeId != null and entity.employeeId != ''">#{entity.employeeId},</if>
<if test="entity.deptId!=null">#{entity.deptId},</if>
<if test="entity.status != null and entity.status != ''">#{entity.status},</if>
<if test="entity.createTime!=null">#{entity.createTime},</if>
)
</foreach>
</insert>
<update id="updateQgzxTeacher" parameterType="QgzxTeacher">
update qgzx_teacher