Commit d7c867a1 authored by fangxinjiang's avatar fangxinjiang

新增档案服务

parent aa707d9c
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 电子档案信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Data
@TableName("t_elec_employee_info")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "电子档案信息表")
public class TElecEmployeeInfo extends BaseEntity {
/**
* id
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description ="id")
private Long id;
/**
* 员工姓名
*/
@Schema(description ="员工姓名")
private String empName;
/**
* 身份证号
*/
@Schema(description ="身份证号")
private String empIdcard;
/**
* 员工编码
*/
@Schema(description ="员工编码")
private String empNo;
/**
* 单位名称
*/
@Schema(description ="单位名称")
private String belongUnit;
/**
* 项目名称
*/
@Schema(description ="项目名称")
private String itemName;
/**
* 项目编码
*/
@Schema(description ="项目编码")
private String itemCode;
/**
* 资料类型
*/
@Schema(description ="资料类型")
private String dataType;
/**
* 附件
*/
@Schema(description ="附件")
private String attaInfo;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 档案划转日志表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Data
@TableName("t_emp_change_info")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "档案划转日志表")
public class TEmpChangeInfo extends BaseEntity {
/**
* id
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description ="id")
private Long id;
/**
* 员工姓名
*/
@Schema(description ="员工姓名")
private String empName;
/**
* 原单位名称
*/
@Schema(description ="原单位名称")
private String oldDept;
/**
* 新单位名称
*/
@Schema(description ="新单位名称")
private String newDept;
/**
* 原结算主体
*/
@Schema(description ="原结算主体")
private String oldSettle;
/**
* 新结算主体
*/
@Schema(description ="新结算主体")
private String newSettle;
/**
* 员工id
*/
@Schema(description ="员工id")
private Long empId;
/**
* 未结算费用 0:划转 1:不划转
*/
@Schema(description ="未结算费用 0:划转 1:不划转")
private String unsettleDeal;
/**
* 划转起始月
*/
@Schema(description ="划转起始月")
private String changeStartMonth;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
/**
* 员工伤残信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Data
@TableName("t_emp_disability_info")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "员工伤残信息表")
public class TEmpDisabilityInfo extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description ="主键")
private Long id;
/**
* 员工ID
*/
@Schema(description ="员工ID")
private String empId;
/**
* 员工姓名
*/
@Schema(description ="员工姓名")
private String empName;
/**
* 员工编码
*/
@Schema(description ="员工编码")
private String empCode;
/**
* 身份证号
*/
@Schema(description ="身份证号")
private String empIdcard;
/**
* 伤残病名称
*/
@Schema(description ="伤残病名称")
private String disabilityName;
/**
* 伤残等级
*/
@Schema(description ="伤残等级")
private String disabilityLevel;
/**
* 是否工伤标识0是/1否
*/
@Schema(description ="是否工伤标识0是/1否")
private String injuryIdentification;
/**
* 伤残开始日期
*/
@Schema(description ="伤残开始日期")
private LocalDateTime startTime;
/**
* 伤残结束日期
*/
@Schema(description ="伤残结束日期")
private LocalDateTime endTime;
/**
* 职业病名称
*/
@Schema(description ="职业病名称")
private String occupationalDisease;
/**
* 0删除作废1正常
*/
@Schema(description ="0删除作废1正常")
private String deleteFlag;
/**
* 备注
*/
@Schema(description ="备注")
private String remark;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
/**
* 员工学历信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Data
@TableName("t_emp_education")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "员工学历信息表")
public class TEmpEducation extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description ="主键")
private Long id;
/**
* 员工ID
*/
@Schema(description ="员工ID")
private String empId;
/**
* 员工姓名
*/
@Schema(description ="员工姓名")
private String empName;
/**
* 员工编码
*/
@Schema(description ="员工编码")
private String empCode;
/**
* 身份证号
*/
@Schema(description ="身份证号")
private String empIdcard;
/**
* 入学时间
*/
@Schema(description ="入学时间")
private LocalDateTime entryDate;
/**
* 学历名称
*/
@Schema(description ="学历名称")
private String educationName;
/**
* 结业日期
*/
@Schema(description ="结业日期")
private LocalDateTime gradutionDate;
/**
* 学校名称
*/
@Schema(description ="学校名称")
private String school;
/**
* 学制类型
*/
@Schema(description ="学制类型")
private String educationSystem;
/**
* 最高学历标识0是/1否
*/
@Schema(description ="最高学历标识0是/1否")
private String hightIdentification;
/**
* 学历类型:全日制、自考、函授等
*/
@Schema(description ="学历类型:全日制、自考、函授等")
private String type;
/**
* 院系名称
*/
@Schema(description ="院系名称")
private String collageSystem;
/**
* 是否删除 0未删除/1删除
*/
@Schema(description ="是否删除 0未删除/1删除")
private String deleteFlag;
/**
* 结算主体ID
*/
@Schema(description ="结算主体ID")
private String settleDomain;
/**
* 派单标识 1 代表派单生成, 派单审核通过后清空标识 专门用于派单作废
*/
@Schema(description ="派单标识 1 代表派单生成, 派单审核通过后清空标识 专门用于派单作废")
private String dispatchFlag;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
/**
* 员工家庭信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Data
@TableName("t_emp_family")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "员工家庭信息表")
public class TEmpFamily extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description ="主键")
private Long id;
/**
* 员工主键
*/
@Schema(description ="员工主键")
private String empId;
/**
* 员工编码
*/
@Schema(description ="员工编码")
private String empCode;
/**
* 员工姓名
*/
@Schema(description ="员工姓名")
private String empName;
/**
* 身份证号
*/
@Schema(description ="身份证号")
private String empIdcard;
/**
* 与本人关系
*/
@Schema(description ="与本人关系")
private String relationshipSelf;
/**
* 家庭成员姓名
*/
@Schema(description ="家庭成员姓名")
private String familyName;
/**
* 出生日期
*/
@Schema(description ="出生日期")
private LocalDateTime birthday;
/**
* 工作/学习单位
*/
@Schema(description ="工作/学习单位")
private String workUnit;
/**
* 联系电话
*/
@Schema(description ="联系电话")
private String contractTel;
/**
* 0删除作废1正常
*/
@Schema(description ="0删除作废1正常")
private String deleteFlag;
/**
* 结算主体ID
*/
@Schema(description ="结算主体ID")
private String settleDomain;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 员工职业资格信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Data
@TableName("t_emp_professional_qualification")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "员工职业资格信息表")
public class TEmpProfessionalQualification extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description ="主键")
private Long id;
/**
* 员工主键
*/
@Schema(description ="员工主键")
private String empId;
/**
* 员工姓名
*/
@Schema(description ="员工姓名")
private String empName;
/**
* 员工编码
*/
@Schema(description ="员工编码")
private String empCode;
/**
* 身份证号
*/
@Schema(description ="身份证号")
private String empIdcard;
/**
* 资格类型
*/
@Schema(description ="资格类型")
private String qualificationType;
/**
* 资格等级
*/
@Schema(description ="资格等级")
private String qualificationLevel;
/**
* 证书编号
*/
@Schema(description ="证书编号")
private String certificationNo;
/**
* 获取方式
*/
@Schema(description ="获取方式")
private String obtainType;
/**
* 评定机构
*/
@Schema(description ="评定机构")
private String assessmentUnit;
/**
* 申报年度
*/
@Schema(description ="申报年度")
private String declareYear;
/**
* 是否最高资格0是/1否
*/
@Schema(description ="是否最高资格0是/1否")
private String heightIdentification;
/**
* 0删除作废1正常
*/
@Schema(description ="0删除作废1正常")
private String deleteFlag;
/**
* 结算主体ID
*/
@Schema(description ="结算主体ID")
private String settleDomain;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
/**
* 员工工作履历信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Data
@TableName("t_emp_work_recording")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "员工工作履历信息表")
public class TEmpWorkRecording extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description ="主键")
private Long id;
/**
* 员工ID
*/
@Schema(description ="员工ID")
private String empId;
/**
* 员工编码
*/
@Schema(description ="员工编码")
private String empCode;
/**
* 员工姓名
*/
@Schema(description ="员工姓名")
private String empName;
/**
* 身份证号
*/
@Schema(description ="身份证号")
private String empIdcard;
/**
* 工作单位
*/
@Schema(description ="工作单位")
private String workUnit;
/**
* 工作部门
*/
@Schema(description ="工作部门")
private String workDepart;
/**
* 工作岗位
*/
@Schema(description ="工作岗位")
private String workJob;
/**
* 开始工作日期
*/
@Schema(description ="开始工作日期")
private LocalDateTime startDate;
/**
* 结束工作日期
*/
@Schema(description ="结束工作日期")
private LocalDateTime endDate;
/**
* 在职状态0是/1否
*/
@Schema(description ="在职状态0是/1否")
private String workingStatus;
/**
* 人员类型
*/
@Schema(description ="人员类型")
private String workingType;
/**
* 0删除作废1正常
*/
@Schema(description ="0删除作废1正常")
private String deleteFlag;
/**
* 结算主体ID
*/
@Schema(description ="结算主体ID")
private String settleDomain;
}
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 员工伤残excel 对应的实体
*
* @author fxz
* @date 2022/3/21
*/
@Data
@ColumnWidth(30)
public class EmpDisabilityExcelVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 员工编码
*/
@NotNull(message = "员工编码不能为空")
@ExcelProperty(value ="员工编码")
private String empCode;
/**
* 员工姓名
*/
@NotNull(message = "员工姓名不能为空")
@ExcelProperty(value ="员工姓名")
private String empName;
/**
* 伤残病名称
*/
@NotNull(message = "伤残病名称不能为空")
@ExcelProperty(value ="伤残病名称")
private String disabilityName;
/**
* 伤残等级
*/
@NotNull(message = "伤残等级不能为空")
@ExcelProperty(value ="伤残等级")
private String disabilityLevel;
/**
* 是否工伤标识0是/1否
*/
@NotNull(message = "是否工伤标识(0是/1否)不能为空")
@ExcelProperty(value ="是否工伤")
private String injuryIdentification;
/**
* 伤残开始日期
*/
@NotNull(message = "伤残开始日期不能为空")
@Past
@ExcelProperty(value ="伤残开始日期")
private LocalDateTime startTime;
/**
* 伤残结束日期
*/
@NotNull(message = "伤残结束日期不能为空")
@Past
@ExcelProperty(value ="伤残结束日期")
private LocalDateTime endTime;
/**
* 职业病名称
*/
@ExcelProperty(value ="职业病名称")
private String occupationalDisease;
/**
* 备注
*/
@ExcelProperty(value ="备注")
private String remark;
/*JSR303 是一套JavaBean参数校验的标准,它定义了很多常用的校验注解,我们可以直接将这些注解加在我们JavaBean的属性上面,就可以在需要校验的时候进行校验了。注解如下:
参考配置
@Null 限制只能为null
@NotNull 限制必须不为null
@AssertFalse 限制必须为false
@AssertTrue 限制必须为true
@DecimalMax(value) 限制必须为一个不大于指定值的数字
@DecimalMin(value) 限制必须为一个不小于指定值的数字
@Digits(integer,fraction) 限制必须为一个小数,且整数部分的位数不能超过integer,小数部分的位数不能超过fraction
@Future 限制必须是一个将来的日期
@Max(value) 限制必须为一个不大于指定值的数字
@Min(value) 限制必须为一个不小于指定值的数字
@Past 限制必须是一个过去的日期
@Pattern(value) 限制必须符合指定的正则表达式
@Size(max,min) 限制字符长度必须在min到max之间
@Past 验证注解的元素值(日期类型)比当前时间早
@NotEmpty 验证注解的元素值不为null且不为空(字符串长度不为0、集合大小不为0)
@NotBlank 验证注解的元素值不为空(不为null、去除首位空格后长度为0),不同于@NotEmpty,@NotBlank只应用于字符串且在比较时会去除字符串的空格
@Email 验证注解的元素值是Email,也可以通过正则表达式和flag指定自定义的email格式*/
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.controller;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TElecEmployeeInfo;
import com.yifu.cloud.plus.v1.yifu.archives.service.TElecEmployeeInfoService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
/**
* 电子档案信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/telecemployeeinfo" )
@Tag(name = "电子档案信息表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class TElecEmployeeInfoController {
private final TElecEmployeeInfoService tElecEmployeeInfoService;
/**
* 分页查询
* @param page 分页对象
* @param tElecEmployeeInfo 电子档案信息表
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page" )
@PreAuthorize("@pms.hasPermission('archives_telecemployeeinfo_get')" )
public R getTElecEmployeeInfoPage(Page page, TElecEmployeeInfo tElecEmployeeInfo) {
return R.ok(tElecEmployeeInfoService.page(page, Wrappers.query(tElecEmployeeInfo)));
}
/**
* 通过id查询电子档案信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询")
@GetMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('archives_telecemployeeinfo_get')" )
public R getById(@PathVariable("id" ) Long id) {
return R.ok(tElecEmployeeInfoService.getById(id));
}
/**
* 新增电子档案信息表
* @param tElecEmployeeInfo 电子档案信息表
* @return R
*/
@Operation(summary = "新增电子档案信息表", description = "新增电子档案信息表")
@SysLog("新增电子档案信息表" )
@PostMapping
@PreAuthorize("@pms.hasPermission('archives_telecemployeeinfo_add')" )
public R save(@RequestBody TElecEmployeeInfo tElecEmployeeInfo) {
return R.ok(tElecEmployeeInfoService.save(tElecEmployeeInfo));
}
/**
* 修改电子档案信息表
* @param tElecEmployeeInfo 电子档案信息表
* @return R
*/
@Operation(summary = "修改电子档案信息表", description = "修改电子档案信息表")
@SysLog("修改电子档案信息表" )
@PutMapping
@PreAuthorize("@pms.hasPermission('archives_telecemployeeinfo_edit')" )
public R updateById(@RequestBody TElecEmployeeInfo tElecEmployeeInfo) {
return R.ok(tElecEmployeeInfoService.updateById(tElecEmployeeInfo));
}
/**
* 通过id删除电子档案信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id删除电子档案信息表", description = "通过id删除电子档案信息表")
@SysLog("通过id删除电子档案信息表" )
@DeleteMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('archives_telecemployeeinfo_del')" )
public R removeById(@PathVariable Long id) {
return R.ok(tElecEmployeeInfoService.removeById(id));
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.controller;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpChangeInfo;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpChangeInfoService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
/**
* 档案划转日志表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/tempchangeinfo" )
@Tag(name = "档案划转日志表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class TEmpChangeInfoController {
private final TEmpChangeInfoService tEmpChangeInfoService;
/**
* 分页查询
* @param page 分页对象
* @param tEmpChangeInfo 档案划转日志表
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page" )
@PreAuthorize("@pms.hasPermission('archives_tempchangeinfo_get')" )
public R getTEmpChangeInfoPage(Page page, TEmpChangeInfo tEmpChangeInfo) {
return R.ok(tEmpChangeInfoService.page(page, Wrappers.query(tEmpChangeInfo)));
}
/**
* 通过id查询档案划转日志表
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询")
@GetMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('archives_tempchangeinfo_get')" )
public R getById(@PathVariable("id" ) Long id) {
return R.ok(tEmpChangeInfoService.getById(id));
}
/**
* 新增档案划转日志表
* @param tEmpChangeInfo 档案划转日志表
* @return R
*/
@Operation(summary = "新增档案划转日志表", description = "新增档案划转日志表")
@SysLog("新增档案划转日志表" )
@PostMapping
@PreAuthorize("@pms.hasPermission('archives_tempchangeinfo_add')" )
public R save(@RequestBody TEmpChangeInfo tEmpChangeInfo) {
return R.ok(tEmpChangeInfoService.save(tEmpChangeInfo));
}
/**
* 修改档案划转日志表
* @param tEmpChangeInfo 档案划转日志表
* @return R
*/
@Operation(summary = "修改档案划转日志表", description = "修改档案划转日志表")
@SysLog("修改档案划转日志表" )
@PutMapping
@PreAuthorize("@pms.hasPermission('archives_tempchangeinfo_edit')" )
public R updateById(@RequestBody TEmpChangeInfo tEmpChangeInfo) {
return R.ok(tEmpChangeInfoService.updateById(tEmpChangeInfo));
}
/**
* 通过id删除档案划转日志表
* @param id id
* @return R
*/
@Operation(summary = "通过id删除档案划转日志表", description = "通过id删除档案划转日志表")
@SysLog("通过id删除档案划转日志表" )
@DeleteMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('archives_tempchangeinfo_del')" )
public R removeById(@PathVariable Long id) {
return R.ok(tEmpChangeInfoService.removeById(id));
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.controller;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.plugin.excel.annotation.RequestExcel;
import com.pig4cloud.plugin.excel.vo.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.admin.api.vo.PostExcelVO;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpDisabilityInfo;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpDisabilityInfoService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.EmpDisabilityExcelVO;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.http.HttpHeaders;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import java.net.URLDecoder;
import java.util.List;
/**
* 员工伤残信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Log4j2
@RestController
@RequiredArgsConstructor
@RequestMapping("/tempdisabilityinfo" )
@Tag(name = "员工伤残信息表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class TEmpDisabilityInfoController {
private final TEmpDisabilityInfoService tEmpDisabilityInfoService;
/**
* 分页查询
* @param page 分页对象
* @param tEmpDisabilityInfo 员工伤残信息表
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page" )
@PreAuthorize("@pms.hasPermission('archives_tempdisabilityinfo_get')" )
public R getTEmpDisabilityInfoPage(Page page, TEmpDisabilityInfo tEmpDisabilityInfo) {
return R.ok(tEmpDisabilityInfoService.page(page, Wrappers.query(tEmpDisabilityInfo)));
}
/**
* 通过id查询员工伤残信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询")
@GetMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('archives_tempdisabilityinfo_get')" )
public R<TEmpDisabilityInfo> getById(@PathVariable("id" ) Long id) {
return R.ok(tEmpDisabilityInfoService.getById(id));
}
/**
* 新增员工伤残信息表
* @param tEmpDisabilityInfo 员工伤残信息表
* @return R
*/
@Operation(summary = "新增员工伤残信息表", description = "新增员工伤残信息表")
@SysLog("新增员工伤残信息表" )
@PostMapping
@PreAuthorize("@pms.hasPermission('archives_tempdisabilityinfo_add')" )
public R<Boolean> save(@RequestBody TEmpDisabilityInfo tEmpDisabilityInfo) {
return R.ok(tEmpDisabilityInfoService.save(tEmpDisabilityInfo));
}
/**
* 修改员工伤残信息表
* @param tEmpDisabilityInfo 员工伤残信息表
* @return R
*/
@Operation(summary = "修改员工伤残信息表", description = "修改员工伤残信息表")
@SysLog("修改员工伤残信息表" )
@PutMapping
@PreAuthorize("@pms.hasPermission('archives_tempdisabilityinfo_edit')" )
public R<Boolean> updateById(@RequestBody TEmpDisabilityInfo tEmpDisabilityInfo) {
return R.ok(tEmpDisabilityInfoService.updateById(tEmpDisabilityInfo));
}
/**
* 通过id删除员工伤残信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id删除员工伤残信息表", description = "通过id删除员工伤残信息表")
@SysLog("通过id删除员工伤残信息表" )
@DeleteMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('archives_tempdisabilityinfo_del')" )
public R<Boolean> removeById(@PathVariable Long id) {
return R.ok(tEmpDisabilityInfoService.removeById(id));
}
/**
* 批量新增员工伤残信息
*
* @param excelVOList
* @return
* @Author fxj
* @Date 2019-08-16
**/
@Operation(description = "批量新增员工伤残信息 hasPermission('wxhr:tempdisabilityinfo_importListAdd')")
@SysLog("批量新增员工伤残信息")
@PostMapping("/importListAdd")
@PreAuthorize("@pms.hasPermission('wxhr:tempdisabilityinfo_importListAdd')")
public R<List<ErrorMessage>> batchAddByJsonString(@RequestExcel List<EmpDisabilityExcelVO> excelVOList, BindingResult bindingResult) {
return tEmpDisabilityInfoService.importTmpDisability(excelVOList, bindingResult);
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.controller;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpEducation;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpEducationService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
/**
* 员工学历信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/tempeducation" )
@Tag(name = "员工学历信息表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class TEmpEducationController {
private final TEmpEducationService tEmpEducationService;
/**
* 分页查询
* @param page 分页对象
* @param tEmpEducation 员工学历信息表
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page" )
@PreAuthorize("@pms.hasPermission('archives_tempeducation_get')" )
public R getTEmpEducationPage(Page page, TEmpEducation tEmpEducation) {
return R.ok(tEmpEducationService.page(page, Wrappers.query(tEmpEducation)));
}
/**
* 通过id查询员工学历信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询")
@GetMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('archives_tempeducation_get')" )
public R getById(@PathVariable("id" ) Long id) {
return R.ok(tEmpEducationService.getById(id));
}
/**
* 新增员工学历信息表
* @param tEmpEducation 员工学历信息表
* @return R
*/
@Operation(summary = "新增员工学历信息表", description = "新增员工学历信息表")
@SysLog("新增员工学历信息表" )
@PostMapping
@PreAuthorize("@pms.hasPermission('archives_tempeducation_add')" )
public R save(@RequestBody TEmpEducation tEmpEducation) {
return R.ok(tEmpEducationService.save(tEmpEducation));
}
/**
* 修改员工学历信息表
* @param tEmpEducation 员工学历信息表
* @return R
*/
@Operation(summary = "修改员工学历信息表", description = "修改员工学历信息表")
@SysLog("修改员工学历信息表" )
@PutMapping
@PreAuthorize("@pms.hasPermission('archives_tempeducation_edit')" )
public R updateById(@RequestBody TEmpEducation tEmpEducation) {
return R.ok(tEmpEducationService.updateById(tEmpEducation));
}
/**
* 通过id删除员工学历信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id删除员工学历信息表", description = "通过id删除员工学历信息表")
@SysLog("通过id删除员工学历信息表" )
@DeleteMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('archives_tempeducation_del')" )
public R removeById(@PathVariable Long id) {
return R.ok(tEmpEducationService.removeById(id));
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.controller;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpFamily;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpFamilyService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
/**
* 员工家庭信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/tempfamily" )
@Tag(name = "员工家庭信息表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class TEmpFamilyController {
private final TEmpFamilyService tEmpFamilyService;
/**
* 分页查询
* @param page 分页对象
* @param tEmpFamily 员工家庭信息表
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page" )
@PreAuthorize("@pms.hasPermission('archives_tempfamily_get')" )
public R getTEmpFamilyPage(Page page, TEmpFamily tEmpFamily) {
return R.ok(tEmpFamilyService.page(page, Wrappers.query(tEmpFamily)));
}
/**
* 通过id查询员工家庭信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询")
@GetMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('archives_tempfamily_get')" )
public R getById(@PathVariable("id" ) Long id) {
return R.ok(tEmpFamilyService.getById(id));
}
/**
* 新增员工家庭信息表
* @param tEmpFamily 员工家庭信息表
* @return R
*/
@Operation(summary = "新增员工家庭信息表", description = "新增员工家庭信息表")
@SysLog("新增员工家庭信息表" )
@PostMapping
@PreAuthorize("@pms.hasPermission('archives_tempfamily_add')" )
public R save(@RequestBody TEmpFamily tEmpFamily) {
return R.ok(tEmpFamilyService.save(tEmpFamily));
}
/**
* 修改员工家庭信息表
* @param tEmpFamily 员工家庭信息表
* @return R
*/
@Operation(summary = "修改员工家庭信息表", description = "修改员工家庭信息表")
@SysLog("修改员工家庭信息表" )
@PutMapping
@PreAuthorize("@pms.hasPermission('archives_tempfamily_edit')" )
public R updateById(@RequestBody TEmpFamily tEmpFamily) {
return R.ok(tEmpFamilyService.updateById(tEmpFamily));
}
/**
* 通过id删除员工家庭信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id删除员工家庭信息表", description = "通过id删除员工家庭信息表")
@SysLog("通过id删除员工家庭信息表" )
@DeleteMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('archives_tempfamily_del')" )
public R removeById(@PathVariable Long id) {
return R.ok(tEmpFamilyService.removeById(id));
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.controller;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpProfessionalQualification;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpProfessionalQualificationService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
/**
* 员工职业资格信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/tempprofessionalqualification" )
@Tag(name = "员工职业资格信息表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class TEmpProfessionalQualificationController {
private final TEmpProfessionalQualificationService tEmpProfessionalQualificationService;
/**
* 分页查询
* @param page 分页对象
* @param tEmpProfessionalQualification 员工职业资格信息表
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page" )
@PreAuthorize("@pms.hasPermission('archives_tempprofessionalqualification_get')" )
public R getTEmpProfessionalQualificationPage(Page page, TEmpProfessionalQualification tEmpProfessionalQualification) {
return R.ok(tEmpProfessionalQualificationService.page(page, Wrappers.query(tEmpProfessionalQualification)));
}
/**
* 通过id查询员工职业资格信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询")
@GetMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('archives_tempprofessionalqualification_get')" )
public R getById(@PathVariable("id" ) Long id) {
return R.ok(tEmpProfessionalQualificationService.getById(id));
}
/**
* 新增员工职业资格信息表
* @param tEmpProfessionalQualification 员工职业资格信息表
* @return R
*/
@Operation(summary = "新增员工职业资格信息表", description = "新增员工职业资格信息表")
@SysLog("新增员工职业资格信息表" )
@PostMapping
@PreAuthorize("@pms.hasPermission('archives_tempprofessionalqualification_add')" )
public R save(@RequestBody TEmpProfessionalQualification tEmpProfessionalQualification) {
return R.ok(tEmpProfessionalQualificationService.save(tEmpProfessionalQualification));
}
/**
* 修改员工职业资格信息表
* @param tEmpProfessionalQualification 员工职业资格信息表
* @return R
*/
@Operation(summary = "修改员工职业资格信息表", description = "修改员工职业资格信息表")
@SysLog("修改员工职业资格信息表" )
@PutMapping
@PreAuthorize("@pms.hasPermission('archives_tempprofessionalqualification_edit')" )
public R updateById(@RequestBody TEmpProfessionalQualification tEmpProfessionalQualification) {
return R.ok(tEmpProfessionalQualificationService.updateById(tEmpProfessionalQualification));
}
/**
* 通过id删除员工职业资格信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id删除员工职业资格信息表", description = "通过id删除员工职业资格信息表")
@SysLog("通过id删除员工职业资格信息表" )
@DeleteMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('archives_tempprofessionalqualification_del')" )
public R removeById(@PathVariable Long id) {
return R.ok(tEmpProfessionalQualificationService.removeById(id));
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.controller;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpWorkRecording;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpWorkRecordingService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
/**
* 员工工作履历信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/tempworkrecording" )
@Tag(name = "员工工作履历信息表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class TEmpWorkRecordingController {
private final TEmpWorkRecordingService tEmpWorkRecordingService;
/**
* 分页查询
* @param page 分页对象
* @param tEmpWorkRecording 员工工作履历信息表
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page" )
@PreAuthorize("@pms.hasPermission('archives_tempworkrecording_get')" )
public R getTEmpWorkRecordingPage(Page page, TEmpWorkRecording tEmpWorkRecording) {
return R.ok(tEmpWorkRecordingService.page(page, Wrappers.query(tEmpWorkRecording)));
}
/**
* 通过id查询员工工作履历信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询")
@GetMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('archives_tempworkrecording_get')" )
public R getById(@PathVariable("id" ) Long id) {
return R.ok(tEmpWorkRecordingService.getById(id));
}
/**
* 新增员工工作履历信息表
* @param tEmpWorkRecording 员工工作履历信息表
* @return R
*/
@Operation(summary = "新增员工工作履历信息表", description = "新增员工工作履历信息表")
@SysLog("新增员工工作履历信息表" )
@PostMapping
@PreAuthorize("@pms.hasPermission('archives_tempworkrecording_add')" )
public R save(@RequestBody TEmpWorkRecording tEmpWorkRecording) {
return R.ok(tEmpWorkRecordingService.save(tEmpWorkRecording));
}
/**
* 修改员工工作履历信息表
* @param tEmpWorkRecording 员工工作履历信息表
* @return R
*/
@Operation(summary = "修改员工工作履历信息表", description = "修改员工工作履历信息表")
@SysLog("修改员工工作履历信息表" )
@PutMapping
@PreAuthorize("@pms.hasPermission('archives_tempworkrecording_edit')" )
public R updateById(@RequestBody TEmpWorkRecording tEmpWorkRecording) {
return R.ok(tEmpWorkRecordingService.updateById(tEmpWorkRecording));
}
/**
* 通过id删除员工工作履历信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id删除员工工作履历信息表", description = "通过id删除员工工作履历信息表")
@SysLog("通过id删除员工工作履历信息表" )
@DeleteMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('archives_tempworkrecording_del')" )
public R removeById(@PathVariable Long id) {
return R.ok(tEmpWorkRecordingService.removeById(id));
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TElecEmployeeInfo;
import org.apache.ibatis.annotations.Mapper;
/**
* 电子档案信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Mapper
public interface TElecEmployeeInfoMapper extends BaseMapper<TElecEmployeeInfo> {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpChangeInfo;
import org.apache.ibatis.annotations.Mapper;
/**
* 档案划转日志表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Mapper
public interface TEmpChangeInfoMapper extends BaseMapper<TEmpChangeInfo> {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpDisabilityInfo;
import org.apache.ibatis.annotations.Mapper;
/**
* 员工伤残信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Mapper
public interface TEmpDisabilityInfoMapper extends BaseMapper<TEmpDisabilityInfo> {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpEducation;
import org.apache.ibatis.annotations.Mapper;
/**
* 员工学历信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Mapper
public interface TEmpEducationMapper extends BaseMapper<TEmpEducation> {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpFamily;
import org.apache.ibatis.annotations.Mapper;
/**
* 员工家庭信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Mapper
public interface TEmpFamilyMapper extends BaseMapper<TEmpFamily> {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpProfessionalQualification;
import org.apache.ibatis.annotations.Mapper;
/**
* 员工职业资格信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Mapper
public interface TEmpProfessionalQualificationMapper extends BaseMapper<TEmpProfessionalQualification> {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpWorkRecording;
import org.apache.ibatis.annotations.Mapper;
/**
* 员工工作履历信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Mapper
public interface TEmpWorkRecordingMapper extends BaseMapper<TEmpWorkRecording> {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TElecEmployeeInfo;
/**
* 电子档案信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
public interface TElecEmployeeInfoService extends IService<TElecEmployeeInfo> {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpChangeInfo;
/**
* 档案划转日志表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
public interface TEmpChangeInfoService extends IService<TEmpChangeInfo> {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.plugin.excel.vo.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpDisabilityInfo;
import com.yifu.cloud.plus.v1.yifu.archives.vo.EmpDisabilityExcelVO;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import org.springframework.validation.BindingResult;
import java.util.List;
/**
* 员工伤残信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
public interface TEmpDisabilityInfoService extends IService<TEmpDisabilityInfo> {
R<List<ErrorMessage>> importTmpDisability(List<EmpDisabilityExcelVO> excelVOList, BindingResult bindingResult);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpEducation;
/**
* 员工学历信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
public interface TEmpEducationService extends IService<TEmpEducation> {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpFamily;
/**
* 员工家庭信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
public interface TEmpFamilyService extends IService<TEmpFamily> {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpProfessionalQualification;
/**
* 员工职业资格信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
public interface TEmpProfessionalQualificationService extends IService<TEmpProfessionalQualification> {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpWorkRecording;
/**
* 员工工作履历信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
public interface TEmpWorkRecordingService extends IService<TEmpWorkRecording> {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TElecEmployeeInfo;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TElecEmployeeInfoMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TElecEmployeeInfoService;
import org.springframework.stereotype.Service;
/**
* 电子档案信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Service
public class TElecEmployeeInfoServiceImpl extends ServiceImpl<TElecEmployeeInfoMapper, TElecEmployeeInfo> implements TElecEmployeeInfoService {
@Override
public boolean save(TElecEmployeeInfo entity) {
return super.save(entity);
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpChangeInfo;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpChangeInfoMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpChangeInfoService;
import org.springframework.stereotype.Service;
/**
* 档案划转日志表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Service
public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper, TEmpChangeInfo> implements TEmpChangeInfoService {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pig4cloud.plugin.excel.vo.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysPost;
import com.yifu.cloud.plus.v1.yifu.admin.api.vo.PostExcelVO;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpDisabilityInfo;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpDisabilityInfoMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpDisabilityInfoService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.EmpDisabilityExcelVO;
import com.yifu.cloud.plus.v1.yifu.common.core.exception.ErrorCodes;
import com.yifu.cloud.plus.v1.yifu.common.core.util.MsgUtils;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import org.springframework.stereotype.Service;
import org.springframework.validation.BindingResult;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* 员工伤残信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Service
public class TEmpDisabilityInfoServiceImpl extends ServiceImpl<TEmpDisabilityInfoMapper, TEmpDisabilityInfo> implements TEmpDisabilityInfoService {
/**
* @Author fxj
* @Description 员工伤残信息导入
* @Date 10:41 2022/6/18
* @Param
* @return
**/
@Override
public R<List<ErrorMessage>> importTmpDisability(List<EmpDisabilityExcelVO> excelVOList, BindingResult bindingResult) {
// 通用校验获取失败的数据
List<ErrorMessage> errorMessageList = (List<ErrorMessage>) bindingResult.getTarget();
// 个性化校验逻辑
List<TEmpDisabilityInfo> list = this.list();
// 执行数据插入操作 组装 PostDto
for (int i = 0; i < excelVOList.size(); i++) {
EmpDisabilityExcelVO excel = excelVOList.get(i);
Set<String> errorMsg = new HashSet<>();
// 检验岗位名称或者岗位编码是否存在
boolean match = list.stream().anyMatch(info -> excel.getDisabilityName().equals(info.getDisabilityName()));
if (match) {
errorMsg.add(MsgUtils.getMessage(ErrorCodes.ARCHIVES_EMP_DISABILITY_NAME_EXISTING, excel.getDisabilityName()));
}
// 数据合法情况
if (CollUtil.isEmpty(errorMsg)) {
insertExcelPost(excel);
}
else {
// 数据不合法
errorMessageList.add(new ErrorMessage((long) (i + 2), errorMsg));
}
}
if (CollUtil.isNotEmpty(errorMessageList)) {
return R.failed(errorMessageList);
}
return R.ok();
}
/**
* 插入excel Post
*/
private void insertExcelPost(EmpDisabilityExcelVO excel) {
TEmpDisabilityInfo insert = new TEmpDisabilityInfo();
BeanUtil.copyProperties(excel, insert);
this.save(insert);
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpEducation;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpEducationMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpEducationService;
import org.springframework.stereotype.Service;
/**
* 员工学历信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Service
public class TEmpEducationServiceImpl extends ServiceImpl<TEmpEducationMapper, TEmpEducation> implements TEmpEducationService {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpFamily;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpFamilyMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpFamilyService;
import org.springframework.stereotype.Service;
/**
* 员工家庭信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Service
public class TEmpFamilyServiceImpl extends ServiceImpl<TEmpFamilyMapper, TEmpFamily> implements TEmpFamilyService {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpProfessionalQualification;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpProfessionalQualificationMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpProfessionalQualificationService;
import org.springframework.stereotype.Service;
/**
* 员工职业资格信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Service
public class TEmpProfessionalQualificationServiceImpl extends ServiceImpl<TEmpProfessionalQualificationMapper, TEmpProfessionalQualification> implements TEmpProfessionalQualificationService {
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpWorkRecording;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpWorkRecordingMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpWorkRecordingService;
import org.springframework.stereotype.Service;
/**
* 员工工作履历信息表
*
* @author fxj
* @date 2022-06-18 09:39:46
*/
@Service
public class TEmpWorkRecordingServiceImpl extends ServiceImpl<TEmpWorkRecordingMapper, TEmpWorkRecording> implements TEmpWorkRecordingService {
}
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yifu.cloud.plus.v1.yifu.archives.mapper.TElecEmployeeInfoMapper">
<resultMap id="tElecEmployeeInfoMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TElecEmployeeInfo">
<id property="id" column="ID"/>
<result property="empName" column="EMP_NAME"/>
<result property="empIdcard" column="EMP_IDCARD"/>
<result property="empNo" column="EMP_NO"/>
<result property="belongUnit" column="BELONG_UNIT"/>
<result property="itemName" column="ITEM_NAME"/>
<result property="itemCode" column="ITEM_CODE"/>
<result property="dataType" column="DATA_TYPE"/>
<result property="attaInfo" column="ATTA_INFO"/>
<result property="createBy" column="CREATE_BY"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="createName" column="CREATE_NAME"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateTime" column="UPDATE_TIME"/>
</resultMap>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpChangeInfoMapper">
<resultMap id="tEmpChangeInfoMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpChangeInfo">
<id property="id" column="ID"/>
<result property="empName" column="EMP_NAME"/>
<result property="oldDept" column="OLD_DEPT"/>
<result property="newDept" column="NEW_DEPT"/>
<result property="oldSettle" column="OLD_SETTLE"/>
<result property="newSettle" column="NEW_SETTLE"/>
<result property="empId" column="EMP_ID"/>
<result property="unsettleDeal" column="UNSETTLE_DEAL"/>
<result property="changeStartMonth" column="CHANGE_START_MONTH"/>
<result property="createBy" column="CREATE_BY"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="createName" column="CREATE_NAME"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateTime" column="UPDATE_TIME"/>
</resultMap>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpDisabilityInfoMapper">
<resultMap id="tEmpDisabilityInfoMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpDisabilityInfo">
<id property="id" column="ID"/>
<result property="empId" column="EMP_ID"/>
<result property="empName" column="EMP_NAME"/>
<result property="empCode" column="EMP_CODE"/>
<result property="empIdcard" column="EMP_IDCARD"/>
<result property="disabilityName" column="DISABILITY_NAME"/>
<result property="disabilityLevel" column="DISABILITY_LEVEL"/>
<result property="injuryIdentification" column="INJURY_IDENTIFICATION"/>
<result property="startTime" column="START_TIME"/>
<result property="endTime" column="END_TIME"/>
<result property="occupationalDisease" column="OCCUPATIONAL_DISEASE"/>
<result property="deleteFlag" column="DELETE_FLAG"/>
<result property="settleDomain" column="SETTLE_DOMAIN"/>
<result property="createBy" column="CREATE_BY"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="createName" column="CREATE_NAME"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateTime" column="UPDATE_TIME"/>
</resultMap>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpEducationMapper">
<resultMap id="tEmpEducationMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpEducation">
<id property="id" column="ID"/>
<result property="empId" column="EMP_ID"/>
<result property="empName" column="EMP_NAME"/>
<result property="empCode" column="EMP_CODE"/>
<result property="empIdcard" column="EMP_IDCARD"/>
<result property="entryDate" column="ENTRY_DATE"/>
<result property="educationName" column="EDUCATION_NAME"/>
<result property="gradutionDate" column="GRADUTION_DATE"/>
<result property="school" column="SCHOOL"/>
<result property="educationSystem" column="EDUCATION_SYSTEM"/>
<result property="hightIdentification" column="HIGHT_IDENTIFICATION"/>
<result property="type" column="TYPE"/>
<result property="collageSystem" column="COLLAGE_SYSTEM"/>
<result property="deleteFlag" column="DELETE_FLAG"/>
<result property="settleDomain" column="SETTLE_DOMAIN"/>
<result property="dispatchFlag" column="DISPATCH_FLAG"/>
<result property="createBy" column="CREATE_BY"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="createName" column="CREATE_NAME"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateTime" column="UPDATE_TIME"/>
</resultMap>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpFamilyMapper">
<resultMap id="tEmpFamilyMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpFamily">
<id property="id" column="ID"/>
<result property="empId" column="EMP_ID"/>
<result property="empCode" column="EMP_CODE"/>
<result property="empName" column="EMP_NAME"/>
<result property="empIdcard" column="EMP_IDCARD"/>
<result property="relationshipSelf" column="RELATIONSHIP_SELF"/>
<result property="familyName" column="FAMILY_NAME"/>
<result property="birthday" column="BIRTHDAY"/>
<result property="workUnit" column="WORK_UNIT"/>
<result property="contractTel" column="CONTRACT_TEL"/>
<result property="deleteFlag" column="DELETE_FLAG"/>
<result property="settleDomain" column="SETTLE_DOMAIN"/>
<result property="createBy" column="CREATE_BY"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="createName" column="CREATE_NAME"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateTime" column="UPDATE_TIME"/>
</resultMap>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpProfessionalQualificationMapper">
<resultMap id="tEmpProfessionalQualificationMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpProfessionalQualification">
<id property="id" column="ID"/>
<result property="empId" column="EMP_ID"/>
<result property="empName" column="EMP_NAME"/>
<result property="empCode" column="EMP_CODE"/>
<result property="empIdcard" column="EMP_IDCARD"/>
<result property="qualificationType" column="QUALIFICATION_TYPE"/>
<result property="qualificationLevel" column="QUALIFICATION_LEVEL"/>
<result property="certificationNo" column="CERTIFICATION_NO"/>
<result property="obtainType" column="OBTAIN_TYPE"/>
<result property="assessmentUnit" column="ASSESSMENT_UNIT"/>
<result property="declareYear" column="DECLARE_YEAR"/>
<result property="heightIdentification" column="HEIGHT_IDENTIFICATION"/>
<result property="deleteFlag" column="DELETE_FLAG"/>
<result property="settleDomain" column="SETTLE_DOMAIN"/>
<result property="createBy" column="CREATE_BY"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="createName" column="CREATE_NAME"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateTime" column="UPDATE_TIME"/>
</resultMap>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmpWorkRecordingMapper">
<resultMap id="tEmpWorkRecordingMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpWorkRecording">
<id property="id" column="ID"/>
<result property="empId" column="EMP_ID"/>
<result property="empCode" column="EMP_CODE"/>
<result property="empName" column="EMP_NAME"/>
<result property="empIdcard" column="EMP_IDCARD"/>
<result property="workUnit" column="WORK_UNIT"/>
<result property="workDepart" column="WORK_DEPART"/>
<result property="workJob" column="WORK_JOB"/>
<result property="startDate" column="START_DATE"/>
<result property="endDate" column="END_DATE"/>
<result property="workingStatus" column="WORKING_STATUS"/>
<result property="workingType" column="WORKING_TYPE"/>
<result property="deleteFlag" column="DELETE_FLAG"/>
<result property="settleDomain" column="SETTLE_DOMAIN"/>
<result property="createBy" column="CREATE_BY"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="createName" column="CREATE_NAME"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateTime" column="UPDATE_TIME"/>
</resultMap>
</mapper>
......@@ -160,4 +160,9 @@ public interface ErrorCodes {
* 存在下级字典项值,禁止删除
*/
String SYS_DICT_ITEM_DELETE_EXIST_CHILD = "sys.dict.item.delete.exist.child";
/**
* 已存在对应伤残病名称的数据
*/
String ARCHIVES_EMP_DISABILITY_NAME_EXISTING = "archives.emp.disability.name.existing";
}
......@@ -39,6 +39,9 @@ sys.role.update.error.code.exist="\u5DF2\u5B58\u5728\u5BF9\u5E94\u6807\u8BC6\u76
sys.role.delete.existing.user=\u8BE5\u89D2\u8272\u4E0B\u8FD8\u6709\u5173\u8054\u7684\u7528\u6237\uFF0C\u8BF7\u5148\u5C06\u7528\u6237\u8F6C\u79FB\u5230\u5176\u4ED6\u89D2\u8272!
archives.emp.disability.name.existing=\u5DF2\u5B58\u5728\u5BF9\u5E94\u4F24\u6B8B\u75C5\u540D\u79F0\u7684\u6570\u636E
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment