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
45fbb74d
Commit
45fbb74d
authored
Apr 22, 2021
by
Kang Donghun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#42612 ルーム非表示後、同じルームを作成し入室して退室すると、一覧に表示されない
parent
60772113
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookCommConstants.java
+5
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ChatRoomDao.java
+3
-2
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/CommunicationLogic.java
+2
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
+3
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookCommConstants.java
View file @
45fbb74d
...
...
@@ -127,6 +127,11 @@ public interface ABookCommConstants {
Integer
JOIN
=
1
;
}
interface
ROOM_VIEW_FLAG
{
Integer
VISIBLE
=
0
;
Integer
INVISIBLE
=
1
;
}
Integer
GROUP_REQUEST_ALL
=
0
;
}
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ChatRoomDao.java
View file @
45fbb74d
...
...
@@ -164,8 +164,9 @@ public class ChatRoomDao extends AbstractDao {
update
(
"update t_chat_room set chat_room_name = ? where chat_room_id = ?"
,
new
Object
[]{
roomName
,
roomId
});
}
public
void
changeRoomViewFlg
(
Integer
roomId
)
{
update
(
"update t_chat_room set view_flg = 1 where chat_room_id = ?"
,
new
String
[]{
""
+
roomId
});
public
void
changeRoomViewFlg
(
Integer
roomId
,
Integer
viewFlg
)
{
Logger
.
d
(
"kdh check "
+
viewFlg
);
update
(
"update t_chat_room set view_flg = ? where chat_room_id = ?"
,
new
Object
[]{
viewFlg
,
roomId
});
}
public
void
insertChatRoom
(
List
<
ChatRoomDto
>
chatRoomDtoList
)
{
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/CommunicationLogic.java
View file @
45fbb74d
...
...
@@ -875,8 +875,8 @@ public class CommunicationLogic extends AbstractLogic {
archiveDao
.
deleteArchiveAllData
();
}
public
void
roomDisplayOff
(
Integer
roomId
)
{
chatRoomDao
.
changeRoomViewFlg
(
roomId
);
public
void
roomDisplayOff
(
Integer
roomId
,
Integer
viewFlg
)
{
chatRoomDao
.
changeRoomViewFlg
(
roomId
,
viewFlg
);
}
public
String
getUserList
(
String
userIdList
)
{
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
View file @
45fbb74d
...
...
@@ -933,6 +933,8 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
roomName
=
chatRoom
.
chatRoomName
;
roomType
=
chatRoom
.
type
.
toString
();
beforeRoomType
=
chatRoom
.
type
.
toString
();
communicationLogic
.
roomDisplayOff
(
roomId
.
intValue
(),
ABookCommConstants
.
FLAG
.
ROOM_VIEW_FLAG
.
VISIBLE
);
mChatWebView
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
@@ -944,7 +946,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
@JavascriptInterface
public
void
roomDisplayOff
()
{
communicationLogic
.
roomDisplayOff
(
roomId
.
intValue
());
communicationLogic
.
roomDisplayOff
(
roomId
.
intValue
()
,
ABookCommConstants
.
FLAG
.
ROOM_VIEW_FLAG
.
INVISIBLE
);
mChatWebView
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
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