|
@@ -1911,6 +1911,15 @@ public class TrialSelfInspectionRecordServiceImpl extends BaseServiceImpl<TrialS
|
|
|
endTime = DateUtil.format(DateUtils.addDays(DateUtil.parse(endTime, "yyyy-MM-dd"), 1), "yyyy-MM-dd");
|
|
|
queryWrapper.lambda().between(TrialSelfInspectionRecord::getReportDate, dto.getStartTime(), endTime);
|
|
|
}
|
|
|
+ if (dto.getReportType() != null) {
|
|
|
+ if (dto.getReportType() == 0) {
|
|
|
+ queryWrapper.lambda().eq(TrialSelfInspectionRecord::getType, 1);
|
|
|
+ } else if (dto.getReportType() == 1) {
|
|
|
+ queryWrapper.lambda().eq(TrialSelfInspectionRecord::getType, 2);
|
|
|
+ } else if (dto.getReportType() == 2) {
|
|
|
+ queryWrapper.lambda().eq(TrialSelfInspectionRecord::getType, 3);
|
|
|
+ }
|
|
|
+ }
|
|
|
queryWrapper.lambda().eq(TrialSelfInspectionRecord::getTaskStatus, "已审批");
|
|
|
queryWrapper.lambda().eq(TrialSelfInspectionRecord::getDetectionResult, 1); //合格
|
|
|
queryWrapper.lambda().eq(TrialSelfInspectionRecord::getDetectionCategory, 1); //自检
|