Commit 71204431 by Lee Munkyeong

コードレビュー対応

parent 02678fc5
......@@ -117,10 +117,10 @@ public class CommunicationLogic extends AbstractLogic {
ShopMemberDto myInfo = shopMemberDao.getMyInfo();
List<String> groupPathList = groupDao.getMyGroupPathList();
JSONObject myInfoJson = new JSONObject();
myInfoJson.put("shopMemberId",myInfo.shopMemberId);
myInfoJson.put("shopMemberName",myInfo.shopMemberName);
myInfoJson.put("profileUrl",myInfo.profileUrl);
myInfoJson.put("groupPathList",groupPathList);
myInfoJson.put("shopMemberId", myInfo.shopMemberId);
myInfoJson.put("shopMemberName", myInfo.shopMemberName);
myInfoJson.put("profileUrl", myInfo.profileUrl);
myInfoJson.put("groupPathList", groupPathList);
String myInfoStr = myInfoJson.toString();
return myInfoStr;
}
......@@ -130,9 +130,9 @@ public class CommunicationLogic extends AbstractLogic {
JSONArray myGroupUsersJson = new JSONArray();
for (ShopMemberDto myGroupUser : myGroupUsers) {
Map<String, Object> myGroupUserMap = new HashMap<String, Object>();
myGroupUserMap.put("shopMemberId",myGroupUser.shopMemberId);
myGroupUserMap.put("shopMemberName",myGroupUser.shopMemberName);
myGroupUserMap.put("profileUrl",myGroupUser.profileUrl);
myGroupUserMap.put("shopMemberId", myGroupUser.shopMemberId);
myGroupUserMap.put("shopMemberName", myGroupUser.shopMemberName);
myGroupUserMap.put("profileUrl", myGroupUser.profileUrl);
JSONObject jsonObject = new JSONObject(myGroupUserMap);
myGroupUsersJson.put(jsonObject);
}
......@@ -159,9 +159,9 @@ public class CommunicationLogic extends AbstractLogic {
JSONArray resultJsonArray = new JSONArray();
for (ShopMemberDto favoriteUser : favoriteUsers) {
Map<String, Object> favoriteUserMap = new HashMap<String, Object>();
favoriteUserMap.put("shopMemberId",favoriteUser.shopMemberId);
favoriteUserMap.put("shopMemberName",favoriteUser.shopMemberName);
favoriteUserMap.put("profileUrl",favoriteUser.profileUrl);
favoriteUserMap.put("shopMemberId", favoriteUser.shopMemberId);
favoriteUserMap.put("shopMemberName", favoriteUser.shopMemberName);
favoriteUserMap.put("profileUrl", favoriteUser.profileUrl);
JSONObject jsonObject = new JSONObject(favoriteUserMap);
resultJsonArray.put(jsonObject);
}
......@@ -177,8 +177,8 @@ public class CommunicationLogic extends AbstractLogic {
JSONArray resultJsonArray = new JSONArray();
for (GroupDto favoriteGroup : favoriteGroups) {
Map<String, Object> favoriteGroupMap = new HashMap<String, Object>();
favoriteGroupMap.put("groupName",favoriteGroup.groupName);
favoriteGroupMap.put("groupId",favoriteGroup.groupId);
favoriteGroupMap.put("groupName", favoriteGroup.groupName);
favoriteGroupMap.put("groupId", favoriteGroup.groupId);
JSONObject jsonObject = new JSONObject(favoriteGroupMap);
resultJsonArray.put(jsonObject);
}
......@@ -241,7 +241,7 @@ public class CommunicationLogic extends AbstractLogic {
deleteGroupList.add(groupDto);
continue;
}
if ( groupDao.getGroup(groupDto.groupId) == null ) {
if (groupDao.getGroup(groupDto.groupId) == null) {
insertGroupList.add(groupDto);
} else {
updateGroupList.add(groupDto);
......
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