Commit e9815511 authored by 韩桐桐's avatar 韩桐桐

feat(统计):bug

parent 0a5612fb
package com.yeejoin.amos.boot.module.statistcs.biz.controller;
import com.alibaba.fastjson.JSONArray;
import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import com.yeejoin.amos.boot.module.common.api.dto.DPFilterParamForDetailDto;
import com.yeejoin.amos.boot.module.statistcs.biz.service.impl.StCommonServiceImpl;
......@@ -43,8 +44,10 @@ public class StCommonController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY)
@PostMapping(value = "/getEquCategoryTree")
@ApiOperation(httpMethod = "POST", value = "获取设备类型", notes = "获取设备类型")
public ResponseModel<EquCategoryVo> getEquCategoryTree(@RequestBody DPFilterParamForDetailDto paramDto){
return ResponseHelper.buildResponse(commonService.getEquCategoryTree(paramDto));
public ResponseModel<JSONArray> getEquCategoryTree(@RequestBody DPFilterParamForDetailDto paramDto){
JSONArray objects = new JSONArray();
objects.add(commonService.getEquCategoryTree(paramDto));
return ResponseHelper.buildResponse(objects);
}
}
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