parent
35d377cacf
commit
ba11b71228
10 changed files with 439 additions and 17 deletions
@ -0,0 +1,58 @@ |
|||||||
|
package org.springblade.desk.jobTransfer.pojo.enums; |
||||||
|
|
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import lombok.Getter; |
||||||
|
import org.springblade.core.tool.utils.ObjectUtil; |
||||||
|
import org.springblade.core.tool.utils.StringPool; |
||||||
|
|
||||||
|
import java.util.Arrays; |
||||||
|
|
||||||
|
/** |
||||||
|
* 证书维护状态枚举 |
||||||
|
* |
||||||
|
* @author qyl |
||||||
|
* @date 2026-01-12 |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@AllArgsConstructor |
||||||
|
public enum MaintenanceStatusEnum { |
||||||
|
EMPTY(StringPool.EMPTY, -1), |
||||||
|
|
||||||
|
/** |
||||||
|
* 状态枚举 |
||||||
|
*/ |
||||||
|
NORMAL("正常", 1), |
||||||
|
DUE("到期", 2), |
||||||
|
DEPART("离职", 3), |
||||||
|
; |
||||||
|
final String name; |
||||||
|
final Integer code; |
||||||
|
|
||||||
|
/** |
||||||
|
* 匹配枚举值 |
||||||
|
* |
||||||
|
* @param name 名称 |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
public static MaintenanceStatusEnum of(String name) { |
||||||
|
return Arrays.stream(MaintenanceStatusEnum.values()) |
||||||
|
.filter(enumItem -> enumItem.getName().equalsIgnoreCase(name != null ? name : "")) |
||||||
|
.findFirst() |
||||||
|
// 在没有找到匹配项时返回默认值
|
||||||
|
.orElse(MaintenanceStatusEnum.EMPTY); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 根据值获取名称 |
||||||
|
* |
||||||
|
* @param code |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
public static String getName(Integer code) { |
||||||
|
MaintenanceStatusEnum item = Arrays.stream(MaintenanceStatusEnum.values()) |
||||||
|
.filter(enumItem -> enumItem.getCode() == code) |
||||||
|
.findFirst() |
||||||
|
.orElse(null); |
||||||
|
return ObjectUtil.isEmpty(item) ? StringPool.EMPTY : item.getName(); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,47 @@ |
|||||||
|
package org.springblade.desk.jobTransfer.pojo.request; |
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
/** |
||||||
|
* 岗位证书管理检索请求入参 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
public class CertificateLedgerQuery { |
||||||
|
/** |
||||||
|
* 姓名 |
||||||
|
*/ |
||||||
|
@Schema(description = "姓名") |
||||||
|
private String name; |
||||||
|
/** |
||||||
|
* 所属班组 |
||||||
|
*/ |
||||||
|
@Schema(description = "所属班组") |
||||||
|
private Long deptId; |
||||||
|
|
||||||
|
/** |
||||||
|
* 所属岗位 |
||||||
|
*/ |
||||||
|
@Schema(description = "所属岗位") |
||||||
|
private String station; |
||||||
|
/** |
||||||
|
* 技能等级 |
||||||
|
*/ |
||||||
|
@Schema(description = "技能等级") |
||||||
|
private Short skill; |
||||||
|
/** |
||||||
|
* 证书类型 |
||||||
|
*/ |
||||||
|
@Schema(description = "证书类型") |
||||||
|
private Long certificateId; |
||||||
|
/** |
||||||
|
* 证书编号 |
||||||
|
*/ |
||||||
|
@Schema(description = "证书编号") |
||||||
|
private String certificateCode; |
||||||
|
/** |
||||||
|
* 维护状态(1正常,2到期,3离职) |
||||||
|
*/ |
||||||
|
@Schema(description = "维护状态(1正常,2到期,3离职)") |
||||||
|
private Short maintenanceStatus; |
||||||
|
} |
||||||
@ -0,0 +1,21 @@ |
|||||||
|
package org.springblade.desk.jobTransfer.pojo.vo; |
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* 岗位证书台账VO |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
public class CertificateLedgerVO { |
||||||
|
|
||||||
|
//人员岗位数据
|
||||||
|
@Schema(description = "人员岗位数据") |
||||||
|
private PostHandleVO postHandleVO; |
||||||
|
|
||||||
|
//岗位证书数据集合
|
||||||
|
@Schema(description = "岗位证书数据集合") |
||||||
|
private List<CertificateMaintenanceVO> certificateMaintenanceVOList; |
||||||
|
} |
||||||
Loading…
Reference in new issue