|
|
@@ -61,9 +61,9 @@ public class products extends Controller {
|
|
|
}
|
|
|
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");
|
|
|
+ if (notinObject.containsKey("tactivity_agentproducts")) {
|
|
|
+ JSONObject tactivity_agentmsgObject = notinObject.getJSONObject("tactivity_agentmsg");
|
|
|
+ long tactivityid = tactivity_agentmsgObject.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) ");
|
|
|
}
|