Browse Source

34

FoShanPG
44673626 3 years ago
parent
commit
fcb4272714
  1. 10
      src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/SettleSparePartDapperReportRepository.cs

10
src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/SettleSparePartDapperReportRepository.cs

@ -643,11 +643,19 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
string condition = ""; 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) if (!string.IsNullOrEmpty(begintime) && Convert.ToDateTime(begintime) != DateTime.MinValue)
{ {
condition += string.Format(" and a.SpareDate>='{0}' ", begintime); 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); condition += string.Format(" and a.SpareDate<='{0}' ", endtime);
} }

Loading…
Cancel
Save