|
@@ -92,7 +92,7 @@ public class Saorder extends Controller {
|
|
|
where = where + " and exists(select *from saorderdetail where fparentid=t1.saorderid and (fitemname like'%" + whereObject.getString("fitemname") + "%' or fitemno like'%" + whereObject.getString("fitemname") + "%'))";
|
|
where = where + " and exists(select *from saorderdetail where fparentid=t1.saorderid and (fitemname like'%" + whereObject.getString("fitemname") + "%' or fitemno like'%" + whereObject.getString("fitemname") + "%'))";
|
|
|
}
|
|
}
|
|
|
if (whereObject.containsKey("fsonum") && !"".equals(whereObject.getString("fsonum"))) {
|
|
if (whereObject.containsKey("fsonum") && !"".equals(whereObject.getString("fsonum"))) {
|
|
|
- where = where + " and t1.fsonum='" + whereObject.getString("fsonum") + "'";
|
|
|
|
|
|
|
+ where = where + " and t1.fsonum like '%"+ whereObject.getString("fsonum") + "%'";
|
|
|
}
|
|
}
|
|
|
if (whereObject.containsKey("fodertype") && !"".equals(whereObject.getString("fodertype"))) {
|
|
if (whereObject.containsKey("fodertype") && !"".equals(whereObject.getString("fodertype"))) {
|
|
|
String fodertype = whereObject.getString("fodertype");
|
|
String fodertype = whereObject.getString("fodertype");
|
|
@@ -112,7 +112,7 @@ public class Saorder extends Controller {
|
|
|
factory.addParameter_SQL("where", where);
|
|
factory.addParameter_SQL("where", where);
|
|
|
Rows rows = connect.runSqlQuery(factory.getSQL());
|
|
Rows rows = connect.runSqlQuery(factory.getSQL());
|
|
|
|
|
|
|
|
- return getReturnObject_suc_page(rows, true, 1, sortmsg).toString();
|
|
|
|
|
|
|
+ return getReturnObject_suc_page(rows, false, 1, sortmsg).toString();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -837,6 +837,9 @@ public class Saorder extends Controller {
|
|
|
if (whereObject.containsKey("fenddate") && !"".equals(whereObject.getString("fenddate"))) {
|
|
if (whereObject.containsKey("fenddate") && !"".equals(whereObject.getString("fenddate"))) {
|
|
|
where = where + " and convert(varchar(10),t1.recheckdate,120) <='" + whereObject.getString("fenddate") + "'";
|
|
where = where + " and convert(varchar(10),t1.recheckdate,120) <='" + whereObject.getString("fenddate") + "'";
|
|
|
}
|
|
}
|
|
|
|
|
+ if (whereObject.containsKey("fsonum") && !"".equals(whereObject.getString("fsonum"))) {
|
|
|
|
|
+ where = where + " and t1.fsonum like '%" + whereObject.getString("fsonum") + "%'";
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|
|
|
* SQL隆等蹈桶脤戙統杅扢离甜脤戙
|
|
* SQL隆等蹈桶脤戙統杅扢离甜脤戙
|