|
|
@@ -59,6 +59,15 @@ public class products extends Controller {
|
|
|
where.append(" and t1.fisonsale=0 ");
|
|
|
}
|
|
|
}
|
|
|
+ if (whereObject.containsKey("notin") && !"".equals(whereObject.getString("notin"))) {
|
|
|
+ JSONObject notinObject = whereObject.getJSONObject("notin");
|
|
|
+ String tablename = notinObject.getString("tablename");
|
|
|
+ if (tablename.equalsIgnoreCase("tactivity_agentproducts")) {
|
|
|
+ long tactivityid = notinObject.getLong("tactivityid");
|
|
|
+ where.append(" and not exists( select * from tactivity_agentproducts where siteid='" + siteid + "' " +
|
|
|
+ "and tactivityid='" + tactivityid + "' and tagentsid='" + tagentsid + "' and tagents_productid=t1.tagents_productid) ");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
SQLFactory sql = new SQLFactory(this, "ÉÌÆ·Áбí²éѯ", pageSize, pageNumber, sort);
|
|
|
sql.addParameter("siteid", siteid);
|