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
99e916bc
Commit
99e916bc
authored
Mar 08, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ネームカード修正。
parent
22f66fba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
3 deletions
+32
-3
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookCommConstants.java
+10
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/util/DateUtil.java
+13
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ShopMemberDao.java
+3
-2
ABVJE_BL/src/jp/agentec/adf/net/http/HttpParameterObject.java
+6
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookCommConstants.java
View file @
99e916bc
...
...
@@ -25,6 +25,7 @@ public interface ABookCommConstants {
String
PROFILE_URL
=
"profileUrl"
;
String
GROUP_NAME
=
"groupName"
;
String
GROUP_ID
=
"groupId"
;
String
GROUP_IDS
=
"groupIds"
;
String
GROUP_PATH_LIST
=
"groupPathList"
;
String
CHILD_GROUP_LIST
=
"childGroupList"
;
String
GROUP_USER_LIST
=
"groupUserList"
;
...
...
@@ -49,6 +50,15 @@ public interface ABookCommConstants {
String
LAST_MESSAGE_INFO
=
"lastMessageInfo"
;
String
ROOT_GROUP_ID
=
"rootGroupId"
;
interface
API_KIND
{
String
USER
=
"user"
;
String
ROOM
=
"room"
;
String
GROUP
=
"group"
;
String
CHAT
=
"chat"
;
String
FILE
=
"file"
;
String
COLLABORATION
=
"collaboration"
;
}
}
interface
FLAG
{
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/util/DateUtil.java
0 → 100644
View file @
99e916bc
package
jp
.
agentec
.
abook
.
abv
.
bl
.
common
.
util
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
public
class
DateUtil
{
public
String
getNowByFormat
(
String
format
)
{
SimpleDateFormat
format1
=
new
SimpleDateFormat
(
format
);
Date
time
=
new
Date
();
return
format1
.
format
(
time
);
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ShopMemberDao.java
View file @
99e916bc
...
...
@@ -62,9 +62,10 @@ public class ShopMemberDao extends AbstractDao {
try
{
beginTransaction
();
insert
(
"insert or replace into m_shop_member (shop_member_id, shop_member_name, profile_url, favorite_register_date, self_flg) values (?,?,?,?,?)"
,
dto
.
getInsertValues
());
update
(
" delete from r_shop_member_group WHERE shop_member_id = ? "
,
new
Integer
[]{
dto
.
shopMemberId
});
for
(
Integer
groupId
:
dto
.
groupIdList
)
{
insert
(
"insert or replace into r_shop_member_group (shop_member_id, group_id) values ("
+
dto
.
shopMemberId
+
",?)"
,
dto
.
getGroupIds
()
);
insert
(
"insert or replace into r_shop_member_group (shop_member_id, group_id) values ("
+
dto
.
shopMemberId
+
",?)"
,
new
Integer
[]{
groupId
}
);
}
commit
();
}
catch
(
Exception
e
)
{
...
...
@@ -82,7 +83,7 @@ public class ShopMemberDao extends AbstractDao {
insert
(
"insert or replace into m_shop_member (shop_member_id, shop_member_name, profile_url, favorite_register_date, self_flg) values (?,?,?,?,?)"
,
dto
.
getInsertValues
());
if
(
dto
.
groupIdList
==
null
)
{
continue
;
}
for
(
Integer
groupId
:
dto
.
groupIdList
)
{
insert
(
"insert or replace into r_shop_member_group (shop_member_id, group_id) values ("
+
dto
.
shopMemberId
+
",?)"
,
dto
.
getGroupIds
()
);
insert
(
"insert or replace into r_shop_member_group (shop_member_id, group_id) values ("
+
dto
.
shopMemberId
+
",?)"
,
new
Integer
[]{
groupId
}
);
}
}
commit
();
...
...
ABVJE_BL/src/jp/agentec/adf/net/http/HttpParameterObject.java
View file @
99e916bc
...
...
@@ -4,6 +4,7 @@ import java.lang.reflect.Method;
import
java.net.URLEncoder
;
import
java.util.Map
;
import
jp.agentec.abook.abv.bl.common.constant.ABookCommConstants
;
import
jp.agentec.abook.abv.bl.common.exception.ABVRuntimeException
;
import
jp.agentec.adf.core.ADFObject
;
import
jp.agentec.adf.core.formatter.PropertyNameFormatter
;
...
...
@@ -68,7 +69,11 @@ public abstract class HttpParameterObject extends ADFObject {
Object
value
=
method
.
invoke
(
this
);
if
(
value
!=
null
)
{
sb
.
append
(
URLEncoder
.
encode
(
value
.
toString
(),
encoding
).
replace
(
"+"
,
"%20"
));
if
(
propertyName
.
equals
(
ABookCommConstants
.
KEY
.
GROUP_IDS
))
{
sb
.
append
(
value
.
toString
());
}
else
{
sb
.
append
(
URLEncoder
.
encode
(
value
.
toString
(),
encoding
).
replace
(
"+"
,
"%20"
));
}
}
sb
.
append
(
DelimiterKeyKey
);
...
...
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