| | |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.ruoyi.common.translation.annotation.Translation; |
| | | import com.ruoyi.common.translation.constant.TransConstant; |
| | | import com.ruoyi.demo.domain.TestDemo; |
| | | import io.github.linpeilie.annotations.AutoMapper; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serial; |
| | |
| | | */ |
| | | @Data |
| | | @ExcelIgnoreUnannotated |
| | | @AutoMapper(target = TestDemo.class) |
| | | public class TestDemoVo implements Serializable { |
| | | |
| | | @Serial |
| | |
| | | private Long createBy; |
| | | |
| | | /** |
| | | * 创建人账号 |
| | | */ |
| | | @Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "createBy") |
| | | @ExcelProperty(value = "创建人账号") |
| | | private String createByName; |
| | | |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @ExcelProperty(value = "更新时间") |
| | |
| | | @ExcelProperty(value = "更新人") |
| | | private Long updateBy; |
| | | |
| | | /** |
| | | * 更新人账号 |
| | | */ |
| | | @Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "updateBy") |
| | | @ExcelProperty(value = "更新人账号") |
| | | private String updateByName; |
| | | |
| | | } |