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
11a97e36
Commit
11a97e36
authored
Feb 10, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ユーザDAO追加,サーバURL修正
parent
60f5c344
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
6 deletions
+33
-6
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ShopMemberDao.java
+26
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/MShopMember.java
+1
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ShopMemberDto.java
+2
-1
gradle.properties
+4
-4
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ShopMemberDao.java
View file @
11a97e36
...
...
@@ -5,6 +5,7 @@ import java.util.List;
import
jp.agentec.abook.abv.bl.common.db.Cursor
;
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.DateTimeFormat
;
...
...
@@ -53,7 +54,31 @@ public class ShopMemberDao extends AbstractDao {
return
rawQueryGetDto
(
"select * from m_shop_member where shop_member_id=?"
,
new
String
[]{
""
+
shopMemberId
},
ShopMemberDto
.
class
);
}
public
void
insertShopMember
(
ShopMemberDto
dto
)
{
insert
(
"insert into m_shop_member (shop_member_id, shop_member_name, profile_url, favorite_register_date) values (?,?,?,?)"
,
dto
.
getInsertValues
());
insert
(
"insert into m_shop_member (shop_member_id, shop_member_name, profile_url, favorite_register_date, self_flg) values (?,?,?,?,?)"
,
dto
.
getInsertValues
());
}
public
ShopMemberDto
getMyInfo
()
{
return
rawQueryGetDto
(
"select * from m_shop_member where self_flg = 1"
,
null
,
ShopMemberDto
.
class
);
}
public
List
<
ShopMemberDto
>
getfavoriteUserList
()
{
return
rawQueryGetDtoList
(
"select * from m_shop_member where favorite_register_date NOT NULL"
,
null
,
ShopMemberDto
.
class
);
}
public
List
<
ShopMemberDto
>
getUserListByGroupId
(
Integer
groupId
)
{
StringBuffer
sql
=
new
StringBuffer
();
sql
.
append
(
" SELECT "
);
sql
.
append
(
" sm.shop_member_id "
);
sql
.
append
(
" ,sm.shop_member_name "
);
sql
.
append
(
" ,sm.profile_url"
);
sql
.
append
(
" FROM "
);
sql
.
append
(
" m_shop_member AS sm "
);
sql
.
append
(
" INNER JOIN r_shop_member_group AS rsmg "
);
sql
.
append
(
" ON sm.shop_member_id = rsmg.shop_member_id "
);
sql
.
append
(
" WHERE rsmg.group_id =?"
);
sql
.
append
(
" ORDER BY sm.shop_member_name DESC "
);
List
<
ShopMemberDto
>
list
=
rawQueryGetDtoList
(
sql
.
toString
(),
new
String
[]{
""
+
groupId
},
ShopMemberDto
.
class
);
return
list
;
}
public
boolean
updateShopMember
(
MemberInfoDto
dto
)
{
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/MShopMember.java
View file @
11a97e36
...
...
@@ -20,6 +20,7 @@ public class MShopMember extends SQLiteTableScript {
sql
.
append
(
" , shop_member_name VARCHAR(64) "
);
sql
.
append
(
" , profile_url VARCHAR(64) "
);
sql
.
append
(
" , favorite_register_date VARCHAR2(64) "
);
sql
.
append
(
" self_flg INTEGER NOT NULL "
);
sql
.
append
(
" , PRIMARY KEY (shop_member_id) "
);
sql
.
append
(
" ) "
);
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ShopMemberDto.java
View file @
11a97e36
...
...
@@ -7,10 +7,11 @@ public class ShopMemberDto extends AbstractDto {
public
String
shopMemberName
;
public
String
profileUrl
;
public
String
favoriteRegisterDate
;
public
Integer
selfFlg
;
@Override
public
Object
[]
getInsertValues
()
{
return
new
Object
[]
{
shopMemberId
,
shopMemberName
,
profileUrl
,
favoriteRegisterDate
};
return
new
Object
[]
{
shopMemberId
,
shopMemberName
,
profileUrl
,
favoriteRegisterDate
,
selfFlg
};
}
@Override
...
...
gradle.properties
View file @
11a97e36
...
...
@@ -40,12 +40,12 @@ app_versioncode=1
#cms server
#acms_address=http://10.0.2.2:8081/acms
#download_server_address=http://10.0.2.2:8081/acms
acms_address
=
https://chatdev2.a
book.bz
/acms
download_server_address
=
https://chatdev2.a
book.bz
/acms
acms_address
=
https://chatdev2.a
gentec.jp
/acms
download_server_address
=
https://chatdev2.a
gentec.jp
/acms
#syncview server
websocket_server_http_url
=
https://chatdev2.a
book.bz
/v1
websocket_server_ws_url
=
wss://chatdev2.a
book.bz
/v1
websocket_server_http_url
=
https://chatdev2.a
gentec.jp
/v1
websocket_server_ws_url
=
wss://chatdev2.a
gentec.jp
/v1
#WebSocket debug出力
websocket_debug
=
false
...
...
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