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); }