其他分享
首页 > 其他分享> > 然后把多条数据,放在一个结果集里。

然后把多条数据,放在一个结果集里。

作者:互联网

public Map<String, Object> NotifyABItem(Map<String, Object> params) {
log.getLogger("notifynew_s").info("notify.NotifyItem.bodys({},{})", params);
Map<String, Object> response = new HashMap<String, Object>();
String notifySettingKey = params.get("notifySettingKey").toString();
List<String> groupNameList = notifySettingMapper.selectGroupNameListByNotifySettingKey(notifySettingKey);
int ratA = 0;
for (int d = 0; d< groupNameList.size(); d++) {
String groupNameString = groupNameList.get(d);
params.put("groupName",groupNameString);
List<Map<String, Object>> notifyRecord = notifySettingMapper.selectNotifyABItem(params);

response.put(groupNameString, notifyRecord);}

response.put("status", "OK");
log.getLogger("notifynew_s").info("notify.NotifyItem.bodys({},{})", params, response);
return response;
}

标签:Map,notifySettingKey,多条,groupNameList,放在,params,put,集里,response
来源: https://www.cnblogs.com/ewa-03/p/15434321.html