mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 05:42:06 +08:00
报表基础模块:1、报表三大对象列表筛选、操作权限完善;2、报表接口恢复@PreAuthorize权限控制;
This commit is contained in:
+4
-2
@@ -4,6 +4,7 @@ import com.cf.imes.framework.test.core.util.RandomUtils;
|
||||
import com.cf.imes.module.report.controller.admin.dataset.vo.ReportDatasetReqVO;
|
||||
import com.cf.imes.module.report.controller.admin.dataset.vo.ReportDatasetSaveReqVO;
|
||||
import com.cf.imes.module.report.controller.admin.datasource.vo.ReportDatasourceSaveReqVO;
|
||||
import com.cf.imes.module.report.controller.admin.template.vo.ReportTemplateRespVO;
|
||||
import com.cf.imes.module.report.controller.admin.template.vo.ReportTemplateSaveReqVO;
|
||||
import com.cf.imes.module.report.dal.dataobject.dataset.ReportDatasetDO;
|
||||
import com.cf.imes.module.report.dal.dataobject.datasource.ReportDatasourceDO;
|
||||
@@ -49,8 +50,9 @@ public class ReportDatasetServiceImplTest extends ReportCommonServiceImplTest{
|
||||
// 2、插入template、断言自增id
|
||||
// 3、用id查template、断言对象
|
||||
ReportTemplateSaveReqVO createReqVO = prepareTemplateReqVO(null);
|
||||
Long templateId = reportTemplateService.createReportTemplate(createReqVO);
|
||||
assertNotNull(templateId);
|
||||
ReportTemplateRespVO reportTemplate = reportTemplateService.createReportTemplate(createReqVO);
|
||||
assertNotNull(reportTemplate);
|
||||
Long templateId = reportTemplate.getId();
|
||||
ReportTemplateDO template = reportTemplateService.getReportTemplate(templateId);
|
||||
assertNotNull(template);
|
||||
|
||||
|
||||
+3
-1
@@ -3,6 +3,7 @@ package com.cf.imes.module.report.service.template;
|
||||
import com.cf.imes.framework.test.core.util.RandomUtils;
|
||||
import com.cf.imes.module.report.controller.admin.datasource.vo.ReportDatasourceReqVO;
|
||||
import com.cf.imes.module.report.controller.admin.datasource.vo.ReportDatasourceSaveReqVO;
|
||||
import com.cf.imes.module.report.controller.admin.template.vo.ReportTemplateRespVO;
|
||||
import com.cf.imes.module.report.controller.admin.template.vo.ReportTemplateSaveReqVO;
|
||||
import com.cf.imes.module.report.dal.dataobject.datasource.ReportDatasourceDO;
|
||||
import com.cf.imes.module.report.dal.dataobject.template.ReportTemplateDO;
|
||||
@@ -41,7 +42,8 @@ public class ReportDatasourceServiceImplTest extends ReportCommonServiceImplTest
|
||||
// 2、插入template、断言自增id
|
||||
// 3、用id查template、断言对象
|
||||
ReportTemplateSaveReqVO createReqVO = prepareTemplateReqVO(null);
|
||||
Long templateId = reportTemplateService.createReportTemplate(createReqVO);
|
||||
ReportTemplateRespVO reportTemplate = reportTemplateService.createReportTemplate(createReqVO);
|
||||
Long templateId = reportTemplate.getId();
|
||||
assertNotNull(templateId);
|
||||
ReportTemplateDO template = reportTemplateService.getReportTemplate(templateId);
|
||||
assertNotNull(template);
|
||||
|
||||
+9
-5
@@ -2,6 +2,7 @@ package com.cf.imes.module.report.service.template;
|
||||
|
||||
import com.cf.imes.framework.test.core.util.RandomUtils;
|
||||
import com.cf.imes.module.report.controller.admin.template.vo.ReportTemplateReqVO;
|
||||
import com.cf.imes.module.report.controller.admin.template.vo.ReportTemplateRespVO;
|
||||
import com.cf.imes.module.report.controller.admin.template.vo.ReportTemplateSaveReqVO;
|
||||
import com.cf.imes.module.report.dal.dataobject.template.ReportTemplateDO;
|
||||
import com.cf.imes.module.report.enums.template.ReportTemplateTypeEnum;
|
||||
@@ -35,7 +36,8 @@ public class ReportTemplateServiceImplTest extends ReportCommonServiceImplTest {
|
||||
ReportTemplateSaveReqVO createReqVO = prepareTemplateReqVO(null);
|
||||
System.out.println("template压缩后大小:" + createReqVO.getContent().length());
|
||||
// 插入
|
||||
Long templateId = reportTemplateService.createReportTemplate(createReqVO);
|
||||
ReportTemplateRespVO reportTemplate = reportTemplateService.createReportTemplate(createReqVO);
|
||||
Long templateId = reportTemplate.getId();
|
||||
// 断言
|
||||
assertNotNull(templateId);
|
||||
// 校验是否插入
|
||||
@@ -56,7 +58,8 @@ public class ReportTemplateServiceImplTest extends ReportCommonServiceImplTest {
|
||||
ReportTemplateSaveReqVO createReqVO = prepareTemplateReqVO(null);
|
||||
System.out.println("template压缩后大小:" + createReqVO.getContent().length());
|
||||
// 插入
|
||||
Long templateId = reportTemplateService.createReportTemplate(createReqVO);
|
||||
ReportTemplateRespVO reportTemplate = reportTemplateService.createReportTemplate(createReqVO);
|
||||
Long templateId = reportTemplate.getId();
|
||||
|
||||
//准备更新参数
|
||||
ReportTemplateSaveReqVO updateReqVO = prepareTemplateReqVO(templateId);
|
||||
@@ -86,7 +89,8 @@ public class ReportTemplateServiceImplTest extends ReportCommonServiceImplTest {
|
||||
// 准备参数
|
||||
ReportTemplateSaveReqVO createReqVO = prepareTemplateReqVO(null);
|
||||
// 插入
|
||||
Long templateId = reportTemplateService.createReportTemplate(createReqVO);
|
||||
ReportTemplateRespVO reportTemplate = reportTemplateService.createReportTemplate(createReqVO);
|
||||
Long templateId = reportTemplate.getId();
|
||||
|
||||
// 删除
|
||||
reportTemplateService.deleteReportTemplate(templateId);
|
||||
@@ -111,8 +115,8 @@ public class ReportTemplateServiceImplTest extends ReportCommonServiceImplTest {
|
||||
// 准备参数
|
||||
ReportTemplateSaveReqVO createReqVO = prepareTemplateReqVO(null);
|
||||
// 插入
|
||||
Long templateId = reportTemplateService.createReportTemplate(createReqVO);
|
||||
|
||||
ReportTemplateRespVO reportTemplate = reportTemplateService.createReportTemplate(createReqVO);
|
||||
Long templateId = reportTemplate.getId();
|
||||
|
||||
ReportTemplateReqVO reqVO = new ReportTemplateReqVO();
|
||||
reqVO.setType(ReportTemplateTypeEnum.SYSTEM.getType());
|
||||
|
||||
Reference in New Issue
Block a user