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
775a324f
Commit
775a324f
authored
Jun 14, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
未読数ロジック修正
parent
63c4319e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookCommConstants.java
+1
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ChatMessageDao.java
+2
-1
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
+1
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookCommConstants.java
View file @
775a324f
...
@@ -146,7 +146,7 @@ public interface ABookCommConstants {
...
@@ -146,7 +146,7 @@ public interface ABookCommConstants {
interface
SIZE
{
interface
SIZE
{
Integer
MAX_FAVORITE_COUNT
=
100
;
Integer
MAX_FAVORITE_COUNT
=
100
;
Integer
MESSAGE_PAGING_SIZE
=
2
0
;
Integer
MESSAGE_PAGING_SIZE
=
10
0
;
}
}
String
FILE_SAVE_PATH
=
"/data/user/0/jp.co.agentec.abookplus.check/files/"
;
String
FILE_SAVE_PATH
=
"/data/user/0/jp.co.agentec.abookplus.check/files/"
;
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ChatMessageDao.java
View file @
775a324f
...
@@ -209,8 +209,9 @@ public class ChatMessageDao extends AbstractCommunicationDao {
...
@@ -209,8 +209,9 @@ public class ChatMessageDao extends AbstractCommunicationDao {
return
count
>
0
;
return
count
>
0
;
}
}
public
void
updatUnreadCount
(
List
<
ChatMessageDto
>
messageDtoList
)
{
public
void
updatUnreadCount
(
List
<
ChatMessageDto
>
messageDtoList
,
String
roomId
)
{
beginTransaction
();
beginTransaction
();
update
(
"update t_chat_message set unread_count = 0 where chat_room_id=?"
,
new
String
[]{
""
+
roomId
});
for
(
ChatMessageDto
messageDto
:
messageDtoList
)
{
for
(
ChatMessageDto
messageDto
:
messageDtoList
)
{
update
(
"update t_chat_message set unread_count = ? where chat_message_id=?"
,
new
String
[]{
""
+
messageDto
.
unreadCount
,
""
+
messageDto
.
chatMessageId
});
update
(
"update t_chat_message set unread_count = ? where chat_message_id=?"
,
new
String
[]{
""
+
messageDto
.
unreadCount
,
""
+
messageDto
.
chatMessageId
});
}
}
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/CommunicationLogic.java
View file @
775a324f
...
@@ -1119,7 +1119,7 @@ public class CommunicationLogic extends AbstractLogic {
...
@@ -1119,7 +1119,7 @@ public class CommunicationLogic extends AbstractLogic {
return
map
;
return
map
;
}
}
public
void
updateUnreadCount
(
List
<
ChatMessageDto
>
messageList
)
{
public
void
updateUnreadCount
(
List
<
ChatMessageDto
>
messageList
,
String
roomId
)
{
chatMessageDao
.
updatUnreadCount
(
messageList
);
chatMessageDao
.
updatUnreadCount
(
messageList
,
roomId
);
}
}
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
View file @
775a324f
...
@@ -2010,7 +2010,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
...
@@ -2010,7 +2010,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
public
void
updateUnreadCount
()
throws
NetworkDisconnectedException
,
AcmsException
{
public
void
updateUnreadCount
()
throws
NetworkDisconnectedException
,
AcmsException
{
UnreadCountJSON
resultJson
=
AcmsClient
.
getInstance
(
ABVEnvironment
.
getInstance
().
networkAdapter
).
getMessagesUnreadCount
(
sid
,
Integer
.
toString
(
roomId
.
intValue
()));
UnreadCountJSON
resultJson
=
AcmsClient
.
getInstance
(
ABVEnvironment
.
getInstance
().
networkAdapter
).
getMessagesUnreadCount
(
sid
,
Integer
.
toString
(
roomId
.
intValue
()));
communicationLogic
.
updateUnreadCount
(
resultJson
.
chatMessageDtoArrayList
);
communicationLogic
.
updateUnreadCount
(
resultJson
.
chatMessageDtoArrayList
,
Integer
.
toString
(
roomId
.
intValue
())
);
}
}
public
void
updateMessageFromMessageId
(
String
messageId
)
throws
NetworkDisconnectedException
,
AcmsException
{
public
void
updateMessageFromMessageId
(
String
messageId
)
throws
NetworkDisconnectedException
,
AcmsException
{
...
...
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