|
|
@ -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()); |
|
|
|
} |
|
|
|
} |
|
|
|