|
|
@ -37,6 +37,7 @@ import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
|
import com.epmet.commons.tools.redis.common.bean.AgencyInfoCache; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.PidUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.constant.CustomerAgencyConstant; |
|
|
|
import com.epmet.constant.CustomerGridConstant; |
|
|
@ -1624,6 +1625,14 @@ public class CustomerAgencyServiceImpl extends BaseServiceImpl<CustomerAgencyDao |
|
|
|
} |
|
|
|
return customerAgencyEntity.getPids().concat(StrConstant.COLON).concat(orgId); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description: |
|
|
|
* @param agencyId: |
|
|
|
* @Return java.util.List<com.epmet.dto.result.AgencyCountCensusResultDTO> |
|
|
|
* @Author: lichao |
|
|
|
* @Date: 2023/4/7 14:17 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public List<AgencyCountCensusResultDTO> getAgencyCountList(String agencyId) { |
|
|
|
|
|
|
@ -1631,23 +1640,21 @@ public class CustomerAgencyServiceImpl extends BaseServiceImpl<CustomerAgencyDao |
|
|
|
|
|
|
|
CustomerAgencyEntity customerAgency = baseDao.selectById(agencyId); |
|
|
|
if (customerAgency != null){ |
|
|
|
// pidu
|
|
|
|
// 区县级
|
|
|
|
if (customerAgency.getLevel().equals("district")){ |
|
|
|
// Integer count = baseDao.agencyCount()
|
|
|
|
// 镇街级
|
|
|
|
}else if (customerAgency.getLevel().equals("street")){ |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
String pids = PidUtils.convertPid2OrgIdPath(customerAgency.getId(),customerAgency.getPids()); |
|
|
|
agencyCountCensusResultDTOS = baseDao.agencyCount(pids); |
|
|
|
AgencyCountCensusResultDTO agencyCountCensusResultDTOGrid = new AgencyCountCensusResultDTO(); |
|
|
|
agencyCountCensusResultDTOGrid.setLevel("grid"); |
|
|
|
agencyCountCensusResultDTOGrid.setCount(baseDao.agencyGridCount(pids)); |
|
|
|
agencyCountCensusResultDTOS.add(agencyCountCensusResultDTOGrid); |
|
|
|
|
|
|
|
AgencyCountCensusResultDTO agencyCountCensusResultDTOStaff = new AgencyCountCensusResultDTO(); |
|
|
|
agencyCountCensusResultDTOStaff.setLevel("staff"); |
|
|
|
agencyCountCensusResultDTOStaff.setCount(baseDao.agencyStaffCount(pids)); |
|
|
|
agencyCountCensusResultDTOS.add(agencyCountCensusResultDTOStaff); |
|
|
|
|
|
|
|
}else{ |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(),"获取用户组织信息异常","获取用户组织信息异常"); |
|
|
|
} |
|
|
|
|
|
|
|
return agencyCountCensusResultDTOS; |
|
|
|
} |
|
|
|
|
|
|
|