瀏覽代碼

人员管理

LIVE_YE 1 年之前
父節點
當前提交
4dafd67810

+ 1 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/appointment/BomanReservatConfigTimeController.java

@@ -28,7 +28,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
  * @date 2024-02-27
  */
 @RestController
-@RequestMapping("/system/time")
+@RequestMapping("/reservat/time")
 public class BomanReservatConfigTimeController extends BaseController
 {
     @Autowired

+ 104 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/appointment/PersonnelManagementController.java

@@ -0,0 +1,104 @@
+package com.ruoyi.web.controller.appointment;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.system.domain.PersonnelManagement;
+import com.ruoyi.system.service.IPersonnelManagementService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 人员管理Controller
+ *
+ * @author ruoyi
+ * @date 2024-02-28
+ */
+@RestController
+@RequestMapping("/system/management")
+public class PersonnelManagementController extends BaseController
+{
+    @Autowired
+    private IPersonnelManagementService personnelManagementService;
+
+/**
+ * 查询人员管理列表
+ */
+@PreAuthorize("@ss.hasPermi('system:management:list')")
+@GetMapping("/list")
+    public TableDataInfo list(PersonnelManagement personnelManagement)
+    {
+        startPage();
+        List<PersonnelManagement> list = personnelManagementService.selectPersonnelManagementList(personnelManagement);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出人员管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:management:export')")
+    @Log(title = "人员管理", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PersonnelManagement personnelManagement)
+    {
+        List<PersonnelManagement> list = personnelManagementService.selectPersonnelManagementList(personnelManagement);
+        ExcelUtil<PersonnelManagement> util = new ExcelUtil<PersonnelManagement>(PersonnelManagement.class);
+        util.exportExcel(response, list, "人员管理数据");
+    }
+
+    /**
+     * 获取人员管理详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:management:query')")
+    @GetMapping(value = "/{personneId}")
+    public AjaxResult getInfo(@PathVariable("personneId") Long personneId)
+    {
+        return success(personnelManagementService.selectPersonnelManagementByPersonneId(personneId));
+    }
+
+    /**
+     * 新增人员管理
+     */
+    @PreAuthorize("@ss.hasPermi('system:management:add')")
+    @Log(title = "人员管理", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody PersonnelManagement personnelManagement)
+    {
+        return toAjax(personnelManagementService.insertPersonnelManagement(personnelManagement));
+    }
+
+    /**
+     * 修改人员管理
+     */
+    @PreAuthorize("@ss.hasPermi('system:management:edit')")
+    @Log(title = "人员管理", businessType = BusinessType.UPDATE)
+    @PostMapping("/put")
+    public AjaxResult edit(@RequestBody PersonnelManagement personnelManagement)
+    {
+        return toAjax(personnelManagementService.updatePersonnelManagement(personnelManagement));
+    }
+
+    /**
+     * 删除人员管理
+     */
+    @PreAuthorize("@ss.hasPermi('system:management:remove')")
+    @Log(title = "人员管理", businessType = BusinessType.DELETE)
+    @GetMapping("/delete/{personneIds}")
+    public AjaxResult remove(@PathVariable Long[] personneIds)
+    {
+        return toAjax(personnelManagementService.deletePersonnelManagementByPersonneIds(personneIds));
+    }
+}

+ 13 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/BomanReservat.java

@@ -28,6 +28,10 @@ public class BomanReservat extends BaseEntity
     @Excel(name = "被访问人员姓名")
     private String appointmentName;
 
+    /** 来访地点 */
+    @Excel(name = "来访地点")
+    private String appointmentSite;
+
     /** 来访者姓名 */
     @Excel(name = "来访者姓名")
     private String visitName;
@@ -266,6 +270,15 @@ public class BomanReservat extends BaseEntity
         return createDept;
     }
 
+
+    public String getAppointmentSite() {
+        return appointmentSite;
+    }
+
+    public void setAppointmentSite(String appointmentSite) {
+        this.appointmentSite = appointmentSite;
+    }
+
     @Override
     public String toString() {
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

+ 140 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/PersonnelManagement.java

@@ -0,0 +1,140 @@
+package com.ruoyi.system.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 人员管理对象 personnel_management
+ * 
+ * @author ruoyi
+ * @date 2024-02-28
+ */
+public class PersonnelManagement extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 人员ID */
+    private Long personneId;
+
+    /** 人员姓名 */
+    @Excel(name = "人员姓名")
+    private String personneName;
+
+    /** 人员手机号 */
+    @Excel(name = "人员手机号")
+    private String personnePhone;
+
+    /** 部门id */
+    @Excel(name = "部门id")
+    private Long deptId;
+
+    /** 部门名称 */
+    @Excel(name = "部门名称")
+    private String deptName;
+
+    /** 人脸数据 */
+    @Excel(name = "人脸数据")
+    private String humanFaceData;
+
+    /** 门禁 */
+    @Excel(name = "门禁")
+    private String guard;
+
+    /** 创建部门 */
+    @Excel(name = "创建部门")
+    private Long createDept;
+
+    public void setPersonneId(Long personneId) 
+    {
+        this.personneId = personneId;
+    }
+
+    public Long getPersonneId() 
+    {
+        return personneId;
+    }
+    public void setPersonneName(String personneName) 
+    {
+        this.personneName = personneName;
+    }
+
+    public String getPersonneName() 
+    {
+        return personneName;
+    }
+    public void setPersonnePhone(String personnePhone) 
+    {
+        this.personnePhone = personnePhone;
+    }
+
+    public String getPersonnePhone() 
+    {
+        return personnePhone;
+    }
+    public void setDeptId(Long deptId) 
+    {
+        this.deptId = deptId;
+    }
+
+    public Long getDeptId() 
+    {
+        return deptId;
+    }
+    public void setDeptName(String deptName) 
+    {
+        this.deptName = deptName;
+    }
+
+    public String getDeptName() 
+    {
+        return deptName;
+    }
+    public void setHumanFaceData(String humanFaceData) 
+    {
+        this.humanFaceData = humanFaceData;
+    }
+
+    public String getHumanFaceData() 
+    {
+        return humanFaceData;
+    }
+    public void setGuard(String guard) 
+    {
+        this.guard = guard;
+    }
+
+    public String getGuard() 
+    {
+        return guard;
+    }
+    public void setCreateDept(Long createDept) 
+    {
+        this.createDept = createDept;
+    }
+
+    public Long getCreateDept() 
+    {
+        return createDept;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("personneId", getPersonneId())
+            .append("personneName", getPersonneName())
+            .append("personnePhone", getPersonnePhone())
+            .append("deptId", getDeptId())
+            .append("deptName", getDeptName())
+            .append("humanFaceData", getHumanFaceData())
+            .append("guard", getGuard())
+            .append("createDept", getCreateDept())
+            .append("createBy", getCreateBy())
+            .append("createTime", getCreateTime())
+            .append("updateBy", getUpdateBy())
+            .append("updateTime", getUpdateTime())
+            .append("remark", getRemark())
+            .toString();
+    }
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/PersonnelManagementMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.PersonnelManagement;
+
+/**
+ * 人员管理Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2024-02-28
+ */
+public interface PersonnelManagementMapper 
+{
+    /**
+     * 查询人员管理
+     * 
+     * @param personneId 人员管理主键
+     * @return 人员管理
+     */
+    public PersonnelManagement selectPersonnelManagementByPersonneId(Long personneId);
+
+    /**
+     * 查询人员管理列表
+     * 
+     * @param personnelManagement 人员管理
+     * @return 人员管理集合
+     */
+    public List<PersonnelManagement> selectPersonnelManagementList(PersonnelManagement personnelManagement);
+
+    /**
+     * 新增人员管理
+     * 
+     * @param personnelManagement 人员管理
+     * @return 结果
+     */
+    public int insertPersonnelManagement(PersonnelManagement personnelManagement);
+
+    /**
+     * 修改人员管理
+     * 
+     * @param personnelManagement 人员管理
+     * @return 结果
+     */
+    public int updatePersonnelManagement(PersonnelManagement personnelManagement);
+
+    /**
+     * 删除人员管理
+     * 
+     * @param personneId 人员管理主键
+     * @return 结果
+     */
+    public int deletePersonnelManagementByPersonneId(Long personneId);
+
+    /**
+     * 批量删除人员管理
+     * 
+     * @param personneIds 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deletePersonnelManagementByPersonneIds(Long[] personneIds);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/IPersonnelManagementService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.PersonnelManagement;
+
+/**
+ * 人员管理Service接口
+ * 
+ * @author ruoyi
+ * @date 2024-02-28
+ */
+public interface IPersonnelManagementService 
+{
+    /**
+     * 查询人员管理
+     * 
+     * @param personneId 人员管理主键
+     * @return 人员管理
+     */
+    public PersonnelManagement selectPersonnelManagementByPersonneId(Long personneId);
+
+    /**
+     * 查询人员管理列表
+     * 
+     * @param personnelManagement 人员管理
+     * @return 人员管理集合
+     */
+    public List<PersonnelManagement> selectPersonnelManagementList(PersonnelManagement personnelManagement);
+
+    /**
+     * 新增人员管理
+     * 
+     * @param personnelManagement 人员管理
+     * @return 结果
+     */
+    public int insertPersonnelManagement(PersonnelManagement personnelManagement);
+
+    /**
+     * 修改人员管理
+     * 
+     * @param personnelManagement 人员管理
+     * @return 结果
+     */
+    public int updatePersonnelManagement(PersonnelManagement personnelManagement);
+
+    /**
+     * 批量删除人员管理
+     * 
+     * @param personneIds 需要删除的人员管理主键集合
+     * @return 结果
+     */
+    public int deletePersonnelManagementByPersonneIds(Long[] personneIds);
+
+    /**
+     * 删除人员管理信息
+     * 
+     * @param personneId 人员管理主键
+     * @return 结果
+     */
+    public int deletePersonnelManagementByPersonneId(Long personneId);
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PersonnelManagementServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.PersonnelManagementMapper;
+import com.ruoyi.system.domain.PersonnelManagement;
+import com.ruoyi.system.service.IPersonnelManagementService;
+
+/**
+ * 人员管理Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2024-02-28
+ */
+@Service
+public class PersonnelManagementServiceImpl implements IPersonnelManagementService 
+{
+    @Autowired
+    private PersonnelManagementMapper personnelManagementMapper;
+
+    /**
+     * 查询人员管理
+     * 
+     * @param personneId 人员管理主键
+     * @return 人员管理
+     */
+    @Override
+    public PersonnelManagement selectPersonnelManagementByPersonneId(Long personneId)
+    {
+        return personnelManagementMapper.selectPersonnelManagementByPersonneId(personneId);
+    }
+
+    /**
+     * 查询人员管理列表
+     * 
+     * @param personnelManagement 人员管理
+     * @return 人员管理
+     */
+    @Override
+    public List<PersonnelManagement> selectPersonnelManagementList(PersonnelManagement personnelManagement)
+    {
+        return personnelManagementMapper.selectPersonnelManagementList(personnelManagement);
+    }
+
+    /**
+     * 新增人员管理
+     * 
+     * @param personnelManagement 人员管理
+     * @return 结果
+     */
+    @Override
+    public int insertPersonnelManagement(PersonnelManagement personnelManagement)
+    {
+        personnelManagement.setCreateTime(DateUtils.getNowDate());
+        return personnelManagementMapper.insertPersonnelManagement(personnelManagement);
+    }
+
+    /**
+     * 修改人员管理
+     * 
+     * @param personnelManagement 人员管理
+     * @return 结果
+     */
+    @Override
+    public int updatePersonnelManagement(PersonnelManagement personnelManagement)
+    {
+        personnelManagement.setUpdateTime(DateUtils.getNowDate());
+        return personnelManagementMapper.updatePersonnelManagement(personnelManagement);
+    }
+
+    /**
+     * 批量删除人员管理
+     * 
+     * @param personneIds 需要删除的人员管理主键
+     * @return 结果
+     */
+    @Override
+    public int deletePersonnelManagementByPersonneIds(Long[] personneIds)
+    {
+        return personnelManagementMapper.deletePersonnelManagementByPersonneIds(personneIds);
+    }
+
+    /**
+     * 删除人员管理信息
+     * 
+     * @param personneId 人员管理主键
+     * @return 结果
+     */
+    @Override
+    public int deletePersonnelManagementByPersonneId(Long personneId)
+    {
+        return personnelManagementMapper.deletePersonnelManagementByPersonneId(personneId);
+    }
+}

+ 6 - 1
ruoyi-system/src/main/resources/mapper/system/BomanReservatMapper.xml

@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="reservatId"    column="reservat_id"    />
         <result property="appointmentId"    column="appointment_id"    />
         <result property="appointmentName"    column="appointment_name"    />
+        <result property="appointmentSite"    column="appointment_site"    />
         <result property="visitName"    column="visit_name"    />
         <result property="reservatConfigTimeId"    column="reservat_config_time_id"    />
         <result property="visitPhone"    column="visit_phone"    />
@@ -32,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectBomanReservatVo">
-        select reservat_id, appointment_id, appointment_name, visit_name, reservat_config_time_id, visit_phone, visit_id_card, visit_num, visit_reason, visit_remark, visit_date, visit_time, visit_date_time, visit_qr, visit_type, visit_status, human_face_data, access_password, create_dept, create_by, create_time, update_by, update_time, remark from boman_reservat
+        select reservat_id, appointment_id, appointment_name,appointment_site, visit_name, reservat_config_time_id, visit_phone, visit_id_card, visit_num, visit_reason, visit_remark, visit_date, visit_time, visit_date_time, visit_qr, visit_type, visit_status, human_face_data, access_password, create_dept, create_by, create_time, update_by, update_time, remark from boman_reservat
     </sql>
 
     <select id="selectBomanReservatList" parameterType="BomanReservat" resultMap="BomanReservatResult">
@@ -40,6 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <where>  
             <if test="appointmentId != null "> and appointment_id = #{appointmentId}</if>
             <if test="appointmentName != null  and appointmentName != ''"> and appointment_name like concat('%', #{appointmentName}, '%')</if>
+            <if test="appointmentSite != null  and appointmentSite != ''"> and appointment_site like concat('%', #{appointmentSite}, '%')</if>
             <if test="visitName != null  and visitName != ''"> and visit_name like concat('%', #{visitName}, '%')</if>
             <if test="reservatConfigTimeId != null "> and reservat_config_time_id = #{reservatConfigTimeId}</if>
             <if test="visitPhone != null  and visitPhone != ''"> and visit_phone = #{visitPhone}</if>
@@ -69,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="appointmentId != null">appointment_id,</if>
             <if test="appointmentName != null">appointment_name,</if>
+            <if test="appointmentSite != null "> appointment_site,</if>
             <if test="visitName != null">visit_name,</if>
             <if test="reservatConfigTimeId != null">reservat_config_time_id,</if>
             <if test="visitPhone != null">visit_phone,</if>
@@ -94,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="appointmentId != null">#{appointmentId},</if>
             <if test="appointmentName != null">#{appointmentName},</if>
+            <if test="appointmentSite != null "> #{appointmentSite},</if>
             <if test="visitName != null">#{visitName},</if>
             <if test="reservatConfigTimeId != null">#{reservatConfigTimeId},</if>
             <if test="visitPhone != null">#{visitPhone},</if>
@@ -123,6 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <trim prefix="SET" suffixOverrides=",">
             <if test="appointmentId != null">appointment_id = #{appointmentId},</if>
             <if test="appointmentName != null">appointment_name = #{appointmentName},</if>
+            <if test="appointmentSite != null "> appointment_site = #{appointmentSite},</if>
             <if test="visitName != null">visit_name = #{visitName},</if>
             <if test="reservatConfigTimeId != null">reservat_config_time_id = #{reservatConfigTimeId},</if>
             <if test="visitPhone != null">visit_phone = #{visitPhone},</if>

+ 106 - 0
ruoyi-system/src/main/resources/mapper/system/PersonnelManagementMapper.xml

@@ -0,0 +1,106 @@
+<?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.system.mapper.PersonnelManagementMapper">
+    
+    <resultMap type="PersonnelManagement" id="PersonnelManagementResult">
+        <result property="personneId"    column="personne_id"    />
+        <result property="personneName"    column="personne_name"    />
+        <result property="personnePhone"    column="personne_phone"    />
+        <result property="deptId"    column="dept_id"    />
+        <result property="deptName"    column="dept_name"    />
+        <result property="humanFaceData"    column="human_face_data"    />
+        <result property="guard"    column="guard"    />
+        <result property="createDept"    column="create_dept"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectPersonnelManagementVo">
+        select personne_id, personne_name, personne_phone, dept_id, dept_name, human_face_data, guard, create_dept, create_by, create_time, update_by, update_time, remark from personnel_management
+    </sql>
+
+    <select id="selectPersonnelManagementList" parameterType="PersonnelManagement" resultMap="PersonnelManagementResult">
+        <include refid="selectPersonnelManagementVo"/>
+        <where>  
+            <if test="personneName != null  and personneName != ''"> and personne_name like concat('%', #{personneName}, '%')</if>
+            <if test="personnePhone != null  and personnePhone != ''"> and personne_phone = #{personnePhone}</if>
+            <if test="deptId != null "> and dept_id = #{deptId}</if>
+            <if test="deptName != null  and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
+            <if test="humanFaceData != null  and humanFaceData != ''"> and human_face_data = #{humanFaceData}</if>
+            <if test="guard != null  and guard != ''"> and guard = #{guard}</if>
+            <if test="createDept != null "> and create_dept = #{createDept}</if>
+        </where>
+    </select>
+    
+    <select id="selectPersonnelManagementByPersonneId" parameterType="Long" resultMap="PersonnelManagementResult">
+        <include refid="selectPersonnelManagementVo"/>
+        where personne_id = #{personneId}
+    </select>
+        
+    <insert id="insertPersonnelManagement" parameterType="PersonnelManagement" useGeneratedKeys="true" keyProperty="personneId">
+        insert into personnel_management
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="personneName != null">personne_name,</if>
+            <if test="personnePhone != null">personne_phone,</if>
+            <if test="deptId != null">dept_id,</if>
+            <if test="deptName != null">dept_name,</if>
+            <if test="humanFaceData != null">human_face_data,</if>
+            <if test="guard != null">guard,</if>
+            <if test="createDept != null">create_dept,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="personneName != null">#{personneName},</if>
+            <if test="personnePhone != null">#{personnePhone},</if>
+            <if test="deptId != null">#{deptId},</if>
+            <if test="deptName != null">#{deptName},</if>
+            <if test="humanFaceData != null">#{humanFaceData},</if>
+            <if test="guard != null">#{guard},</if>
+            <if test="createDept != null">#{createDept},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updatePersonnelManagement" parameterType="PersonnelManagement">
+        update personnel_management
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="personneName != null">personne_name = #{personneName},</if>
+            <if test="personnePhone != null">personne_phone = #{personnePhone},</if>
+            <if test="deptId != null">dept_id = #{deptId},</if>
+            <if test="deptName != null">dept_name = #{deptName},</if>
+            <if test="humanFaceData != null">human_face_data = #{humanFaceData},</if>
+            <if test="guard != null">guard = #{guard},</if>
+            <if test="createDept != null">create_dept = #{createDept},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where personne_id = #{personneId}
+    </update>
+
+    <delete id="deletePersonnelManagementByPersonneId" parameterType="Long">
+        delete from personnel_management where personne_id = #{personneId}
+    </delete>
+
+    <delete id="deletePersonnelManagementByPersonneIds" parameterType="String">
+        delete from personnel_management where personne_id in 
+        <foreach item="personneId" collection="array" open="(" separator="," close=")">
+            #{personneId}
+        </foreach>
+    </delete>
+</mapper>