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