|
|
@@ -37,8 +37,18 @@ public class teammsg extends Controller {
|
|
|
subusersql.addParameter_in("fparentid", rows.toArrayList("tenterprise_userid"));
|
|
|
|
|
|
RowsMap map = dbConnect.runSqlQuery(subusersql.getSQL()).toRowsMap("fparentid");
|
|
|
+
|
|
|
+ RowsMap attinfosMap = getAttachmentUrl("tenterprise_users", rows.toArrayList("tenterprise_userid"), "headportrait");
|
|
|
for (Row row : rows) {
|
|
|
- row.put("subusers", map.get(row.getString("tenterprise_userid")).toArray("tenterprise_userid"));
|
|
|
+ String tenterprise_userid = row.getString("tenterprise_userid");
|
|
|
+ row.put("subusers", map.get(tenterprise_userid).toArray("tenterprise_userid"));
|
|
|
+
|
|
|
+ if (attinfosMap.containsKey(tenterprise_userid)) {
|
|
|
+ row.put("attinfos", attinfosMap.get(tenterprise_userid));
|
|
|
+ } else {
|
|
|
+ row.put("attinfos", "[]");
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
return getSucReturnObject().setData(rows).saveToDataPool().toString();
|
|
|
}
|