Browse Source

调整判断

master
jianjun 5 years ago
parent
commit
3291170ed6
  1. 6
      epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/project/impl/ProjectServiceImpl.java

6
epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/project/impl/ProjectServiceImpl.java

@ -16,8 +16,6 @@ import com.epmet.dto.form.LoginUserDetailsFormDTO;
import com.epmet.dto.form.ProcessListFormDTO;
import com.epmet.dto.form.SubAgencyFormDTO;
import com.epmet.dto.result.*;
import com.epmet.dto.result.LoginUserDetailsResultDTO;
import com.epmet.dto.result.ProcessAndCurrentDeptResultDTO;
import com.epmet.evaluationindex.screen.dto.result.DepartmentNameListResultDTO;
import com.epmet.feign.EpmetUserOpenFeignClient;
import com.epmet.feign.GovOrgOpenFeignClient;
@ -270,11 +268,11 @@ public class ProjectServiceImpl implements ProjectService {
//3、获取下一级组织机构\网格
if( customerAgencyDTO.getData().getLevel() == "community" ){
if ("community".equals(customerAgencyDTO.getData().getLevel())) {
//取下级网格
Result<List<GridByStaffResultDTO>> gridListResult = govOrgOpenFeignClient.listGridsbystaffid(userId);
List<GridByStaffResultDTO> gridList = gridListResult.getData();
for(int i=0;i<gridList.size();i++){
for (int i = 0; i < gridList.size(); i++) {
ProjectNextAgencyResultDTO subAgencyDto = new ProjectNextAgencyResultDTO();
subAgencyDto.setOrgId(agencyId);
subAgencyDto.setOrgName(customerAgencyDTO.getData().getOrganizationName());

Loading…
Cancel
Save