package com.ruzhoukj.sms.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; /** * @Author:zhuxiang * @Package:com.ruzhoukj.sms.entity * @Project:OA * @name:UserPerformanceEntity * @Date:2025/2/21 14:14 * @Filename:UserPerformanceEntity */ @Data @TableName("user_performance") public class UserPerformanceEntity { @TableId(value = "id", type = IdType.ASSIGN_ID) private String id; @TableField("user_id") private String userId; @TableField("performance_date") private String performanceDate; @TableField("performance_score") private String performanceScore; @TableField("dept_id") private String deptId; @TableField("report_data_id") private String reportDataId; public void setPerformanceDate(int year, int month) { if (month < 10) { this.performanceDate = year + "-0" + month; } else { this.performanceDate = year + "-" + month; } } }