微调
This commit is contained in:
@@ -42,12 +42,10 @@ public class DeviceManagerVO {
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
public static class DataSetVO {
|
public static class DataSetVO {
|
||||||
|
|
||||||
@ApiModelProperty(value = "数据集Id")
|
@ApiModelProperty(value = "数据集Id")
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
@ApiModelProperty(value = "数据集名称")
|
@ApiModelProperty(value = "数据集名称")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ public class EquipmentDeliveryController extends BaseController {
|
|||||||
@ApiImplicitParam(name = "type", value = "类型", required = true),
|
@ApiImplicitParam(name = "type", value = "类型", required = true),
|
||||||
})
|
})
|
||||||
public HttpResult<DeviceManagerVO> getDeviceData(@RequestParam String deviceId,@RequestParam String type){
|
public HttpResult<DeviceManagerVO> getDeviceData(@RequestParam String deviceId,@RequestParam String type){
|
||||||
String methodDescribe = getMethodDescribe("getDeviceData");
|
String methodDescribe = getMethodDescribe("deviceData");
|
||||||
DeviceManagerVO vo = csEquipmentDeliveryService.getDeviceData(deviceId,type);
|
DeviceManagerVO vo = csEquipmentDeliveryService.getDeviceData(deviceId,type);
|
||||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, vo, methodDescribe);
|
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, vo, methodDescribe);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,7 +101,23 @@ public class CsDataArrayServiceImpl extends ServiceImpl<CsDataArrayMapper, CsDat
|
|||||||
DataArrayTreeVO vo4 = new DataArrayTreeVO();
|
DataArrayTreeVO vo4 = new DataArrayTreeVO();
|
||||||
vo4.setId(item.getDataSetId() + item.getDataArrayName()+item2 + item3);
|
vo4.setId(item.getDataSetId() + item.getDataArrayName()+item2 + item3);
|
||||||
vo4.setName(item3);
|
vo4.setName(item3);
|
||||||
|
switch (item3) {
|
||||||
|
case "avg":
|
||||||
|
vo4.setShowName("平均值");
|
||||||
|
break;
|
||||||
|
case "max":
|
||||||
|
vo4.setShowName("最大值");
|
||||||
|
break;
|
||||||
|
case "min":
|
||||||
|
vo4.setShowName("最小值");
|
||||||
|
break;
|
||||||
|
case "cp95":
|
||||||
|
vo4.setShowName("CP95");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
vo4.setShowName(item3);
|
vo4.setShowName(item3);
|
||||||
|
break;
|
||||||
|
}
|
||||||
list4.add(vo4);
|
list4.add(vo4);
|
||||||
});
|
});
|
||||||
vo3.setChildren(list4);
|
vo3.setChildren(list4);
|
||||||
|
|||||||
Reference in New Issue
Block a user