|
@@ -22,7 +22,6 @@ import com.sooka.sponest.data.digitalresource.service.ICenterdataTFarmGridServic
|
|
|
import com.sooka.sponest.data.digitalresource.service.IResourceViewService;
|
|
|
import com.sooka.sponest.data.digitaltraffic.service.ITrafficViewService;
|
|
|
import com.sooka.sponest.data.digitalwater.service.IWaterViewService;
|
|
|
-import com.sooka.sponest.data.generalbusiness.domain.CenterdataTForestImportarea;
|
|
|
import com.sooka.sponest.data.generalbusiness.domain.CenterdataTForestNetworkprocessing;
|
|
|
import com.sooka.sponest.data.generalbusiness.domain.CenterdataTKeyProjectsSchedule;
|
|
|
import com.sooka.sponest.data.generalbusiness.mapper.CenterdataTForestImportareaMapper;
|
|
@@ -150,6 +149,7 @@ public class ICommandCenterServiceImpl extends BaseServiceImpl implements IComma
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
+ @DataScopeMutiDept(deptAlias = "d")
|
|
|
public List<ProjectBody> getKeyProjects(CommandCenterBO commandCenterBO) {
|
|
|
setSookaDataBase(commandCenterBO);
|
|
|
List<ProjectBody> projectBodies = commandCenterMapper.getKeyProjects(commandCenterBO);
|
|
@@ -161,40 +161,25 @@ public class ICommandCenterServiceImpl extends BaseServiceImpl implements IComma
|
|
|
Map<String, Object> industryTypeMap = DictUtils.getDictCacheToMap("centerdata_industry_type");
|
|
|
Map<String, Object> parkMap = DictUtils.getDictCacheToMap("centerdata_park");
|
|
|
projectBodies.forEach(item -> {
|
|
|
- if (!StringUtils.isEmpty(item.getEnvironment()) && environmentMap.containsKey(item.getEnvironment())){
|
|
|
+ if (!StringUtils.isEmpty(item.getEnvironment()) && environmentMap.containsKey(item.getEnvironment())) {
|
|
|
item.setEnvironment(environmentMap.get(item.getEnvironment()).toString());
|
|
|
}
|
|
|
- if (!StringUtils.isEmpty(item.getNature()) && zjNatureMap.containsKey(item.getNature())){
|
|
|
+ if (!StringUtils.isEmpty(item.getNature()) && zjNatureMap.containsKey(item.getNature())) {
|
|
|
item.setNature(zjNatureMap.get(item.getNature()).toString());
|
|
|
}
|
|
|
- if (!StringUtils.isEmpty(item.getIndustryType()) && industryTypeMap.containsKey(item.getIndustryType())){
|
|
|
+ if (!StringUtils.isEmpty(item.getIndustryType()) && industryTypeMap.containsKey(item.getIndustryType())) {
|
|
|
item.setIndustryType(industryTypeMap.get(item.getIndustryType()).toString());
|
|
|
}
|
|
|
- if (!StringUtils.isEmpty(item.getPark()) && parkMap.containsKey(item.getPark())){
|
|
|
+ if (!StringUtils.isEmpty(item.getPark()) && parkMap.containsKey(item.getPark())) {
|
|
|
item.setPark(parkMap.get(item.getPark()).toString());
|
|
|
}
|
|
|
});
|
|
|
- List<Map<String, Object>> cameraList = commandCenterMapper.getKeyProjectsCamera(commandCenterBO);
|
|
|
- projectBodies.forEach(project -> cameraList.forEach(item -> {
|
|
|
- if (project.getProjectId().equals(MapUtils.getString(item, "projectId"))) {
|
|
|
- project.getCameraList().add(item);
|
|
|
- }
|
|
|
- }));
|
|
|
List<CenterdataTKeyProjectsSchedule> scheduleList = commandCenterMapper.getKeyProjectsSchedule(commandCenterBO);
|
|
|
projectBodies.forEach(project -> scheduleList.forEach(schedule -> {
|
|
|
if (project.getProjectId().equals(schedule.getKeyProjectsId())) {
|
|
|
project.getScheduleList().add(schedule);
|
|
|
}
|
|
|
}));
|
|
|
- if ("true".equals(commandCenterBO.getState())){
|
|
|
- List<ProjectBody> projectBodyList = new ArrayList<>();
|
|
|
- projectBodies.forEach(project -> {
|
|
|
- if (project.getCameraList().size()!=0) {
|
|
|
- projectBodyList.add(project);
|
|
|
- }
|
|
|
- });
|
|
|
- return projectBodyList;
|
|
|
- }
|
|
|
return projectBodies;
|
|
|
}
|
|
|
|