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 @@
-
-
- +
+
+
+ +
+
-
+
+ +