mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
fix 修复 翻译模块 无法翻译实体属性值为 Null 的字段的问题
This commit is contained in:
@ -69,10 +69,16 @@ public class TestDemoVo implements Serializable {
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Translation(type = TransConstant.USER_ID_TO_NAME)
|
||||
@ExcelProperty(value = "创建人")
|
||||
private Long createBy;
|
||||
|
||||
/**
|
||||
* 创建人账号
|
||||
*/
|
||||
@Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "createBy")
|
||||
@ExcelProperty(value = "创建人账号")
|
||||
private String createByName;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ -86,5 +92,11 @@ public class TestDemoVo implements Serializable {
|
||||
@ExcelProperty(value = "更新人")
|
||||
private Long updateBy;
|
||||
|
||||
/**
|
||||
* 更新人账号
|
||||
*/
|
||||
@Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "updateBy")
|
||||
@ExcelProperty(value = "更新人账号")
|
||||
private String updateByName;
|
||||
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ public class SysNoticeVo implements Serializable {
|
||||
* 创建人名称
|
||||
*/
|
||||
@Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "createBy")
|
||||
private String createByName = "";
|
||||
private String createByName;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
|
Reference in New Issue
Block a user