|
|
@@ -1,37 +0,0 @@
|
|
|
-package com.fs.api.controller;
|
|
|
-
|
|
|
-import com.fs.FSApplication;
|
|
|
-import com.fs.common.core.domain.R;
|
|
|
-import com.fs.statis.dto.AnalysisPreviewQueryDTO;
|
|
|
-import lombok.RequiredArgsConstructor;
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.junit.jupiter.api.Test;
|
|
|
-import org.junit.runner.RunWith;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.boot.test.context.SpringBootTest;
|
|
|
-import org.springframework.test.context.junit4.SpringRunner;
|
|
|
-
|
|
|
-import static org.junit.jupiter.api.Assertions.*;
|
|
|
-
|
|
|
-@RunWith(SpringRunner.class)
|
|
|
-@SpringBootTest(classes = FSApplication.class)
|
|
|
-@RequiredArgsConstructor
|
|
|
-@Slf4j
|
|
|
-public class IndexStatisticsControllerTest {
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private IndexStatisticsController indexStatisticsController;
|
|
|
-
|
|
|
- @Test
|
|
|
- public void analysisPreview() {
|
|
|
- AnalysisPreviewQueryDTO dto = new AnalysisPreviewQueryDTO();
|
|
|
- dto.setCompanyId(null);
|
|
|
- dto.setDeptId(1L);
|
|
|
- dto.setEndTime("2025-10-31 23:59:59");
|
|
|
- dto.setStartTime("2025-10-01 00:00:00");
|
|
|
- dto.setType(4);
|
|
|
- dto.setUserType(1);
|
|
|
- R r = indexStatisticsController.analysisPreview(dto);
|
|
|
- log.info("r: {}",r);
|
|
|
- }
|
|
|
-}
|