Browse Source

agencydetail-multic

dev
yinzuomei 4 years ago
parent
commit
5e39d144e9
  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. 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;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import java.io.Serializable;
@ -97,6 +96,9 @@ public class AgencyDetailMulticResultDTO implements Serializable {
*/
private List<String> subCustomerIds;
@JsonIgnore
private String agencyCustomerId;
// @JsonIgnore
/**
* 当前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);
//当前组织的客户id。
agencysResultDTO.setAgencyCustomerId(customerAgencyDTO.getCustomerId());
agencysResultDTO.setCustomerId(customerAgencyDTO.getCustomerId());
//2、当前登录用户所属客户,的跟级组织
ScreenCustomerAgencyDTO rootAgency=screenCustomerAgencyDao.selectCustomerRootAgency(formDTO.getCustomerId());
@ -423,9 +423,9 @@ public class AgencyServiceImpl implements AgencyService {
agencysResultDTO.setSubCustomerIds(crmRes.getData());
}
log.info("当前组织的客户id="+agencysResultDTO.getAgencyCustomerId()+";当前登录用户所属的客户id="+formDTO.getCustomerId());
log.info("当前组织的客户id="+agencysResultDTO.getCustomerId()+";当前登录用户所属的客户id="+formDTO.getCustomerId());
if(agencysResultDTO.getHaveSubCustomer()){
if (formDTO.getCustomerId().equals(agencysResultDTO.getAgencyCustomerId())
if (formDTO.getCustomerId().equals(agencysResultDTO.getCustomerId())
&& (StringUtils.isBlank(customerAgencyDTO.getPids())
||NumConstant.ZERO_STR.equals(customerAgencyDTO.getPid()))) {
log.info(String.format("1)当前组织agencyId=%s,为根基组织,不需要查询parentList",formDTO.getAgencyId()));
@ -443,7 +443,7 @@ public class AgencyServiceImpl implements AgencyService {
}else{
//单客户
//6:查询当前组织的所有上级组织,按自上而下层级顺序
if (formDTO.getCustomerId().equals(agencysResultDTO.getAgencyCustomerId())
if (formDTO.getCustomerId().equals(agencysResultDTO.getCustomerId())
&& (StringUtils.isBlank(customerAgencyDTO.getPids())
||NumConstant.ZERO_STR.equals(customerAgencyDTO.getPid()))) {
log.info(String.format("2)当前组织agencyId=%s,为根基组织,不需要查询parentList",formDTO.getAgencyId()));

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
*/
private String rootlevel;
/**
* 当前agencyId所属的客户id
*/
private String customerId;
}
Loading…
Cancel
Save