From fcb4272714e114010bbfabc8d2bfef78f77a9b8c Mon Sep 17 00:00:00 2001 From: 44673626 <44673626@qq.com> Date: Thu, 28 Apr 2022 10:40:15 +0800 Subject: [PATCH] 34 --- .../Report/SettleSparePartDapperReportRepository.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/SettleSparePartDapperReportRepository.cs b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/SettleSparePartDapperReportRepository.cs index 818a14d0..9deb62c7 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/SettleSparePartDapperReportRepository.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/SettleSparePartDapperReportRepository.cs @@ -643,11 +643,19 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report string condition = ""; + //if (!string.IsNullOrEmpty(begintime) && Convert.ToDateTime(begintime) != DateTime.MinValue) + //{ + // condition += string.Format(" and a.SpareDate>='{0}' ", begintime); + //} + //if (!string.IsNullOrEmpty(endtime) && Convert.ToDateTime(begintime) != DateTime.MinValue) + //{ + // condition += string.Format(" and a.SpareDate<='{0}' ", endtime); + //} if (!string.IsNullOrEmpty(begintime) && Convert.ToDateTime(begintime) != DateTime.MinValue) { condition += string.Format(" and a.SpareDate>='{0}' ", begintime); } - if (!string.IsNullOrEmpty(endtime) && Convert.ToDateTime(begintime) != DateTime.MinValue) + if (!string.IsNullOrEmpty(endtime)) { condition += string.Format(" and a.SpareDate<='{0}' ", endtime); }