@ -766,6 +766,9 @@ public class AgencyServiceImpl implements AgencyService {
}
}
if ( formDTO . getLevel ( ) . equals ( OrgInfoConstant . AGENCY ) ) {
if ( formDTO . getLevel ( ) . equals ( OrgInfoConstant . AGENCY ) ) {
CustomerAgencyEntity entity = customerAgencyDao . selectById ( formDTO . getOrgId ( ) ) ;
CustomerAgencyEntity entity = customerAgencyDao . selectById ( formDTO . getOrgId ( ) ) ;
if ( null = = entity ) {
throw new EpmetException ( EpmetErrorCode . EPMET_COMMON_OPERATION_FAIL . getCode ( ) , "customer_agency is null orgId:" + formDTO . getOrgId ( ) , "组织信息查询为空orgId:" + formDTO . getOrgId ( ) ) ;
}
result = ConvertUtils . sourceToTarget ( entity , MapOrgResultDTO . class ) ;
result = ConvertUtils . sourceToTarget ( entity , MapOrgResultDTO . class ) ;
result . setName ( entity . getOrganizationName ( ) ) ;
result . setName ( entity . getOrganizationName ( ) ) ;
result . setLevel ( formDTO . getLevel ( ) ) ;
result . setLevel ( formDTO . getLevel ( ) ) ;