行政区划接口逻辑完善,项目管理相关接口完善等
This commit is contained in:
@ -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;//村级
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user