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
2219b13b
Commit
2219b13b
authored
Apr 20, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ホームに戻ってからまたCommに入るとテーブルが初期化される問題対応
parent
7ed25cb6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
+12
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ChatRoomDao.java
+4
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/CommunicationLogic.java
+7
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
+1
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ChatRoomDao.java
View file @
2219b13b
...
...
@@ -8,6 +8,7 @@ import jp.agentec.abook.abv.bl.common.log.Logger;
import
jp.agentec.abook.abv.bl.dto.ChatRoomDto
;
import
jp.agentec.abook.abv.bl.dto.MemberInfoDto
;
import
jp.agentec.abook.abv.bl.dto.ShopMemberDto
;
import
jp.agentec.adf.util.CollectionUtil
;
import
jp.agentec.adf.util.StringUtil
;
public
class
ChatRoomDao
extends
AbstractDao
{
...
...
@@ -170,10 +171,13 @@ public class ChatRoomDao extends AbstractDao {
public
void
insertChatRoom
(
List
<
ChatRoomDto
>
chatRoomDtoList
)
{
try
{
beginTransaction
();
ArrayList
<
Integer
>
roomIdList
=
new
ArrayList
<
Integer
>();
for
(
ChatRoomDto
chatRoomDto
:
chatRoomDtoList
)
{
roomIdList
.
add
(
chatRoomDto
.
chatRoomId
);
insertChatRoom
(
chatRoomDto
);
insertChatRoomUsers
(
chatRoomDto
.
attendUsers
,
chatRoomDto
.
chatRoomId
);
}
update
(
"delete from t_chat_room where chat_room_id NOT IN ("
+
StringUtil
.
join
(
" , "
,
roomIdList
)
+
")"
,
null
);
commit
();
}
catch
(
Exception
e
)
{
rollback
();
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/CommunicationLogic.java
View file @
2219b13b
...
...
@@ -865,6 +865,13 @@ public class CommunicationLogic extends AbstractLogic {
archiveDao
.
deleteArchiveAllData
();
}
public
void
initChatData
()
{
chatGroupDao
.
deleteChatGroup
();
chatMessageDao
.
deleteChatMessage
();
shopMemberDao
.
deleteShopMember
();
archiveDao
.
deleteArchiveAllData
();
}
public
void
roomDisplayOff
(
Integer
roomId
)
{
chatRoomDao
.
changeRoomViewFlg
(
roomId
);
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
View file @
2219b13b
...
...
@@ -159,7 +159,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
if
(
AcmsClient
.
getInstance
(
ABVEnvironment
.
getInstance
().
networkAdapter
).
checkSid
(
sid
))
{
isOnline
=
true
;
chatWebviewUrl
=
CHAT_PAGE_URL
;
communicationLogic
.
clearAll
Data
();
communicationLogic
.
initChat
Data
();
updateMyInfoFromServer
();
updateAllGroupInfo
();
updateFavoriteInfo
();
...
...
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