|
|
@@ -32,10 +32,17 @@ public class supplyanddemand extends Controller {
|
|
|
where.append("t1.ftitle like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
where.append("or t2.fagentname like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
where.append("or t3.fphonenumber like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
- where.append("or t1.ftype like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
- where.append("or t1.fstatus like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
where.append(")");
|
|
|
}
|
|
|
+ if (whereObject.containsKey("ftype") && !"".equals(whereObject.getString("ftype"))) {
|
|
|
+ where.append(" and t1.ftype ='").append(whereObject.getString("ftype")).append("' ");
|
|
|
+ }
|
|
|
+ if (whereObject.containsKey("fissupply") && !"".equals(whereObject.getString("fissupply"))) {
|
|
|
+ where.append(" and t1.fissupply =").append(whereObject.getBooleanValue("fissupply") ? 1 : 0);
|
|
|
+ }
|
|
|
+ if (whereObject.containsKey("fstatus") && !"".equals(whereObject.getString("fstatus"))) {
|
|
|
+ where.append(" and t1.fstatus ='").append(whereObject.getString("fstatus")).append("' ");
|
|
|
+ }
|
|
|
}
|
|
|
SQLFactory sqlFactory = new SQLFactory(this, "¹©ÐèÁбí²éѯ", pageSize, pageNumber, sort);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|