This commit is contained in:
wangjinlei
2024-03-22 14:00:44 +08:00
parent 44c27b9c7a
commit c66a071de5
3 changed files with 26 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
package com.peanut.common.utils;
import java.util.HashMap;
import java.util.Map;
/**

View File

@@ -0,0 +1,21 @@
package com.peanut.common.utils;
import java.util.Map;
public class ObjectUtils {
public boolean isNotBlank(Map<String,Object> m, String key){
if(!m.containsKey(key)){
return false;
}
Object o = m.get(key);
if (o==null){
return false;
}
if(o.toString()==""){
return false;
}
return true;
}
}