Browse Source

组织列表接口分为两个

master
liushaowen 5 years ago
parent
commit
06f4e7634d
  1. 21
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/CustomerAgencyController.java

21
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/CustomerAgencyController.java

@ -43,6 +43,7 @@ import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotBlank;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
@ -255,11 +256,25 @@ public class CustomerAgencyController {
* @Author liushaowen
* @Date 2020/11/6 13:51
*/
@PostMapping("getagencyelementtree")
public Result<AgencyElementTreeResultDTO> getAgencyElementTree(String customerId){
@PostMapping("getagencyelementtreelist")
public Result<List<AgencyElementTreeResultDTO.Agency>> getAgencyElementTreeList(String customerId){
if (StringUtils.isBlank(customerId)){
throw new RenException("customerId不能为空");
}
return new Result<AgencyElementTreeResultDTO>().ok(customerAgencyService.getAgencyElementTree(customerId));
return new Result<List<AgencyElementTreeResultDTO.Agency>>().ok(customerAgencyService.getAgencyElementTree(customerId).getList());
}
/**
* @Description 对外接口根据customerId返回Element UI中Tree结构的agency keys
* @param customerId
* @return com.epmet.commons.tools.utils.Result
* @Author liushaowen
* @Date 2020/11/6 13:51
*/
@PostMapping("getagencyelementtreekeys")
public Result<Set<String>> getAgencyElementTreeKeys(String customerId){
if (StringUtils.isBlank(customerId)){
throw new RenException("customerId不能为空");
}
return new Result<Set<String>>().ok(customerAgencyService.getAgencyElementTree(customerId).getDefaultKeys());
}
}

Loading…
Cancel
Save