|
|
@@ -687,15 +687,6 @@ public class Order extends Controller {
|
|
|
StringBuffer where = new StringBuffer(" 1=1 ");
|
|
|
if (content.containsKey("where")) {
|
|
|
JSONObject whereObject = content.getJSONObject("where");
|
|
|
- if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
|
|
|
- where.append(" and(");
|
|
|
- where.append("t1.sonum like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
- where.append("or t2.enterprisename like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
- where.append("or t2.abbreviation like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
-// where.append("or t5.erpbillno like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
- where.append("or t1.remarks like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
- where.append(")");
|
|
|
- }
|
|
|
//状态
|
|
|
if (whereObject.containsKey("status") && !"".equals(whereObject.getString("status"))) {
|
|
|
JSONArray jsonArray = whereObject.getJSONArray("status");
|
|
|
@@ -834,9 +825,8 @@ public class Order extends Controller {
|
|
|
// sqlFactory.addParameter_SQL("where", where);
|
|
|
// String sql = sqlFactory.getSQL();
|
|
|
QuerySQL querySQL = queryListManage(where.toString());
|
|
|
- Rows rows;
|
|
|
querySQL.setPage(pageSize, pageNumber);
|
|
|
- rows = querySQL.query();
|
|
|
+ Rows rows = querySQL.query();
|
|
|
|
|
|
ArrayList<Long> ids = rows.toArrayList("sa_orderid", new ArrayList<>());
|
|
|
ids.add(0l);
|