Files
klp-oa/klp-wms/src/main/java/com/klp/domain/vo/WmsEmployeeTransferVo.java
Joshi 8fe459dae5 feat(wms): 添加员工转岗功能
- 在IWmsEmployeeTransferService中新增employeeTransfer方法
- 在WmsEmployeeTransferController中添加transfer接口
- 实现WmsEmployeeTransferServiceImpl中的员工转岗业务逻辑
- 添加事务注解确保数据一致性
- 在查询方法中关联员工信息表获取完整数据
- 验证员工状态确保在职员工才能转岗
- 记录转岗前后的部门和岗位信息
- 更新WmsEmployeeTransferVo以包含员工信息字段
2026-03-18 11:03:43 +08:00

104 lines
2.2 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.klp.domain.vo;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.klp.common.annotation.ExcelDictFormat;
import com.klp.common.convert.ExcelDictConvert;
import com.klp.domain.WmsEmployeeInfo;
import lombok.Data;
/**
* 员工转岗记录视图对象 wms_employee_transfer
*
* @author klp
* @date 2026-03-18
*/
@Data
@ExcelIgnoreUnannotated
public class WmsEmployeeTransferVo {
private static final long serialVersionUID = 1L;
/**
* 转岗记录主键ID
*/
@ExcelProperty(value = "转岗记录主键ID")
private Long transferId;
/**
* 关联员工信息表的主键ID
*/
@ExcelProperty(value = "关联员工信息表的主键ID")
private Long infoId;
/**
* 原部门
*/
@ExcelProperty(value = "原部门")
private String oldDept;
/**
* 原岗位工种
*/
@ExcelProperty(value = "原岗位工种")
private String oldJobType;
/**
* 新部门
*/
@ExcelProperty(value = "新部门")
private String newDept;
/**
* 新岗位工种
*/
@ExcelProperty(value = "新岗位工种")
private String newJobType;
/**
* 转岗生效时间
*/
@ExcelProperty(value = "转岗生效时间")
private Date transferTime;
/**
* 转岗原因
*/
@ExcelProperty(value = "转岗原因")
private String transferReason;
/**
* 转岗经办人
*/
@ExcelProperty(value = "转岗经办人")
private String transferHandler;
/**
* 审批状态0=待审批1=已审批2=已驳回
*/
@ExcelProperty(value = "审批状态0=待审批1=已审批2=已驳回")
private Integer approvalStatus;
/**
* 附件(如转岗审批单等)
*/
@ExcelProperty(value = "附件", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "如=转岗审批单等")
private String attachment;
/**
* 备注
*/
@ExcelProperty(value = "备注")
private String remark;
/**
* 员工信息
*/
private WmsEmployeeInfo wmsEmployeeInfo;
}