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
dacf27c7
Commit
dacf27c7
authored
Feb 22, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DM,GROUP検索
parent
ec57a518
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
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
-2
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ChatRoomDao.java
View file @
dacf27c7
...
...
@@ -62,7 +62,7 @@ public class ChatRoomDao extends AbstractDao {
return
dto
;
}
public
List
<
ChatRoomDto
>
getAllChatRoom
()
{
public
List
<
ChatRoomDto
>
getAllChatRoom
(
Integer
roomType
)
{
StringBuffer
sql
=
new
StringBuffer
();
sql
.
append
(
" SELECT "
);
sql
.
append
(
" cr.chat_room_id "
);
...
...
@@ -79,9 +79,10 @@ public class ChatRoomDao extends AbstractDao {
sql
.
append
(
" LEFT JOIN "
);
sql
.
append
(
" ( SELECT max(insert_date) insert_date, message, message_type, chat_room_id FROM t_chat_message GROUP BY chat_room_id ) AS cm "
);
sql
.
append
(
" ON cr.chat_room_id = cm.chat_room_id "
);
sql
.
append
(
" WHERE cr.type =? "
);
sql
.
append
(
" GROUP BY cr.chat_room_id "
);
sql
.
append
(
" ORDER BY unread_count, cm.insert_date DESC "
);
List
<
ChatRoomDto
>
list
=
rawQueryGetDtoList
(
sql
.
toString
(),
n
ull
,
ChatRoomDto
.
class
);
List
<
ChatRoomDto
>
list
=
rawQueryGetDtoList
(
sql
.
toString
(),
n
ew
String
[]{
""
+
roomType
}
,
ChatRoomDto
.
class
);
return
list
;
}
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/CommunicationLogic.java
View file @
dacf27c7
...
...
@@ -69,8 +69,8 @@ public class CommunicationLogic extends AbstractLogic {
/*package*/
CommunicationLogic
()
{
}
public
String
getChatRoomList
()
{
List
<
ChatRoomDto
>
chatRoomList
=
chatRoomDao
.
getAllChatRoom
();
public
String
getChatRoomList
(
Integer
roomType
)
{
List
<
ChatRoomDto
>
chatRoomList
=
chatRoomDao
.
getAllChatRoom
(
roomType
);
JSONArray
resultJsonArray
=
new
JSONArray
();
for
(
ChatRoomDto
chatRoomDto
:
chatRoomList
)
{
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
View file @
dacf27c7
...
...
@@ -684,8 +684,9 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
}
@JavascriptInterface
public
String
getRoomList
()
{
String
chatRoomListStr
=
communicationLogic
.
getChatRoomList
();
public
String
getRoomList
(
String
roomType
)
{
String
chatRoomListStr
=
communicationLogic
.
getChatRoomList
(
Integer
.
parseInt
(
roomType
));
return
chatRoomListStr
;
}
...
...
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