|
|
@ -21,10 +21,10 @@ import com.epmet.commons.tools.utils.DateUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.dataaggre.beans.GridMemberDataAnalysisExcelExportBean; |
|
|
|
import com.epmet.dataaggre.dto.govorg.CustomerAgencyDTO; |
|
|
|
import com.epmet.dataaggre.dto.govorg.CustomerGridDTO; |
|
|
|
import com.epmet.dataaggre.dto.govorg.form.*; |
|
|
|
import com.epmet.dataaggre.dto.govorg.result.*; |
|
|
|
import com.epmet.dataaggre.entity.govorg.CustomerAgencyEntity; |
|
|
|
import com.epmet.dataaggre.enums.GridMemberDataAnalysisEnums; |
|
|
|
import com.epmet.dataaggre.service.AggreGridService; |
|
|
|
import com.epmet.dataaggre.service.govorg.GovOrgService; |
|
|
@ -242,8 +242,8 @@ public class GovOrgController { |
|
|
|
* @date 2021/11/5 2:54 下午 |
|
|
|
*/ |
|
|
|
@PostMapping("agency") |
|
|
|
public Result<CustomerAgencyEntity> getAgencyInfo(@RequestParam("agencyId")String agencyId){ |
|
|
|
return new Result<CustomerAgencyEntity>().ok(govOrgService.getAgencyInfo(agencyId)); |
|
|
|
public Result<CustomerAgencyDTO> getAgencyInfo(@RequestParam("agencyId")String agencyId){ |
|
|
|
return new Result<CustomerAgencyDTO>().ok(govOrgService.getAgencyInfo(agencyId)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -305,7 +305,7 @@ public class GovOrgController { |
|
|
|
CustomerGridDTO gridInfo = govOrgService.getGridInfo(orgId); |
|
|
|
Optional.ofNullable(gridInfo).ifPresent((g) -> orgName.set(g.getGridName())); |
|
|
|
} else if ("agency".equals(orgType)) { |
|
|
|
CustomerAgencyEntity agencyInfo = govOrgService.getAgencyInfo(orgId); |
|
|
|
CustomerAgencyDTO agencyInfo = govOrgService.getAgencyInfo(orgId); |
|
|
|
Optional.ofNullable(agencyInfo).ifPresent((a) -> orgName.set(a.getOrganizationName())); |
|
|
|
} |
|
|
|
|
|
|
|