|
@ -1,16 +1,12 @@ |
|
|
package com.epmet.service.impl; |
|
|
package com.epmet.service.impl; |
|
|
|
|
|
|
|
|
import com.epmet.commons.mybatis.service.BaseService; |
|
|
|
|
|
import com.epmet.dao.CustomerAgencyDao; |
|
|
import com.epmet.dao.CustomerAgencyDao; |
|
|
import com.epmet.dao.CustomerGridDao; |
|
|
import com.epmet.dao.CustomerGridDao; |
|
|
import com.epmet.dao.IcNeighborHoodDao; |
|
|
import com.epmet.dao.IcNeighborHoodDao; |
|
|
import com.epmet.dto.IcNeighborHoodDTO; |
|
|
import com.epmet.dto.IcNeighborHoodDTO; |
|
|
import com.epmet.dto.result.AgencyTreeResultDTO; |
|
|
import com.epmet.dto.result.AgencyTreeResultDTO; |
|
|
import com.epmet.dto.result.ServiceProjectScopeResultDTO; |
|
|
import com.epmet.dto.result.ServiceProjectScopeResultDTO; |
|
|
import com.epmet.entity.CustomerAgencyEntity; |
|
|
|
|
|
import com.epmet.entity.IcPlaceOrgEntity; |
|
|
|
|
|
import com.epmet.service.CustomerAgencyService; |
|
|
import com.epmet.service.CustomerAgencyService; |
|
|
import com.epmet.service.NeighborHoodService; |
|
|
|
|
|
import com.epmet.service.ServiceProjectService; |
|
|
import com.epmet.service.ServiceProjectService; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
@ -42,8 +38,8 @@ public class ServiceProjectServiceImpl implements ServiceProjectService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public ServiceProjectScopeResultDTO getServiceScopeTree(String staffId) { |
|
|
public ServiceProjectScopeResultDTO getServiceScopeTree(String staffId,String customerId) { |
|
|
AgencyTreeResultDTO orgTreeData = customerAgencyService.getOrgTreeData(staffId); |
|
|
AgencyTreeResultDTO orgTreeData = customerAgencyService.getOrgTreeData(staffId,customerId); |
|
|
|
|
|
|
|
|
ServiceProjectScopeResultDTO rootScope = new ServiceProjectScopeResultDTO(); |
|
|
ServiceProjectScopeResultDTO rootScope = new ServiceProjectScopeResultDTO(); |
|
|
rootScope.setObjectId(orgTreeData.getAgencyId()); |
|
|
rootScope.setObjectId(orgTreeData.getAgencyId()); |
|
|