Commit ef33c584 by Lee Daehyun

アーカイブ参加者削除した場合表示されないエラー修正

parent 73081fd3
......@@ -987,9 +987,15 @@ public class CommunicationLogic extends AbstractLogic {
public String getUserInfo(Integer shopMemberId) {
ShopMemberDto shopMemberDto = shopMemberDao.getShopMember(shopMemberId);
Map<String, Object> userMap = new HashMap<String, Object>();
userMap.put(ABookCommConstants.KEY.SHOP_MEMBER_ID, shopMemberDto.shopMemberId);
userMap.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, shopMemberDto.shopMemberName);
userMap.put(ABookCommConstants.KEY.PROFILE_URL, shopMemberDto.profileUrl);
if (shopMemberDto == null) {
userMap.put(ABookCommConstants.KEY.SHOP_MEMBER_ID, null);
userMap.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, "不明");
userMap.put(ABookCommConstants.KEY.PROFILE_URL, null);
} else {
userMap.put(ABookCommConstants.KEY.SHOP_MEMBER_ID, shopMemberDto.shopMemberId);
userMap.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, shopMemberDto.shopMemberName);
userMap.put(ABookCommConstants.KEY.PROFILE_URL, shopMemberDto.profileUrl);
}
JSONObject jsonObject = new JSONObject(userMap);
return jsonObject.toString();
}
......
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