|
|
@@ -43,6 +43,15 @@ public class tagents extends Controller {
|
|
|
where.append("or t2.fphonenumber like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
where.append(")");
|
|
|
}
|
|
|
+ if (whereObject.containsKey("notin") && !"".equals(whereObject.getString("notin"))) {
|
|
|
+ JSONObject notinObject = whereObject.getJSONObject("notin");
|
|
|
+ String tablename = notinObject.getString("tablename");
|
|
|
+ if (tablename.equalsIgnoreCase("tactivity_agentmsg")) {
|
|
|
+ long tactivityid = notinObject.getLong("tactivityid");
|
|
|
+ where.append(" and not exists( select * from tactivity_agentmsg where siteid='" + siteid + "' " +
|
|
|
+ "and tactivityid='" + tactivityid + "' and tagentsid=t1.tagentsid ) ");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
SQLFactory singleagentSql = new SQLFactory(this, "¸öÈËÉÌ»§Áбí²éѯ", pageSize, pageNumber, "t1.tagentsid");
|
|
|
singleagentSql.addParameter("siteid", siteid);
|