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
870267ce
Commit
870267ce
authored
Mar 16, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一時保存の作業を再度開いたときに、DBの内容をロックが成功した状態にしてしまっていたのを修正。
parent
66104d4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
21 deletions
+44
-21
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/LockReportLogic.java
+40
-17
gradle.properties
+4
-4
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/LockReportLogic.java
View file @
870267ce
...
@@ -31,7 +31,7 @@ public class LockReportLogic extends AbstractLogic {
...
@@ -31,7 +31,7 @@ public class LockReportLogic extends AbstractLogic {
public
Result
lock
(
String
taskKey
,
Long
taskReportId
,
Date
reportStartDate
)
{
public
Result
lock
(
String
taskKey
,
Long
taskReportId
,
Date
reportStartDate
)
{
Result
r
=
sendLockReport
(
taskKey
,
taskReportId
,
reportStartDate
);
Result
r
=
sendLockReport
(
taskKey
,
taskReportId
,
reportStartDate
);
if
(
r
.
result
==
0
)
{
if
(
r
.
result
==
0
)
{
updateLocalDB
(
taskKey
,
taskReportId
,
reportStartDate
,
r
.
getExtParam
()
.
reportStatus
);
updateLocalDB
(
taskKey
,
taskReportId
,
reportStartDate
,
r
.
getExtParam
());
}
}
return
r
;
return
r
;
}
}
...
@@ -69,18 +69,17 @@ public class LockReportLogic extends AbstractLogic {
...
@@ -69,18 +69,17 @@ public class LockReportLogic extends AbstractLogic {
String
taskKey
,
String
taskKey
,
Long
taskReportId
,
Long
taskReportId
,
Date
reportStartDate
,
Date
reportStartDate
,
int
reportStatus
ExtParam
extParam
)
{
)
{
MemberInfoDto
member
=
cache
.
getMemberInfo
();
TaskReportDao
dao
=
AbstractDao
.
getDao
(
TaskReportDao
.
class
);
TaskReportDao
dao
=
AbstractDao
.
getDao
(
TaskReportDao
.
class
);
dao
.
updateReportLock
(
dao
.
updateReportLock
(
taskKey
,
taskKey
,
taskReportId
,
taskReportId
,
reportStartDate
,
reportStartDate
,
reportStatus
,
extParam
.
reportStatus
,
member
.
login
Id
,
extParam
.
reportLockUser
Id
,
member
.
memb
erName
,
extParam
.
reportLockUs
erName
,
new
Date
()
extParam
.
reportLockTime
);
);
}
}
...
@@ -94,16 +93,40 @@ public class LockReportLogic extends AbstractLogic {
...
@@ -94,16 +93,40 @@ public class LockReportLogic extends AbstractLogic {
static
Result
succsess
(
LockReportJSON
reportJSON
,
Long
taskReportId
,
Date
reportStartDate
)
{
static
Result
succsess
(
LockReportJSON
reportJSON
,
Long
taskReportId
,
Date
reportStartDate
)
{
// 成功したとき
// 成功したとき
Result
result
=
new
Result
();
Result
result
=
new
Result
();
result
.
result
=
reportJSON
.
httpStatus
==
HTTP_OK
||
reportJSON
.
httpStatus
==
HTTP_NOT_FOUND
?
0
:
1
;
if
(
reportJSON
.
httpStatus
==
HTTP_OK
)
{
result
.
message
=
""
;
result
.
result
=
0
;
result
.
extParam
=
new
ExtParam
(
result
.
message
=
""
;
reportJSON
.
httpStatus
==
HTTP_OK
?
reportJSON
.
getReportStatus
()
:
0
,
result
.
extParam
=
new
ExtParam
(
reportJSON
.
getReportLockUserId
(),
reportJSON
.
getReportStatus
(),
reportJSON
.
getReportLockUserName
(),
reportJSON
.
getReportLockUserId
(),
reportJSON
.
getReportLockTime
(),
reportJSON
.
getReportLockUserName
(),
taskReportId
,
reportJSON
.
getReportLockTime
(),
reportStartDate
taskReportId
,
);
reportStartDate
);
}
else
if
(
reportJSON
.
httpStatus
==
HTTP_NOT_FOUND
)
{
result
.
result
=
0
;
result
.
message
=
""
;
result
.
extParam
=
new
ExtParam
(
0
,
null
,
null
,
null
,
taskReportId
,
reportStartDate
);
}
else
{
result
.
result
=
1
;
result
.
message
=
""
;
result
.
extParam
=
new
ExtParam
(
0
,
null
,
null
,
null
,
taskReportId
,
reportStartDate
);
}
return
result
;
return
result
;
}
}
...
...
gradle.properties
View file @
870267ce
...
@@ -39,14 +39,14 @@ app_versioncode=1
...
@@ -39,14 +39,14 @@ app_versioncode=1
#cms server
#cms server
#acms_address=https://check.abookcloud.com/acms
#acms_address=https://check.abookcloud.com/acms
#download_server_address=https://check.abookcloud.com/acms
#download_server_address=https://check.abookcloud.com/acms
acms_address
=
https://a
book188-1.abook.bz
/acms
acms_address
=
https://a
tform-st.sato.co.jp
/acms
download_server_address
=
https://a
book188-1.abook.bz
/acms
download_server_address
=
https://a
tform-st.sato.co.jp
/acms
#acms_address=http://10.0.2.2:8080/acms
#acms_address=http://10.0.2.2:8080/acms
#download_server_address=http://10.0.2.2:8080/acms
#download_server_address=http://10.0.2.2:8080/acms
#syncview server
#syncview server
websocket_server_http_url
=
https://a
book188-1.abook.bz
/v1
websocket_server_http_url
=
https://a
tform-st.sato.co.jp
/v1
websocket_server_ws_url
=
wss://a
book188-1.abook.bz
/v1
websocket_server_ws_url
=
wss://a
tform-st.sato.co.jp
/v1
#WebSocket debug出力
#WebSocket debug出力
websocket_debug
=
false
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