From f853b02cb7b265379eceb2f0e3c38f9d63bb1b21 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 06 一月 2025 17:55:25 +0800 Subject: [PATCH] 执行调度模型 默认时间 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/controller/admin/ApiDataController.java | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/controller/admin/ApiDataController.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/controller/admin/ApiDataController.java index 3ed05e1..339c042 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/controller/admin/ApiDataController.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/api/controller/admin/ApiDataController.java @@ -4,7 +4,6 @@ import com.iailab.framework.common.util.date.DateUtils; import com.iailab.framework.common.util.object.ConvertUtils; import com.iailab.framework.excel.core.util.ExcelUtils; -import com.iailab.framework.tenant.core.context.TenantContextHolder; import com.iailab.module.data.api.dto.DeviceValueDTO; import com.iailab.module.data.api.dto.IndexQueryDTO; import com.iailab.module.data.api.dto.echarts.BarLineDTO; @@ -39,7 +38,6 @@ import javax.annotation.security.PermitAll; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import java.io.IOException; import java.math.BigDecimal; import java.math.RoundingMode; import java.util.*; @@ -282,8 +280,8 @@ @PostMapping("/export-plan/history-value") @Operation(summary = "导出计划数据") public void exportPlanHistoryValue(HttpServletResponse response, HttpServletRequest - request, @RequestBody ApiDataQueryDTO dto) throws IOException { - //apiSecurityUtils.validate(request); + request, @RequestBody ApiDataQueryDTO dto) throws Exception { + apiSecurityUtils.validate(request); Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.MILLISECOND, 0); calendar.set(Calendar.SECOND, 0); @@ -306,8 +304,9 @@ @PermitAll @GetMapping("/query-ind/default-value") @Operation(summary = "查询指标默认值") - public CommonResult<List<ApiIndItemValueDTO>> queryIndItemDefaultValue(@RequestParam String itemNo) { - TenantContextHolder.setTenantId(161L); + public CommonResult<List<ApiIndItemValueDTO>> queryIndItemDefaultValue(HttpServletResponse response, HttpServletRequest + request,@RequestParam String itemNo) throws Exception { + apiSecurityUtils.validate(request); List<IndItemValueVO> list = indItemCollector.queryValue(itemNo); List<ApiIndItemValueDTO> dtoList = new ArrayList<>(); list.forEach(item -> { -- Gitblit v1.9.3