Commit 47e48b13 by Lee Munkyeong

コード整理

parent c523a895
...@@ -109,7 +109,7 @@ public class CommunicationLogic extends AbstractLogic { ...@@ -109,7 +109,7 @@ public class CommunicationLogic extends AbstractLogic {
resultJson.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, shopMemberDto.shopMemberName); resultJson.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, shopMemberDto.shopMemberName);
resultJson.put(ABookCommConstants.KEY.PROFILE_URL, shopMemberDto.profileUrl); resultJson.put(ABookCommConstants.KEY.PROFILE_URL, shopMemberDto.profileUrl);
resultJson.put(ABookCommConstants.KEY.GROUP_PATH_LIST, groupPathList); resultJson.put(ABookCommConstants.KEY.GROUP_PATH_LIST, groupPathList);
if(StringUtil.isNullOrEmpty(shopMemberDto.favoriteRegisterDate)) { if (StringUtil.isNullOrEmpty(shopMemberDto.favoriteRegisterDate)) {
resultJson.put(ABookCommConstants.KEY.IS_FAVORITE, false); resultJson.put(ABookCommConstants.KEY.IS_FAVORITE, false);
} else { } else {
resultJson.put(ABookCommConstants.KEY.IS_FAVORITE, true); resultJson.put(ABookCommConstants.KEY.IS_FAVORITE, true);
...@@ -145,7 +145,7 @@ public class CommunicationLogic extends AbstractLogic { ...@@ -145,7 +145,7 @@ public class CommunicationLogic extends AbstractLogic {
myGroupUserMap.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, groupUser.shopMemberName); myGroupUserMap.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, groupUser.shopMemberName);
myGroupUserMap.put(ABookCommConstants.KEY.PROFILE_URL, groupUser.profileUrl); myGroupUserMap.put(ABookCommConstants.KEY.PROFILE_URL, groupUser.profileUrl);
myGroupUserMap.put(ABookCommConstants.KEY.GROUP_PATH_LIST, groupUser); myGroupUserMap.put(ABookCommConstants.KEY.GROUP_PATH_LIST, groupUser);
if(StringUtil.isNullOrEmpty(groupUser.favoriteRegisterDate)) { if (StringUtil.isNullOrEmpty(groupUser.favoriteRegisterDate)) {
myGroupUserMap.put(ABookCommConstants.KEY.IS_FAVORITE, false); myGroupUserMap.put(ABookCommConstants.KEY.IS_FAVORITE, false);
} else { } else {
myGroupUserMap.put(ABookCommConstants.KEY.IS_FAVORITE, true); myGroupUserMap.put(ABookCommConstants.KEY.IS_FAVORITE, true);
...@@ -171,7 +171,7 @@ public class CommunicationLogic extends AbstractLogic { ...@@ -171,7 +171,7 @@ public class CommunicationLogic extends AbstractLogic {
userMap.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, shopMember.shopMemberName); userMap.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, shopMember.shopMemberName);
userMap.put(ABookCommConstants.KEY.PROFILE_URL, shopMember.profileUrl); userMap.put(ABookCommConstants.KEY.PROFILE_URL, shopMember.profileUrl);
userMap.put(ABookCommConstants.KEY.GROUP_PATH_LIST, groupPathList); userMap.put(ABookCommConstants.KEY.GROUP_PATH_LIST, groupPathList);
if(StringUtil.isNullOrEmpty(shopMember.favoriteRegisterDate)) { if (StringUtil.isNullOrEmpty(shopMember.favoriteRegisterDate)) {
userMap.put(ABookCommConstants.KEY.IS_FAVORITE, false); userMap.put(ABookCommConstants.KEY.IS_FAVORITE, false);
} else { } else {
userMap.put(ABookCommConstants.KEY.IS_FAVORITE, true); userMap.put(ABookCommConstants.KEY.IS_FAVORITE, true);
...@@ -196,7 +196,7 @@ public class CommunicationLogic extends AbstractLogic { ...@@ -196,7 +196,7 @@ public class CommunicationLogic extends AbstractLogic {
userMap.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, shopMember.shopMemberName); userMap.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, shopMember.shopMemberName);
userMap.put(ABookCommConstants.KEY.PROFILE_URL, shopMember.profileUrl); userMap.put(ABookCommConstants.KEY.PROFILE_URL, shopMember.profileUrl);
userMap.put(ABookCommConstants.KEY.GROUP_PATH_LIST, groupPathList); userMap.put(ABookCommConstants.KEY.GROUP_PATH_LIST, groupPathList);
if(StringUtil.isNullOrEmpty(shopMember.favoriteRegisterDate)) { if (StringUtil.isNullOrEmpty(shopMember.favoriteRegisterDate)) {
userMap.put(ABookCommConstants.KEY.IS_FAVORITE, false); userMap.put(ABookCommConstants.KEY.IS_FAVORITE, false);
} else { } else {
userMap.put(ABookCommConstants.KEY.IS_FAVORITE, true); userMap.put(ABookCommConstants.KEY.IS_FAVORITE, true);
...@@ -218,7 +218,7 @@ public class CommunicationLogic extends AbstractLogic { ...@@ -218,7 +218,7 @@ public class CommunicationLogic extends AbstractLogic {
Map<String, Object> groupMap = new HashMap<String, Object>(); Map<String, Object> groupMap = new HashMap<String, Object>();
groupMap.put(ABookCommConstants.KEY.GROUP_NAME, group.groupName); groupMap.put(ABookCommConstants.KEY.GROUP_NAME, group.groupName);
groupMap.put(ABookCommConstants.KEY.GROUP_ID, group.groupId); groupMap.put(ABookCommConstants.KEY.GROUP_ID, group.groupId);
if(StringUtil.isNullOrEmpty(group.favoriteRegisterDate)) { if (StringUtil.isNullOrEmpty(group.favoriteRegisterDate)) {
groupMap.put(ABookCommConstants.KEY.IS_FAVORITE, false); groupMap.put(ABookCommConstants.KEY.IS_FAVORITE, false);
} else { } else {
groupMap.put(ABookCommConstants.KEY.IS_FAVORITE, true); groupMap.put(ABookCommConstants.KEY.IS_FAVORITE, true);
...@@ -328,7 +328,7 @@ public class CommunicationLogic extends AbstractLogic { ...@@ -328,7 +328,7 @@ public class CommunicationLogic extends AbstractLogic {
Map<String, Object> groupTreeMap = new HashMap<String, Object>(); Map<String, Object> groupTreeMap = new HashMap<String, Object>();
groupTreeMap.put(ABookCommConstants.KEY.GROUP_NAME, group.groupName); groupTreeMap.put(ABookCommConstants.KEY.GROUP_NAME, group.groupName);
groupTreeMap.put(ABookCommConstants.KEY.GROUP_ID, group.groupId); groupTreeMap.put(ABookCommConstants.KEY.GROUP_ID, group.groupId);
if(StringUtil.isNullOrEmpty(group.favoriteRegisterDate)) { if (StringUtil.isNullOrEmpty(group.favoriteRegisterDate)) {
groupTreeMap.put(ABookCommConstants.KEY.IS_FAVORITE, false); groupTreeMap.put(ABookCommConstants.KEY.IS_FAVORITE, false);
} else { } else {
groupTreeMap.put(ABookCommConstants.KEY.IS_FAVORITE, true); groupTreeMap.put(ABookCommConstants.KEY.IS_FAVORITE, true);
...@@ -347,7 +347,7 @@ public class CommunicationLogic extends AbstractLogic { ...@@ -347,7 +347,7 @@ public class CommunicationLogic extends AbstractLogic {
shopMemberMap.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, shopMember.shopMemberName); shopMemberMap.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, shopMember.shopMemberName);
shopMemberMap.put(ABookCommConstants.KEY.PROFILE_URL, shopMember.profileUrl); shopMemberMap.put(ABookCommConstants.KEY.PROFILE_URL, shopMember.profileUrl);
shopMemberMap.put(ABookCommConstants.KEY.GROUP_PATH_LIST, groupDao.getUserGroupPathList(shopMember.shopMemberId)); shopMemberMap.put(ABookCommConstants.KEY.GROUP_PATH_LIST, groupDao.getUserGroupPathList(shopMember.shopMemberId));
if(StringUtil.isNullOrEmpty(shopMember.favoriteRegisterDate)) { if (StringUtil.isNullOrEmpty(shopMember.favoriteRegisterDate)) {
shopMemberMap.put(ABookCommConstants.KEY.IS_FAVORITE, false); shopMemberMap.put(ABookCommConstants.KEY.IS_FAVORITE, false);
} else { } else {
shopMemberMap.put(ABookCommConstants.KEY.IS_FAVORITE, true); shopMemberMap.put(ABookCommConstants.KEY.IS_FAVORITE, true);
......
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