Browse Source

修改入参方式

dev_shibei_match
liushaowen 5 years ago
parent
commit
d9f88b1116
  1. 10
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/CustomerAgencyController.java

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

@ -251,13 +251,14 @@ public class CustomerAgencyController {
/** /**
* @Description 对外接口根据customerId返回Element UI中Tree结构的agency列表 * @Description 对外接口根据customerId返回Element UI中Tree结构的agency列表
* @param customerId * @param map
* @return com.epmet.commons.tools.utils.Result * @return com.epmet.commons.tools.utils.Result
* @Author liushaowen * @Author liushaowen
* @Date 2020/11/6 13:51 * @Date 2020/11/6 13:51
*/ */
@PostMapping("getagencyelementtreelist") @PostMapping("getagencyelementtreelist")
public Result<List<AgencyElementTreeResultDTO.Agency>> getAgencyElementTreeList(String customerId){ public Result<List<AgencyElementTreeResultDTO.Agency>> getAgencyElementTreeList(@RequestBody Map<String,String> map){
String customerId = map.get("customerId");
if (StringUtils.isBlank(customerId)){ if (StringUtils.isBlank(customerId)){
throw new RenException("customerId不能为空"); throw new RenException("customerId不能为空");
} }
@ -265,13 +266,14 @@ public class CustomerAgencyController {
} }
/** /**
* @Description 对外接口根据customerId返回Element UI中Tree结构的agency keys * @Description 对外接口根据customerId返回Element UI中Tree结构的agency keys
* @param customerId * @param map
* @return com.epmet.commons.tools.utils.Result * @return com.epmet.commons.tools.utils.Result
* @Author liushaowen * @Author liushaowen
* @Date 2020/11/6 13:51 * @Date 2020/11/6 13:51
*/ */
@PostMapping("getagencyelementtreekeys") @PostMapping("getagencyelementtreekeys")
public Result<Set<String>> getAgencyElementTreeKeys(String customerId){ public Result<Set<String>> getAgencyElementTreeKeys(@RequestBody Map<String,String> map){
String customerId = map.get("customerId");
if (StringUtils.isBlank(customerId)){ if (StringUtils.isBlank(customerId)){
throw new RenException("customerId不能为空"); throw new RenException("customerId不能为空");
} }

Loading…
Cancel
Save