package com.vci.ubcs.system.controller;
|
|
import com.vci.ubcs.system.entity.StatisticConfig;
|
import com.vci.ubcs.system.service.IMdmCountConfigService;
|
import com.vci.ubcs.system.service.IStatisticConfigService;
|
import com.vci.ubcs.system.vo.MdmCountConfigVO;
|
import io.swagger.annotations.Api;
|
import lombok.AllArgsConstructor;
|
import org.springblade.core.tenant.annotation.NonDS;
|
import org.springblade.core.tool.api.R;
|
import org.springframework.web.bind.annotation.*;
|
|
import java.util.List;
|
|
/**
|
* @author yuxc
|
* @date 2023/12/13 15:47
|
*/
|
@NonDS
|
@RestController
|
@AllArgsConstructor
|
@RequestMapping("/statisticConfig")
|
//@Api(value = "字典", tags = "字典")
|
public class StatisticConfigController {
|
|
private final IStatisticConfigService statisticConfigService;
|
|
/**
|
* 统计分析保存
|
* @param statisticConfigs 数据传输对象
|
* @return 数据返回
|
*/
|
@PostMapping("/saveStatisticAnalysis")
|
public R saveStatisticAnalysis(@RequestBody List<StatisticConfig> statisticConfigs){
|
return statisticConfigService.saveStatisticConfig(statisticConfigs);
|
}
|
|
/**
|
* 统计分析删除图形
|
* @param btmname 业务类型
|
* @param chartId 图形ID
|
* @return 成功与否
|
*/
|
@PostMapping("/deleteChartId")
|
public R deleteChartId(String btmname,String chartId){
|
return statisticConfigService.deleteChartId(btmname,chartId);
|
}
|
|
/**
|
* 获取用户配置的业务类型与相关的图形
|
* @return 图形数据与业务类型ID
|
*/
|
@GetMapping("/getBtmAndChartIds")
|
public R getBtmAndChartIds(){
|
return statisticConfigService.getBtmAndChartIds();
|
}
|
|
}
|