|
|
@ -66,6 +66,8 @@ where 1=1 |
|
|
|
--order by a.CreateDateTime desc |
|
|
|
) a |
|
|
|
where 1=1 |
|
|
|
|
|
|
|
|
|
|
|
";
|
|
|
|
// sql += " WHERE 1=1 and a.MOStatus<>'3' ";
|
|
|
|
//sql = string.Format(sql, Figure);
|
|
|
@ -94,16 +96,19 @@ where 1=1 |
|
|
|
{ |
|
|
|
sql += " and a.DepName ='" + ssName1 + "' and a.APSStatus='Y' "; |
|
|
|
sql = sql.Replace("<1>", " "); |
|
|
|
|
|
|
|
} |
|
|
|
if (!string.IsNullOrEmpty(ssName1)) |
|
|
|
{ |
|
|
|
sql += " and a.DepName ='" + ssName1 + "' and a.APSStatus='Y' "; |
|
|
|
sql = sql.Replace("<1>", " "); |
|
|
|
|
|
|
|
} |
|
|
|
if (!string.IsNullOrEmpty(ssName2)) |
|
|
|
{ |
|
|
|
sql += " and a.DepName ='" + ssName2 + "' "; |
|
|
|
sql = sql.Replace("<1>", " and a.APSStatus is null "); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//if (!string.IsNullOrWhiteSpace(queryParam["SSName"].ToString()))
|
|
|
|