wei.peng 7 years ago
commit 2e8e2895c7

@ -150,6 +150,7 @@ public class CommonEnumUtil {
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SYS_LOCALE_RESOURCE_TYPE {
COMMON(1, "通用"),EXCEPTION(2, "异常"),
MODULE(10, "模块"), METHOD(11, "功能"), BUTTON(12, "按钮");

@ -33,13 +33,21 @@ public class SysLocaleResource extends BaseBean {
private transient String resourceTypeTxt;
public String getResourceTypeTxt(){
return CommonEnumUtil.SYS_LOCALE_RESOURCE_TYPE.valueOf(this.resourceType);
if(this.resourceType != null){
return CommonEnumUtil.SYS_LOCALE_RESOURCE_TYPE.valueOf(this.resourceType);
} else {
return null;
}
}
@Column(name="language_code")
@ApiParam(value = "语言编码",example = "浏览器语言编码")
private String languageCode;
@Column(name="language_name_rdd")
@ApiParam(value = "语言名称",example = "浏览器语言名称")
private String languageNameRdd;
@Column(name="resource_key")
@ApiParam(value = "资源KEY",example = "格式A.B全部大写参考命名规范开发文档")
private String resourceKey;

Loading…
Cancel
Save