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
71204431
Commit
71204431
authored
Feb 25, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
コードレビュー対応
parent
02678fc5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/CommunicationLogic.java
+13
-13
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/CommunicationLogic.java
View file @
71204431
...
...
@@ -117,10 +117,10 @@ public class CommunicationLogic extends AbstractLogic {
ShopMemberDto
myInfo
=
shopMemberDao
.
getMyInfo
();
List
<
String
>
groupPathList
=
groupDao
.
getMyGroupPathList
();
JSONObject
myInfoJson
=
new
JSONObject
();
myInfoJson
.
put
(
"shopMemberId"
,
myInfo
.
shopMemberId
);
myInfoJson
.
put
(
"shopMemberName"
,
myInfo
.
shopMemberName
);
myInfoJson
.
put
(
"profileUrl"
,
myInfo
.
profileUrl
);
myInfoJson
.
put
(
"groupPathList"
,
groupPathList
);
myInfoJson
.
put
(
"shopMemberId"
,
myInfo
.
shopMemberId
);
myInfoJson
.
put
(
"shopMemberName"
,
myInfo
.
shopMemberName
);
myInfoJson
.
put
(
"profileUrl"
,
myInfo
.
profileUrl
);
myInfoJson
.
put
(
"groupPathList"
,
groupPathList
);
String
myInfoStr
=
myInfoJson
.
toString
();
return
myInfoStr
;
}
...
...
@@ -130,9 +130,9 @@ public class CommunicationLogic extends AbstractLogic {
JSONArray
myGroupUsersJson
=
new
JSONArray
();
for
(
ShopMemberDto
myGroupUser
:
myGroupUsers
)
{
Map
<
String
,
Object
>
myGroupUserMap
=
new
HashMap
<
String
,
Object
>();
myGroupUserMap
.
put
(
"shopMemberId"
,
myGroupUser
.
shopMemberId
);
myGroupUserMap
.
put
(
"shopMemberName"
,
myGroupUser
.
shopMemberName
);
myGroupUserMap
.
put
(
"profileUrl"
,
myGroupUser
.
profileUrl
);
myGroupUserMap
.
put
(
"shopMemberId"
,
myGroupUser
.
shopMemberId
);
myGroupUserMap
.
put
(
"shopMemberName"
,
myGroupUser
.
shopMemberName
);
myGroupUserMap
.
put
(
"profileUrl"
,
myGroupUser
.
profileUrl
);
JSONObject
jsonObject
=
new
JSONObject
(
myGroupUserMap
);
myGroupUsersJson
.
put
(
jsonObject
);
}
...
...
@@ -159,9 +159,9 @@ public class CommunicationLogic extends AbstractLogic {
JSONArray
resultJsonArray
=
new
JSONArray
();
for
(
ShopMemberDto
favoriteUser
:
favoriteUsers
)
{
Map
<
String
,
Object
>
favoriteUserMap
=
new
HashMap
<
String
,
Object
>();
favoriteUserMap
.
put
(
"shopMemberId"
,
favoriteUser
.
shopMemberId
);
favoriteUserMap
.
put
(
"shopMemberName"
,
favoriteUser
.
shopMemberName
);
favoriteUserMap
.
put
(
"profileUrl"
,
favoriteUser
.
profileUrl
);
favoriteUserMap
.
put
(
"shopMemberId"
,
favoriteUser
.
shopMemberId
);
favoriteUserMap
.
put
(
"shopMemberName"
,
favoriteUser
.
shopMemberName
);
favoriteUserMap
.
put
(
"profileUrl"
,
favoriteUser
.
profileUrl
);
JSONObject
jsonObject
=
new
JSONObject
(
favoriteUserMap
);
resultJsonArray
.
put
(
jsonObject
);
}
...
...
@@ -177,8 +177,8 @@ public class CommunicationLogic extends AbstractLogic {
JSONArray
resultJsonArray
=
new
JSONArray
();
for
(
GroupDto
favoriteGroup
:
favoriteGroups
)
{
Map
<
String
,
Object
>
favoriteGroupMap
=
new
HashMap
<
String
,
Object
>();
favoriteGroupMap
.
put
(
"groupName"
,
favoriteGroup
.
groupName
);
favoriteGroupMap
.
put
(
"groupId"
,
favoriteGroup
.
groupId
);
favoriteGroupMap
.
put
(
"groupName"
,
favoriteGroup
.
groupName
);
favoriteGroupMap
.
put
(
"groupId"
,
favoriteGroup
.
groupId
);
JSONObject
jsonObject
=
new
JSONObject
(
favoriteGroupMap
);
resultJsonArray
.
put
(
jsonObject
);
}
...
...
@@ -241,7 +241,7 @@ public class CommunicationLogic extends AbstractLogic {
deleteGroupList
.
add
(
groupDto
);
continue
;
}
if
(
groupDao
.
getGroup
(
groupDto
.
groupId
)
==
null
)
{
if
(
groupDao
.
getGroup
(
groupDto
.
groupId
)
==
null
)
{
insertGroupList
.
add
(
groupDto
);
}
else
{
updateGroupList
.
add
(
groupDto
);
...
...
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