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
259e877d
Commit
259e877d
authored
Jan 21, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DBデータ型変更
parent
181ebe40
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
7 deletions
+17
-7
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/RoomListJSON.java
+7
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/MShopMember.java
+1
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TChatMessage.java
+1
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TChatRoom.java
+1
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ChatMessageDto.java
+3
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ChatRoomDto.java
+3
-2
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ShopMemberDto.java
+1
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/RoomListJSON.java
View file @
259e877d
...
...
@@ -9,6 +9,8 @@ import jp.agentec.abook.abv.bl.common.exception.AcmsException;
import
jp.agentec.abook.abv.bl.common.exception.JSONValidationException
;
import
jp.agentec.abook.abv.bl.dto.ChatMessageDto
;
import
jp.agentec.abook.abv.bl.dto.ChatRoomDto
;
import
jp.agentec.adf.util.DateTimeFormat
;
import
jp.agentec.adf.util.DateTimeUtil
;
public
class
RoomListJSON
extends
AcmsCommonJSON
{
private
static
final
String
Body
=
"body"
;
...
...
@@ -64,6 +66,11 @@ public class RoomListJSON extends AcmsCommonJSON {
//TODO Change InsertDate Type
chatMessageDto
.
insertDate
=
lastMessageInfoJSON
.
getString
(
MessageInsertDate
);
if
(
lastMessageInfoJSON
.
has
(
MessageInsertDate
))
{
chatMessageDto
.
insertDate
=
DateTimeUtil
.
toDate
(
lastMessageInfoJSON
.
getString
(
MessageInsertDate
),
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
);
}
chatMessageDto
.
shopMemberId
=
lastMessageInfoJSON
.
getInt
(
ShopMemberId
);
chatMessageDto
.
chatMessageId
=
lastMessageInfoJSON
.
getInt
(
MessageId
);
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/MShopMember.java
View file @
259e877d
...
...
@@ -19,7 +19,7 @@ public class MShopMember extends SQLiteTableScript {
sql
.
append
(
" shop_member_id INTEGER NOT NULL "
);
sql
.
append
(
" , shop_member_name VARCHAR(64) "
);
sql
.
append
(
" , profile_url VARCHAR(64) "
);
sql
.
append
(
" , favorite_register_date
VARCHAR(64)
"
);
sql
.
append
(
" , favorite_register_date
DATETIME
"
);
sql
.
append
(
" , PRIMARY KEY (shop_member_id) "
);
sql
.
append
(
" ) "
);
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TChatMessage.java
View file @
259e877d
...
...
@@ -24,7 +24,7 @@ public class TChatMessage extends SQLiteTableScript {
sql
.
append
(
" , image_name VARCHAR2 "
);
sql
.
append
(
" , download_file_name VARCHAR2 "
);
sql
.
append
(
" , save_path VARCHAR2 "
);
sql
.
append
(
" , insert_date
VARCHAR2
"
);
sql
.
append
(
" , insert_date
DATETIME
"
);
sql
.
append
(
" , PRIMARY KEY (chat_message_id) "
);
sql
.
append
(
" ) "
);
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/tables/TChatRoom.java
View file @
259e877d
...
...
@@ -21,7 +21,7 @@ public class TChatRoom extends SQLiteTableScript {
sql
.
append
(
" , type INTEGER NOT NULL "
);
sql
.
append
(
" , unread_count INTEGER "
);
sql
.
append
(
" , user_count INTEGER "
);
sql
.
append
(
" , favorite_register_date
VARCHAR2(64)
"
);
sql
.
append
(
" , favorite_register_date
DATETIME
"
);
sql
.
append
(
" , PRIMARY KEY (chat_room_id) "
);
sql
.
append
(
" ) "
);
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ChatMessageDto.java
View file @
259e877d
package
jp
.
agentec
.
abook
.
abv
.
bl
.
dto
;
import
java.util.Date
;
public
class
ChatMessageDto
extends
AbstractDto
{
public
Integer
chatMessageId
;
public
Integer
chatRoomId
;
...
...
@@ -9,7 +11,7 @@ public class ChatMessageDto extends AbstractDto {
public
String
imageName
;
public
String
downloadFileName
;
public
String
savePath
;
public
String
insertDate
;
public
Date
insertDate
;
@Override
public
Object
[]
getInsertValues
()
{
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ChatRoomDto.java
View file @
259e877d
package
jp
.
agentec
.
abook
.
abv
.
bl
.
dto
;
import
java.util.Date
;
import
java.util.List
;
public
class
ChatRoomDto
extends
AbstractDto
{
...
...
@@ -7,12 +8,12 @@ public class ChatRoomDto extends AbstractDto {
public
Integer
chatRoomId
;
public
String
chatRoomName
;
public
Integer
type
;
public
String
favoriteRegisterDate
;
public
Date
favoriteRegisterDate
;
public
Integer
unreadCount
;
public
Integer
userCount
;
public
String
message
;
public
Integer
messageType
;
public
String
insertDate
;
public
Date
insertDate
;
public
ChatMessageDto
lastMessageInfo
;
@Override
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/ShopMemberDto.java
View file @
259e877d
...
...
@@ -6,7 +6,7 @@ public class ShopMemberDto extends AbstractDto {
public
Integer
shopMemberId
;
public
String
shopMemberName
;
public
String
profileUrl
;
public
String
favoriteRegisterDate
;
public
Date
favoriteRegisterDate
;
@Override
public
Object
[]
getInsertValues
()
{
...
...
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