Commit f70a5a8b by Lee Munkyeong

コードレビュー対応。

parent 842169d8
...@@ -566,8 +566,8 @@ public class GroupDao extends AbstractDao { ...@@ -566,8 +566,8 @@ public class GroupDao extends AbstractDao {
return rawQueryGetDtoList("select * from m_group where user_group_flg = 1 ORDER BY group_name", null, GroupDto.class); return rawQueryGetDtoList("select * from m_group where user_group_flg = 1 ORDER BY group_name", null, GroupDto.class);
} }
public List<GroupDto> geMyGroups() { public List<GroupDto> getMyGroups() {
return rawQueryGetDtoList("select * from m_group where group_id IN (select group_id from m_shop_member sm inner join r_shop_member_group rmg on sm.shop_member_id = rmg.shop_member_id where sm.self_flg = 1) ORDER BY group_name", null, GroupDto.class); return rawQueryGetDtoList("select * from m_group where group_id IN (select group_id from m_shop_member sm inner join r_shop_member_group rmg on sm.shop_member_id = rmg.shop_member_id where sm.self_flg = 1) ORDER BY group_name ASC", null, GroupDto.class);
} }
/** /**
......
...@@ -179,7 +179,7 @@ public class CommunicationLogic extends AbstractLogic { ...@@ -179,7 +179,7 @@ public class CommunicationLogic extends AbstractLogic {
} }
public String getMyGroupUsers() { public String getMyGroupUsers() {
List<GroupDto> myGroupIds = groupDao.geMyGroups(); List<GroupDto> myGroupIds = groupDao.getMyGroups();
JSONArray myGroupUsersJson = new JSONArray(); JSONArray myGroupUsersJson = new JSONArray();
for (GroupDto groupDto : myGroupIds) { for (GroupDto groupDto : myGroupIds) {
JSONObject groupUserJson = new JSONObject(); JSONObject groupUserJson = new JSONObject();
...@@ -210,7 +210,7 @@ public class CommunicationLogic extends AbstractLogic { ...@@ -210,7 +210,7 @@ public class CommunicationLogic extends AbstractLogic {
} }
public String getMyGroupUsersNotInRoom(Integer roomId) { public String getMyGroupUsersNotInRoom(Integer roomId) {
List<GroupDto> myGroupIds = groupDao.geMyGroups(); List<GroupDto> myGroupIds = groupDao.getMyGroups();
JSONArray myGroupUsersJson = new JSONArray(); JSONArray myGroupUsersJson = new JSONArray();
for (GroupDto groupDto : myGroupIds) { for (GroupDto groupDto : myGroupIds) {
JSONObject groupUserJson = new JSONObject(); JSONObject groupUserJson = new JSONObject();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment