From 616e553554c963dae573a7e10e3d15f57cae160e Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Sun, 26 Sep 2021 14:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=9B=86=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=AB=98=E7=BA=A7=E8=A7=84=E5=88=99=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=BF=94=E5=9B=9E=E8=87=AA=E5=AE=9A=E4=B9=89=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DataSetServiceImpl.java | 2 ++ .../service/DataSetParamService.java | 2 +- .../service/impl/DataSetParamServiceImpl.java | 24 +++++++++++++++---- .../resultset/components/EditDataSet.vue | 11 +++++---- 4 files changed, 29 insertions(+), 10 deletions(-) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataset/service/impl/DataSetServiceImpl.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataset/service/impl/DataSetServiceImpl.java index 47e4e2ec..ed529a5f 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataset/service/impl/DataSetServiceImpl.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataset/service/impl/DataSetServiceImpl.java @@ -226,11 +226,13 @@ public class DataSetServiceImpl implements DataSetService { DataSource dataSource = dataSourceService.selectOne("source_code", dataSetDto.getSourceCode()); //3.参数替换 //3.1参数校验 + log.debug("参数校验替换前:{}", dto.getContextData()); boolean verification = dataSetParamService.verification(dataSetDto.getDataSetParamDtoList(), dto.getContextData()); if (!verification) { throw BusinessExceptionBuilder.build(ResponseCode.RULE_FIELDS_CHECK_ERROR); } String dynSentence = dataSetParamService.transform(dto.getContextData(), dataSetDto.getDynSentence()); + log.debug("参数校验替换后:{}", dto.getContextData()); //4.获取数据 DataSourceDto dataSourceDto = new DataSourceDto(); BeanUtils.copyProperties(dataSource, dataSourceDto); diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/datasetparam/service/DataSetParamService.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/datasetparam/service/DataSetParamService.java index 71c2286e..b8afe47c 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/datasetparam/service/DataSetParamService.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/datasetparam/service/DataSetParamService.java @@ -39,7 +39,7 @@ public interface DataSetParamService extends GaeaBaseService