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

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,13 @@
package com.fastbee.common.constant;
/**
* 部门行政级别级别常量
* 用于判断部门管理账号是管理县、镇、村的加载对应区域轮廓
*/
public class DepartmentAdministrationLevelConstant {
public static final Integer PROVINCE = 1;//省级
public static final Integer CITY = 2;//市级
public static final Integer COUNTY = 3;//县级
public static final Integer TOWN = 4;//镇级
public static final Integer VILLAGE = 5;//村级
}

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;
}
}