Commit 620c29c1 authored by tianbo's avatar tianbo

大屏-ZL-接口改post

parent 095b2ace
......@@ -10,11 +10,11 @@ import java.util.List;
@NoArgsConstructor
public class EquCategoryVo {
public String value;
public String title;
public String label;
public List<EquCategoryVo> children;
public EquCategoryVo(String title, String value) {
this.title = title;
public EquCategoryVo(String label, String value) {
this.label = label;
this.value = value;
}
......
......@@ -123,13 +123,13 @@ public class ZLDPStatisticsController {
/**
* 根据设备种类code获取设备类别下拉
*
* @param equListCode 设备种类code
* @param paramDto 设备种类code
* @return 设备类别列表
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/getEquCategoryList")
@ApiOperation(httpMethod = "GET", value = "根据设备种类code获取设备类别下拉", notes = "根据设备种类code获取设备类别下拉")
public ResponseModel<List<EquCategoryVo>> getEquCategoryTree(String equListCode){
return ResponseHelper.buildResponse(statisticsService.getEquCategoryList(equListCode));
@PostMapping(value = "/getEquCategoryList")
@ApiOperation(httpMethod = "POST", value = "根据设备种类code获取设备类别下拉", notes = "根据设备种类code获取设备类别下拉")
public ResponseModel<List<EquCategoryVo>> getEquCategoryTree(@RequestBody DPFilterParamForDetailDto paramDto){
return ResponseHelper.buildResponse(statisticsService.getEquCategoryList(paramDto.getTreeValue()));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment