Commit 38184da0 authored by hongguangwu's avatar hongguangwu

LocalDate2

parent 5db3136a
...@@ -24,7 +24,6 @@ import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity; ...@@ -24,7 +24,6 @@ import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Max; import javax.validation.constraints.Max;
import java.time.LocalDate; import java.time.LocalDate;
...@@ -59,21 +58,21 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -59,21 +58,21 @@ public class TEmployeeInfo extends BaseEntity {
* 员工类型(字典值,0外包1派遣2代理) * 员工类型(字典值,0外包1派遣2代理)
*/ */
@Schema(description = "员工类型(字典值,0外包1派遣2代理)") @Schema(description = "员工类型(字典值,0外包1派遣2代理)")
@Max(value = 1,message = "员工类型不可超过1位") @Max(value = 1, message = "员工类型不可超过1位")
private String empNatrue; private String empNatrue;
/** /**
* 员工姓名 * 员工姓名
*/ */
@Schema(description = "员工姓名") @Schema(description = "员工姓名")
@Max(value = 20,message = "员工姓名不可超过20位") @Max(value = 20, message = "员工姓名不可超过20位")
private String empName; private String empName;
/** /**
* 身份证号码 * 身份证号码
*/ */
@Schema(description = "身份证号码") @Schema(description = "身份证号码")
@Max(value = 20,message = "身份证号码不可超过20位") @Max(value = 20, message = "身份证号码不可超过20位")
private String empIdcard; private String empIdcard;
/** /**
...@@ -104,7 +103,7 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -104,7 +103,7 @@ public class TEmployeeInfo extends BaseEntity {
* 年龄 * 年龄
*/ */
@Schema(description = "年龄") @Schema(description = "年龄")
@Max(value = 11,message = "年龄不可超过11位") @Max(value = 11, message = "年龄不可超过11位")
private Integer empAge; private Integer empAge;
/** /**
...@@ -123,21 +122,21 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -123,21 +122,21 @@ public class TEmployeeInfo extends BaseEntity {
* 政治面貌 * 政治面貌
*/ */
@Schema(description = "政治面貌") @Schema(description = "政治面貌")
@Max(value = 32,message = "政治面貌不可超过32位") @Max(value = 32, message = "政治面貌不可超过32位")
private String politicalStatus; private String politicalStatus;
/** /**
* 邮箱 * 邮箱
*/ */
@Schema(description = "邮箱") @Schema(description = "邮箱")
@Max(value = 32,message = "邮箱不可超过32位") @Max(value = 32, message = "邮箱不可超过32位")
private String empEmail; private String empEmail;
/** /**
* 手机号码 * 手机号码
*/ */
@Schema(description = "手机号码") @Schema(description = "手机号码")
@Max(value = 11,message = "手机号码不可超过11位") @Max(value = 11, message = "手机号码不可超过11位")
private String empPhone; private String empPhone;
/** /**
......
...@@ -23,7 +23,7 @@ import lombok.Data; ...@@ -23,7 +23,7 @@ import lombok.Data;
import javax.validation.constraints.Max; import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import java.io.Serializable; import java.io.Serializable;
import java.time.LocalDateTime; import java.time.LocalDate;
/** /**
* 项目档案表excel对应的实体 * 项目档案表excel对应的实体
...@@ -76,13 +76,13 @@ public class EmployeeVO implements Serializable { ...@@ -76,13 +76,13 @@ public class EmployeeVO implements Serializable {
* 身份证有效期起 * 身份证有效期起
*/ */
@ExcelProperty(value = "身份证开始日期") @ExcelProperty(value = "身份证开始日期")
private LocalDateTime validityStart; private LocalDate validityStart;
/** /**
* 身份证有效期止 * 身份证有效期止
*/ */
@ExcelProperty(value = "身份证截止日期") @ExcelProperty(value = "身份证截止日期")
private LocalDateTime validityEnd; private LocalDate validityEnd;
/** /**
* 婚姻状况 * 婚姻状况
...@@ -189,13 +189,13 @@ public class EmployeeVO implements Serializable { ...@@ -189,13 +189,13 @@ public class EmployeeVO implements Serializable {
* 入学时间 * 入学时间
*/ */
@ExcelProperty(value = "入学时间") @ExcelProperty(value = "入学时间")
private LocalDateTime admissionDate; private LocalDate admissionDate;
/** /**
* 毕业时间 * 毕业时间
*/ */
@ExcelProperty(value = "毕业时间") @ExcelProperty(value = "毕业时间")
private LocalDateTime gradutionDate; private LocalDate gradutionDate;
/** /**
* 备注 * 备注
......
...@@ -224,6 +224,21 @@ public class TEmployeeInfoController { ...@@ -224,6 +224,21 @@ public class TEmployeeInfoController {
return tEmployeeInfoService.deleteEmployee(id); return tEmployeeInfoService.deleteEmployee(id);
} }
/**
* @param ids
* @Description: 通过ids删除人员档案表
* @Author: hgw
* @Date: 2022/6/21 19:42
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/
@Operation(summary = "通过ids删除人员档案表", description = "通过ids删除人员档案表")
@SysLog("通过ids删除人员档案表")
@GetMapping("/batchDeleteEmployee")
@PreAuthorize("@pms.hasPermission('temployeeinfo_batch_del')")
public R<String> batchDeleteEmployee(@RequestParam String ids) {
return tEmployeeInfoService.deleteEmployee(ids);
}
/** /**
* @param id * @param id
* @Description: 通过id减档人员档案表 * @Description: 通过id减档人员档案表
......
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