Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
92a3653d
Commit
92a3653d
authored
Apr 17, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'features/#552_タブーを変更すると既存参加者が招待リストに表示される。' into 'features/abcomm_sp6'
招待画面バグ修正 See merge request
!120
parents
e9ab5777
19a381a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
1 deletions
+82
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/CommunicationLogic.java
+75
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
+7
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/CommunicationLogic.java
View file @
92a3653d
...
...
@@ -604,6 +604,81 @@ public class CommunicationLogic extends AbstractLogic {
return
groupSearchDataStr
;
}
public
String
getGroupSearchDataForAddUser
(
Integer
groupId
,
Integer
roomId
)
{
//レスポンスになるJSON
JSONObject
groupSearchData
=
new
JSONObject
();
//パラメータグループIDが0であれば自分のグループ情報を取得。
ChatGroupDto
myGroup
=
chatGroupDao
.
getMyGroups
().
get
(
0
);
ChatGroupDto
rootGroup
=
chatGroupDao
.
getRootGroup
();
Integer
targetGroupId
;
if
(
groupId
==
0
)
{
targetGroupId
=
rootGroup
.
groupId
;
}
else
{
targetGroupId
=
groupId
;
}
ChatGroupDto
parentGroup
=
chatGroupDao
.
getParentGroup
(
targetGroupId
);
if
(
parentGroup
!=
null
)
{
groupSearchData
.
put
(
ABookCommConstants
.
KEY
.
PARENT_GROUP_ID
,
parentGroup
.
groupId
);
}
if
(
rootGroup
!=
null
)
{
groupSearchData
.
put
(
ABookCommConstants
.
KEY
.
ROOT_GROUP_ID
,
rootGroup
.
groupId
);
}
//グループ
List
<
ChatGroupDto
>
groupPathList
=
chatGroupDao
.
getGroupTree
(
targetGroupId
);
JSONArray
groupPathJSONArray
=
new
JSONArray
();
for
(
ChatGroupDto
group
:
groupPathList
)
{
Map
<
String
,
Object
>
groupTreeMap
=
new
HashMap
<
String
,
Object
>();
groupTreeMap
.
put
(
ABookCommConstants
.
KEY
.
GROUP_NAME
,
group
.
groupName
);
groupTreeMap
.
put
(
ABookCommConstants
.
KEY
.
GROUP_ID
,
group
.
groupId
);
JSONObject
jsonObject
=
new
JSONObject
(
groupTreeMap
);
groupPathJSONArray
.
put
(
jsonObject
);
}
groupSearchData
.
put
(
ABookCommConstants
.
KEY
.
GROUP_PATH_LIST
,
groupPathJSONArray
);
List
<
ChatGroupDto
>
childGroupList
=
chatGroupDao
.
getGroupChildList
(
targetGroupId
);
JSONArray
childGroupJSONArray
=
new
JSONArray
();
for
(
ChatGroupDto
group
:
childGroupList
)
{
Map
<
String
,
Object
>
groupTreeMap
=
new
HashMap
<
String
,
Object
>();
groupTreeMap
.
put
(
ABookCommConstants
.
KEY
.
GROUP_NAME
,
group
.
groupName
);
groupTreeMap
.
put
(
ABookCommConstants
.
KEY
.
GROUP_ID
,
group
.
groupId
);
if
(
StringUtil
.
isNullOrEmpty
(
group
.
favoriteRegisterDate
))
{
groupTreeMap
.
put
(
ABookCommConstants
.
KEY
.
IS_FAVORITE
,
false
);
}
else
{
groupTreeMap
.
put
(
ABookCommConstants
.
KEY
.
IS_FAVORITE
,
true
);
}
JSONObject
jsonObject
=
new
JSONObject
(
groupTreeMap
);
childGroupJSONArray
.
put
(
jsonObject
);
}
groupSearchData
.
put
(
ABookCommConstants
.
KEY
.
CHILD_GROUP_LIST
,
childGroupJSONArray
);
List
<
ShopMemberDto
>
shopMemberList
=
shopMemberDao
.
getUserListNotInRoomByGroupId
(
targetGroupId
,
roomId
);
JSONArray
shopMemberJSONArray
=
new
JSONArray
();
for
(
ShopMemberDto
shopMember
:
shopMemberList
)
{
Map
<
String
,
Object
>
shopMemberMap
=
new
HashMap
<
String
,
Object
>();
shopMemberMap
.
put
(
ABookCommConstants
.
KEY
.
SHOP_MEMBER_ID
,
shopMember
.
shopMemberId
);
shopMemberMap
.
put
(
ABookCommConstants
.
KEY
.
SHOP_MEMBER_NAME
,
shopMember
.
shopMemberName
);
shopMemberMap
.
put
(
ABookCommConstants
.
KEY
.
PROFILE_URL
,
getProfileUrlPath
(
shopMember
.
profileUrl
));
shopMemberMap
.
put
(
ABookCommConstants
.
KEY
.
CHECKED
,
""
);
shopMemberMap
.
put
(
ABookCommConstants
.
KEY
.
GROUP_PATH_LIST
,
chatGroupDao
.
getUserGroupPathList
(
shopMember
.
shopMemberId
));
if
(
StringUtil
.
isNullOrEmpty
(
shopMember
.
favoriteRegisterDate
))
{
shopMemberMap
.
put
(
ABookCommConstants
.
KEY
.
IS_FAVORITE
,
false
);
}
else
{
shopMemberMap
.
put
(
ABookCommConstants
.
KEY
.
IS_FAVORITE
,
true
);
}
JSONObject
jsonObject
=
new
JSONObject
(
shopMemberMap
);
shopMemberJSONArray
.
put
(
jsonObject
);
}
groupSearchData
.
put
(
ABookCommConstants
.
KEY
.
GROUP_USER_LIST
,
shopMemberJSONArray
);
String
groupSearchDataStr
=
groupSearchData
.
toString
();
return
groupSearchDataStr
;
}
public
void
insertChatRoomList
(
List
<
ChatRoomDto
>
roomList
)
{
List
<
ChatMessageDto
>
insertMessageList
=
new
ArrayList
<
ChatMessageDto
>();
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
View file @
92a3653d
...
...
@@ -821,7 +821,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
@JavascriptInterface
public
void
createChatRoom
(
String
roomType
,
String
userIdList
,
String
encodedRoomName
,
String
screenFlg
)
throws
NetworkDisconnectedException
,
AcmsException
{
CreatedRoomJSON
resultJson
=
AcmsClient
.
getInstance
(
ABVEnvironment
.
getInstance
().
networkAdapter
).
createRoom
(
sid
,
roomType
,
userIdList
,
encodedRoomName
,
loginId
);
if
(
ABookCommConstants
.
FLAG
.
SCREEN_FLG
.
MAKE_ROOM
.
equals
(
Integer
.
parseInt
(
screenFlg
)))
{
if
(
ABookCommConstants
.
FLAG
.
SCREEN_FLG
.
MAKE_ROOM
.
equals
(
Integer
.
parseInt
(
screenFlg
)))
{
ChatRoomDto
chatRoomDto
=
communicationLogic
.
getChatRoom
(
resultJson
.
chatRoomDto
.
chatRoomId
);
if
(
chatRoomDto
!=
null
)
{
mChatWebView
.
post
(
new
Runnable
()
{
...
...
@@ -1014,6 +1014,12 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
}
@JavascriptInterface
public
String
getGroupInfoForAddUser
(
String
groupId
)
{
String
groupInfoStr
=
communicationLogic
.
getGroupSearchDataForAddUser
(
Integer
.
parseInt
(
groupId
),
roomId
.
intValue
());
return
groupInfoStr
;
}
@JavascriptInterface
public
String
getNameCardData
(
String
shopMemberId
)
{
String
nameCardStr
=
communicationLogic
.
getNameCardInfo
(
Integer
.
parseInt
(
shopMemberId
));
return
nameCardStr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment