启用禁用员工账号

This commit is contained in:
slhaf
2024-09-10 12:49:38 +08:00
parent 6f40e3c2f2
commit 46491d98a7
5 changed files with 57 additions and 0 deletions

View File

@@ -2,6 +2,22 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.sky.mapper.EmployeeMapper">
<update id="update" parameterType="Employee">
update employee
<set>
<if test="name != null">name = #{name}</if>
<if test="username != null">username = #{username}</if>
<if test="password != null">password = #{password}</if>
<if test="phone != null">phone = #{phone}</if>
<if test="sex != null">sex = #{sex}</if>
<if test="idNumber != null">idNumber = #{idNumber}</if>
<if test="updateTime != null">updateTime = #{updateTime}</if>
<if test="updateUser != null">updateUser = #{updateUser}</if>
<if test="status != null">status = #{status}</if>
</set>
where id = #{id}
</update>
<select id="pageQuery" resultType="com.sky.entity.Employee">
select * from employee