修复zn_CN编码不统一的情况

This commit is contained in:
2024-12-02 21:38:07 +08:00
parent 40bc6a56e3
commit eef962d93a
2 changed files with 10 additions and 4 deletions

View File

@@ -48,10 +48,6 @@ public class CmsWebsiteFieldParam extends BaseParam {
@ApiModelProperty(value = "名称")
private String value;
@ApiModelProperty(value = "国际化语言")
@QueryField(type = QueryType.EQ)
private String lang;
@ApiModelProperty(value = "排序(数字越小越靠前)")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;

View File

@@ -28,6 +28,10 @@ public class BaseParam implements Serializable {
@ApiModelProperty("分页查询每页数量")
private Long limit;
@ApiModelProperty(value = "国际化语言")
@TableField(exist = false)
private String lang;
@TableField(exist = false)
@ApiModelProperty(value = "排序字段", notes = "排序字段或sql, 如果是sql则order字段无用, 如: `id asc, name desc`")
private String sort;
@@ -77,4 +81,10 @@ public class BaseParam implements Serializable {
return CommonUtil.listGetOne(records);
}
public String getLang(){
if(this.lang.equals("zh")){
return "zh_CN";
}
return this.lang;
}
}