行政区划接口逻辑完善,项目管理相关接口完善等

This commit is contained in:
mi9688
2024-11-01 17:54:16 +08:00
parent 318cee69c1
commit 915d630a44
13 changed files with 324 additions and 141 deletions

View File

@ -0,0 +1,33 @@
package com.fastbee.common.utils.json;
import cn.hutool.json.JSONUtil;
import org.apache.commons.lang3.StringUtils;
public class JsonStrUtil {
/**
*判断一个json数组为空
*/
public static boolean isEmptyArray(String jsonArrayStr) {
if(StringUtils.isBlank(jsonArrayStr)){
return true;
}
if(JSONUtil.parseArray(jsonArrayStr).isEmpty()){
return true;
}
return false;
}
/**
*判断一个json数组|非空
*/
public static boolean nonEmptyArray(String jsonArrayStr) {
if(StringUtils.isBlank(jsonArrayStr)){
return false;
}
if(JSONUtil.parseArray(jsonArrayStr).isEmpty()){
return false;
}
return true;
}
}