package com.ruoyi.sales.pojo; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; import java.util.Date; import java.util.List; /** * @author :yys * @date : 2025/9/15 10:06 */ @TableName(value = "salesperson_management") @Data @Schema public class SalespersonManagement { private static final long serialVersionUID = 1L; /** * 序号 */ @TableId(type = IdType.AUTO) private Long id; @Schema(description = "姓名") private String name; @Schema(description = "联系电话") private String phone; @Schema(description = "邮箱") private String email; @Schema(description = "部门") private String department; @Schema(description = "职位") private String position; @Schema(description = "入职日期") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private Date hireDate; @Schema(description = "权限") private String permissions; @Schema(description = "权限List") @TableField(exist = false) private List permissionsList; @Schema(description = "状态") private String status; @Schema(description = "创建用户") @TableField(fill = FieldFill.INSERT) private Integer createUser; @Schema(description = "修改时间") @TableField(fill = FieldFill.INSERT_UPDATE) private LocalDateTime updateTime; @Schema(description = "修改用户") @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; @Schema(description = "租户ID") @TableField(fill = FieldFill.INSERT) private Long tenantId; @TableField(fill = FieldFill.INSERT) private Long deptId; }