修复zn_CN编码不统一的情况
This commit is contained in:
@@ -48,10 +48,6 @@ public class CmsWebsiteFieldParam extends BaseParam {
|
|||||||
@ApiModelProperty(value = "名称")
|
@ApiModelProperty(value = "名称")
|
||||||
private String value;
|
private String value;
|
||||||
|
|
||||||
@ApiModelProperty(value = "国际化语言")
|
|
||||||
@QueryField(type = QueryType.EQ)
|
|
||||||
private String lang;
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
@ApiModelProperty(value = "排序(数字越小越靠前)")
|
||||||
@QueryField(type = QueryType.EQ)
|
@QueryField(type = QueryType.EQ)
|
||||||
private Integer sortNumber;
|
private Integer sortNumber;
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ public class BaseParam implements Serializable {
|
|||||||
@ApiModelProperty("分页查询每页数量")
|
@ApiModelProperty("分页查询每页数量")
|
||||||
private Long limit;
|
private Long limit;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "国际化语言")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String lang;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ApiModelProperty(value = "排序字段", notes = "排序字段或sql, 如果是sql则order字段无用, 如: `id asc, name desc`")
|
@ApiModelProperty(value = "排序字段", notes = "排序字段或sql, 如果是sql则order字段无用, 如: `id asc, name desc`")
|
||||||
private String sort;
|
private String sort;
|
||||||
@@ -77,4 +81,10 @@ public class BaseParam implements Serializable {
|
|||||||
return CommonUtil.listGetOne(records);
|
return CommonUtil.listGetOne(records);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getLang(){
|
||||||
|
if(this.lang.equals("zh")){
|
||||||
|
return "zh_CN";
|
||||||
|
}
|
||||||
|
return this.lang;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user