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

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;
}
posted @ 2021-10-21 17:25  夏之  阅读(24)  评论(0编辑  收藏  举报