From f8b3aecccd31d845804d0255a034d4727b4adcea Mon Sep 17 00:00:00 2001 From: hayu <1604366271@qq.com> Date: Fri, 26 Jul 2024 16:32:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=B5=8B=E6=8A=A5=E5=91=8A=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basis/entity/dto/TestReportManageDto.java | 11 +++++++++++ .../impl/TestReportManageServiceImpl.java | 4 ---- .../mappers/basis/TestReportManageMapper.xml | 10 ++++++++++ .../js/testReport/child/testReportForm.js | 12 +++++++++++- .../static/js/testReport/testReportMge.js | 14 +++++++++++--- .../pages/testReport/child/testReportForm.html | 18 ++++++++++++++++-- .../static/pages/testReport/testReportMge.html | 18 +++++++++++++----- 7 files changed, 72 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/bonus/aqgqj/basis/entity/dto/TestReportManageDto.java b/src/main/java/com/bonus/aqgqj/basis/entity/dto/TestReportManageDto.java index 9106db1..428c4f0 100644 --- a/src/main/java/com/bonus/aqgqj/basis/entity/dto/TestReportManageDto.java +++ b/src/main/java/com/bonus/aqgqj/basis/entity/dto/TestReportManageDto.java @@ -173,4 +173,15 @@ public class TestReportManageDto extends PageEntity { private List sampleList; + /** + * 开始时间 + */ + private String startTime; + + /** + * 结束时间 + */ + private String endTime; + + } diff --git a/src/main/java/com/bonus/aqgqj/basis/service/impl/TestReportManageServiceImpl.java b/src/main/java/com/bonus/aqgqj/basis/service/impl/TestReportManageServiceImpl.java index c446c46..e9052c9 100644 --- a/src/main/java/com/bonus/aqgqj/basis/service/impl/TestReportManageServiceImpl.java +++ b/src/main/java/com/bonus/aqgqj/basis/service/impl/TestReportManageServiceImpl.java @@ -42,10 +42,6 @@ public class TestReportManageServiceImpl implements TestReportManageService { @Override public List list(TestReportManageDto bean) { List list = testReportManageDao.list(bean); -// for (TestReportManageDto dto : list){ -// String sampleTools = testReportManageDao.getSampleTools(dto.getId()); -// dto.setSampleTools(sampleTools); -// } return list; } diff --git a/src/main/resources/mappers/basis/TestReportManageMapper.xml b/src/main/resources/mappers/basis/TestReportManageMapper.xml index 72220c5..a2faff7 100644 --- a/src/main/resources/mappers/basis/TestReportManageMapper.xml +++ b/src/main/resources/mappers/basis/TestReportManageMapper.xml @@ -87,6 +87,7 @@ LEFT JOIN tb_custom tc on tc.id=ts.custom_id and tc.del_flag=0 LEFT JOIN sys_user su on su.id=ts.create_user and su.del_flag=0 LEFT JOIN tb_team tt on tt.id=ts.team_id and tt.del_flag=0 + where 1=1 AND su.user_name like concat('%', #{collectSamplesUser}, '%') @@ -96,6 +97,12 @@ tt.team_name like concat('%', #{keyWord}, '%') ) + + AND ( + DATE_FORMAT(ts.sample_time, '%Y-%m-%d') BETWEEN #{startTime} AND #{endTime} OR + DATE_FORMAT(ts.sample_date, '%Y-%m-%d') BETWEEN #{startTime} AND #{endTime} + ) + + +
-
+
+ +
+ + +
diff --git a/src/main/resources/static/pages/testReport/testReportMge.html b/src/main/resources/static/pages/testReport/testReportMge.html index 54eca93..59e7639 100644 --- a/src/main/resources/static/pages/testReport/testReportMge.html +++ b/src/main/resources/static/pages/testReport/testReportMge.html @@ -2,12 +2,12 @@ - + - + @@ -29,9 +29,17 @@
-
-
- +
+
+
+ +
+
-
+
+ +