|
|
@@ -50,10 +50,12 @@ public class products extends Controller {
|
|
|
where.append("or t1.ftag like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
where.append(")");
|
|
|
}
|
|
|
- if (whereObject.getBooleanValue("fisonsale")) {
|
|
|
- where.append(" and t1.fisonsale=1 ");
|
|
|
- } else {
|
|
|
- where.append(" and t1.fisonsale=0 ");
|
|
|
+ if (whereObject.containsKey("fisonsale") && !"".equals(whereObject.getString("fisonsale"))) {
|
|
|
+ if (whereObject.getBooleanValue("fisonsale")) {
|
|
|
+ where.append(" and t1.fisonsale=1 ");
|
|
|
+ } else {
|
|
|
+ where.append(" and t1.fisonsale=0 ");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
SQLFactory sql = new SQLFactory(this, "ÉÌÆ·Áбí²éѯ", pageSize, pageNumber, sort);
|