修复易联云对接获取token的bug,修改获取行政区列表接口逻辑

This commit is contained in:
mi9688
2024-12-12 13:16:00 +08:00
parent f9c7354301
commit 6f41eb2599
6 changed files with 134 additions and 16 deletions

View File

@ -647,16 +647,21 @@ public class ProjectServiceImpl implements IProjectService
//过滤后项目列表
List<Project> projectFilterList =new ArrayList<>();
for (Project project : projectAllList) {
// System.err.println("-----------"+project.getProjectName()+"------------");
String administrativeAreaCode = project.getAdministrativeAreaCode();
if(StringUtils.isNotBlank(administrativeAreaCode)){
JSONArray areaCodeArrays = JSONUtil.parseArray(administrativeAreaCode);
if(!areaCodeArrays.isEmpty()){
JSONArray areaCodeArray = JSONUtil.parseArray(areaCodeArrays.get(0));
for (Object o : areaCodeArray) {
if(o.equals(areaCode)){
projectFilterList.add(project);
for(Object areaCodeArrayObj:areaCodeArrays){
JSONArray areaCodeArray = JSONUtil.parseArray(areaCodeArrayObj.toString());
for (Object o : areaCodeArray) {
// System.err.println("项目行政区划代码:"+o);
if(o.equals(areaCode)){
projectFilterList.add(project);
}
}
}
}
}
}