Browse Source

Merge remote-tracking branch 'origin/dev_data_fusion' into develop

dev_shibei_match
yinzuomei 4 years ago
parent
commit
959cbe35af
  1. 8
      epmet-module/data-report/data-report-client/src/main/java/com/epmet/dto/result/AgencyDetailMulticResultDTO.java
  2. 8
      epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/impl/AgencyServiceImpl.java
  3. 2
      epmet-module/gov-mine/gov-mine-server/src/main/java/com/epmet/service/impl/AccessServiceImpl.java
  4. 5
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/AgencysResultDTO.java

8
epmet-module/data-report/data-report-client/src/main/java/com/epmet/dto/result/AgencyDetailMulticResultDTO.java

@ -1,6 +1,5 @@
package com.epmet.dto.result; package com.epmet.dto.result;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
@ -97,6 +96,9 @@ public class AgencyDetailMulticResultDTO implements Serializable {
*/ */
private List<String> subCustomerIds; private List<String> subCustomerIds;
@JsonIgnore // @JsonIgnore
private String agencyCustomerId; /**
* 当前agencyId所属的客户id
*/
private String customerId;
} }

8
epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/impl/AgencyServiceImpl.java

@ -392,7 +392,7 @@ public class AgencyServiceImpl implements AgencyService {
} }
agencysResultDTO = ConvertUtils.sourceToTarget(customerAgencyDTO, AgencyDetailMulticResultDTO.class); agencysResultDTO = ConvertUtils.sourceToTarget(customerAgencyDTO, AgencyDetailMulticResultDTO.class);
//当前组织的客户id。 //当前组织的客户id。
agencysResultDTO.setAgencyCustomerId(customerAgencyDTO.getCustomerId()); agencysResultDTO.setCustomerId(customerAgencyDTO.getCustomerId());
//2、当前登录用户所属客户,的跟级组织 //2、当前登录用户所属客户,的跟级组织
ScreenCustomerAgencyDTO rootAgency=screenCustomerAgencyDao.selectCustomerRootAgency(formDTO.getCustomerId()); ScreenCustomerAgencyDTO rootAgency=screenCustomerAgencyDao.selectCustomerRootAgency(formDTO.getCustomerId());
@ -423,9 +423,9 @@ public class AgencyServiceImpl implements AgencyService {
agencysResultDTO.setSubCustomerIds(crmRes.getData()); agencysResultDTO.setSubCustomerIds(crmRes.getData());
} }
log.info("当前组织的客户id="+agencysResultDTO.getAgencyCustomerId()+";当前登录用户所属的客户id="+formDTO.getCustomerId()); log.info("当前组织的客户id="+agencysResultDTO.getCustomerId()+";当前登录用户所属的客户id="+formDTO.getCustomerId());
if(agencysResultDTO.getHaveSubCustomer()){ if(agencysResultDTO.getHaveSubCustomer()){
if (formDTO.getCustomerId().equals(agencysResultDTO.getAgencyCustomerId()) if (formDTO.getCustomerId().equals(agencysResultDTO.getCustomerId())
&& (StringUtils.isBlank(customerAgencyDTO.getPids()) && (StringUtils.isBlank(customerAgencyDTO.getPids())
||NumConstant.ZERO_STR.equals(customerAgencyDTO.getPid()))) { ||NumConstant.ZERO_STR.equals(customerAgencyDTO.getPid()))) {
log.info(String.format("1)当前组织agencyId=%s,为根基组织,不需要查询parentList",formDTO.getAgencyId())); log.info(String.format("1)当前组织agencyId=%s,为根基组织,不需要查询parentList",formDTO.getAgencyId()));
@ -443,7 +443,7 @@ public class AgencyServiceImpl implements AgencyService {
}else{ }else{
//单客户 //单客户
//6:查询当前组织的所有上级组织,按自上而下层级顺序 //6:查询当前组织的所有上级组织,按自上而下层级顺序
if (formDTO.getCustomerId().equals(agencysResultDTO.getAgencyCustomerId()) if (formDTO.getCustomerId().equals(agencysResultDTO.getCustomerId())
&& (StringUtils.isBlank(customerAgencyDTO.getPids()) && (StringUtils.isBlank(customerAgencyDTO.getPids())
||NumConstant.ZERO_STR.equals(customerAgencyDTO.getPid()))) { ||NumConstant.ZERO_STR.equals(customerAgencyDTO.getPid()))) {
log.info(String.format("2)当前组织agencyId=%s,为根基组织,不需要查询parentList",formDTO.getAgencyId())); log.info(String.format("2)当前组织agencyId=%s,为根基组织,不需要查询parentList",formDTO.getAgencyId()));

2
epmet-module/gov-mine/gov-mine-server/src/main/java/com/epmet/service/impl/AccessServiceImpl.java

@ -30,7 +30,7 @@ public class AccessServiceImpl implements AccessService {
listOpePermsFormDTO.setCurrGridId(currGridId); listOpePermsFormDTO.setCurrGridId(currGridId);
Result<Set<String>> result = govAccessFeignClient.listOperationPermissions(listOpePermsFormDTO); Result<Set<String>> result = govAccessFeignClient.listOperationPermissions(listOpePermsFormDTO);
if (!result.success()) { if (!result.success()) {
logger.error("调用GovAccess服务查询功能权限列表失败,StaffId:{},错误信息:{}", staffId, result.getMsg()); logger.warn("调用GovAccess服务查询功能权限列表失败,StaffId:{},错误信息:{}", staffId, result.getMsg());
throw new RenException(EpmetErrorCode.SERVER_ERROR.getCode()); throw new RenException(EpmetErrorCode.SERVER_ERROR.getCode());
} }

5
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/AgencysResultDTO.java

@ -101,4 +101,9 @@ public class AgencysResultDTO implements Serializable {
* 当前组织对应客户根组织级别社区级community街道:street,区县级: district,市级: city省级:province * 当前组织对应客户根组织级别社区级community街道:street,区县级: district,市级: city省级:province
*/ */
private String rootlevel; private String rootlevel;
/**
* 当前agencyId所属的客户id
*/
private String customerId;
} }
Loading…
Cancel
Save