From 1021f56fb1ebc7564b30d8648e7678f45f4588a2 Mon Sep 17 00:00:00 2001 From: Crunchy <3114200645@qq.com> Date: 星期二, 23 七月 2024 10:23:33 +0800 Subject: [PATCH] 修复无法保存文件后缀bug --- performance-server/src/main/java/com/yuanchu/mom/pojo/Evaluate.java | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/performance-server/src/main/java/com/yuanchu/mom/pojo/Evaluate.java b/performance-server/src/main/java/com/yuanchu/mom/pojo/Evaluate.java index 6a9f0fe..27031dd 100644 --- a/performance-server/src/main/java/com/yuanchu/mom/pojo/Evaluate.java +++ b/performance-server/src/main/java/com/yuanchu/mom/pojo/Evaluate.java @@ -1,9 +1,13 @@ package com.yuanchu.mom.pojo; +import com.alibaba.excel.annotation.ExcelIgnore; +import com.alibaba.excel.annotation.ExcelProperty; +import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import java.io.Serializable; +import java.time.LocalDateTime; import com.yuanchu.mom.annotation.ValueTableShow; import com.yuanchu.mom.common.OrderBy; @@ -26,39 +30,69 @@ public class Evaluate extends OrderBy implements Serializable { @TableId(value = "id", type = IdType.AUTO) + @ExcelIgnore private Integer id; @ApiModelProperty("澶栭敭 鍏宠仈鐢ㄦ埛id") + @ExcelIgnore private Integer userId; @ValueTableShow(value = 1, name = "宸ュ彿") @TableField(exist = false,select = false) + @ExcelProperty(value = "宸ュ彿") private String account; @ValueTableShow(value = 2, name = "濮撳悕") @TableField(exist = false,select = false) + @ExcelProperty(value = "濮撳悕") private String name; + + @TableField(exist = false,select = false) + //瀹為獙瀹� + private String departLims; @ValueTableShow(value = 3, name = "鍛樺伐浜掕瘎") @TableField(exist = false,select = false) + @ExcelProperty(value = "鍛樺伐浜掕瘎") private Double groupTotal; @ValueTableShow(value = 4, name = "缁勯暱璇勫垎") @TableField(exist = false,select = false) + @ExcelProperty(value = "鍛樺伐浜掕瘎") private Double leaderTotal; @ValueTableShow(value = 5, name = "涓荤璇勫垎") @TableField(exist = false,select = false) + @ExcelProperty(value = "涓荤璇勫垎") private Double competentTotal; @ApiModelProperty("鑰冭瘎寰楀垎") @ValueTableShow(6) + @ExcelProperty(value = "鑰冭瘎寰楀垎") private Double score; @ApiModelProperty("鑰冭瘎绛夌骇") @ValueTableShow(7) + @ExcelProperty(value = "鑰冭瘎绛夌骇") private String grade; @ApiModelProperty("鏈堜唤") + @ExcelIgnore private String month; + + @TableField(fill = FieldFill.INSERT) + @ExcelIgnore + private LocalDateTime createTime; + + @TableField(fill = FieldFill.INSERT_UPDATE) + @ExcelIgnore + private LocalDateTime updateTime; + + @TableField(fill = FieldFill.INSERT) + @ExcelIgnore + private Integer createUser; + + @TableField(fill = FieldFill.INSERT_UPDATE) + @ExcelIgnore + private Integer updateUser; } -- Gitblit v1.9.3