Commit 28aaac40 by Lee Munkyeong

コンタクト画面のグループ名をパンクズに変更

parent fbacafa1
...@@ -211,7 +211,7 @@ public class CommunicationLogic extends AbstractLogic { ...@@ -211,7 +211,7 @@ public class CommunicationLogic extends AbstractLogic {
for (ChatGroupDto chatGroupDto : myGroupIds) { for (ChatGroupDto chatGroupDto : myGroupIds) {
JSONObject groupUserJson = new JSONObject(); JSONObject groupUserJson = new JSONObject();
groupUserJson.put(ABookCommConstants.KEY.GROUP_ID, chatGroupDto.groupId); groupUserJson.put(ABookCommConstants.KEY.GROUP_ID, chatGroupDto.groupId);
groupUserJson.put(ABookCommConstants.KEY.GROUP_NAME, chatGroupDto.groupName); groupUserJson.put(ABookCommConstants.KEY.GROUP_NAME, makeGroupPath(chatGroupDto.groupId, " > "));
List<ShopMemberDto> groupUsers = shopMemberDao.getUserListByGroupId(chatGroupDto.groupId); List<ShopMemberDto> groupUsers = shopMemberDao.getUserListByGroupId(chatGroupDto.groupId);
JSONArray groupUserArray = new JSONArray(); JSONArray groupUserArray = new JSONArray();
for (ShopMemberDto groupUser : groupUsers) { for (ShopMemberDto groupUser : groupUsers) {
...@@ -907,4 +907,13 @@ public class CommunicationLogic extends AbstractLogic { ...@@ -907,4 +907,13 @@ public class CommunicationLogic extends AbstractLogic {
JSONObject jsonObject = new JSONObject(userMap); JSONObject jsonObject = new JSONObject(userMap);
return jsonObject.toString(); return jsonObject.toString();
} }
public String makeGroupPath(Integer groupId, String seperator) {
List<ChatGroupDto> gorupPathList = chatGroupDao.getGroupTree(groupId);
List<String> groupPathString = new ArrayList<String>();
for (ChatGroupDto group : gorupPathList) {
groupPathString.add(group.groupName);
}
return StringUtil.join(seperator, groupPathString);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment