优化国际化参数lang的接收方式
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.gxwebsoft.common.core.web;
|
package com.gxwebsoft.common.core.web;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.gxwebsoft.common.core.annotation.QueryField;
|
import com.gxwebsoft.common.core.annotation.QueryField;
|
||||||
import com.gxwebsoft.common.core.annotation.QueryType;
|
import com.gxwebsoft.common.core.annotation.QueryType;
|
||||||
@@ -83,11 +84,10 @@ public class BaseParam implements Serializable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 国际化参数
|
* 国际化参数
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public String getLang(){
|
public String getLang(){
|
||||||
if(this.lang == null){
|
if(StrUtil.isBlank(this.lang)){
|
||||||
return "zh_CN";
|
return null;
|
||||||
}
|
}
|
||||||
if(this.lang.equals("zh")){
|
if(this.lang.equals("zh")){
|
||||||
return "zh_CN";
|
return "zh_CN";
|
||||||
|
|||||||
Reference in New Issue
Block a user