fix 修复 翻译模块 无法翻译实体属性值为 Null 的字段的问题

This commit is contained in:
疯狂的狮子Li
2023-02-03 00:39:15 +08:00
parent 0d755d2266
commit 5cce09b5c2
6 changed files with 57 additions and 8 deletions

View File

@ -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;
}

View File

@ -61,7 +61,7 @@ public class SysNoticeVo implements Serializable {
* 创建人名称
*/
@Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "createBy")
private String createByName = "";
private String createByName;
/**
* 创建时间