|
|
@@ -62,13 +62,14 @@ public class products extends Controller {
|
|
|
if (whereObject.containsKey("notin") && !"".equals(whereObject.getString("notin"))) {
|
|
|
JSONObject notinObject = whereObject.getJSONObject("notin");
|
|
|
if (notinObject.containsKey("tactivity_agentproducts")) {
|
|
|
- JSONObject tactivity_agentmsgObject = notinObject.getJSONObject("tactivity_agentmsg");
|
|
|
- long tactivityid = tactivity_agentmsgObject.getLong("tactivityid");
|
|
|
+ JSONObject tactivity_agentproductsObject = notinObject.getJSONObject("tactivity_agentproducts");
|
|
|
+ long tactivityid = tactivity_agentproductsObject.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) ");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ System.err.println(where);
|
|
|
SQLFactory sql = new SQLFactory(this, "ÉÌÆ·Áбí²éѯ", pageSize, pageNumber, sort);
|
|
|
sql.addParameter("siteid", siteid);
|
|
|
sql.addParameter("tagentsid", tagentsid);
|