|
|
@@ -40,6 +40,21 @@ public class tagents extends Controller {
|
|
|
modifyapp.addParameter("tagentsid", tagentsid);
|
|
|
Rows modifyapprows = dbConnect.runSqlQuery(modifyapp.getSQL());
|
|
|
row.put("fisauthenticating", modifyapprows.isEmpty() ? 0 : 1);
|
|
|
+
|
|
|
+ //ÐÞ¸ÄÉêÇë²éѯ
|
|
|
+ Rows tagents_msgchangeappRows = dbConnect.runSqlQuery("select fchangemsg,ftype,tagents_msgchangappid from tagents_msgchangeapp where fstatus='ÉêÇë' and siteid='" + siteid + "' and tagentsid='" + tagentsid + "'");
|
|
|
+ if (tagents_msgchangeappRows.isEmpty()) {
|
|
|
+ row.put("msgchangeapp", "{}");
|
|
|
+ } else {
|
|
|
+ String ftype = tagents_msgchangeappRows.get(0).getString("ftype");
|
|
|
+ String fchangemsg = tagents_msgchangeappRows.get(0).getString("fchangemsg");
|
|
|
+ long tagents_msgchangappid = tagents_msgchangeappRows.get(0).getLong("tagents_msgchangappid");
|
|
|
+ JSONObject msgchangeappObject = new JSONObject();
|
|
|
+ msgchangeappObject.put("ftype", ftype);
|
|
|
+ msgchangeappObject.put("fchangemsg", JSONObject.parseObject(fchangemsg));
|
|
|
+ msgchangeappObject.put("tagents_msgchangappid", tagents_msgchangappid);
|
|
|
+ row.put("msgchangeapp", msgchangeappObject);
|
|
|
+ }
|
|
|
}
|
|
|
return getSucReturnObject().setData(rows).toString();
|
|
|
}
|