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
8ee89d49
Commit
8ee89d49
authored
Feb 14, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
アンロック時に、ローカルのDBの更新ができていなかった不具合を修正した。
parent
60cd4c8a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
+10
-5
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/LockReportLogic.java
+3
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/UnlockReportLogic.java
+3
-2
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
View file @
8ee89d49
...
...
@@ -228,6 +228,7 @@ public class TaskReportDao extends AbstractDao {
*/
public
void
updateReportLock
(
String
taskKey
,
Long
taskReportId
,
Date
reportStartDate
,
int
reportStatus
,
String
reportLockUserId
,
...
...
@@ -243,20 +244,24 @@ public class TaskReportDao extends AbstractDao {
sql
.
append
(
" report_lock_user_id=?, "
);
sql
.
append
(
" report_lock_user_name=?, "
);
sql
.
append
(
" report_lock_time=? "
);
sql
.
append
(
" WHERE task_key=? "
);
if
(
reportStartDate
!=
null
)
{
sql
.
append
(
"AND datetime(report_start_date)=datetime(?) "
);
sql
.
append
(
" WHERE task_report_id=? "
);
sql
.
append
(
" AND datetime(report_start_date)=datetime(?) "
);
}
else
{
sql
.
append
(
" WHERE task_key=? "
);
}
if
(
loginId
!=
null
)
{
sql
.
append
(
" AND report_lock_user_id
<>
? "
);
//自分以外のロックを変更しないため
sql
.
append
(
" AND report_lock_user_id
=
? "
);
//自分以外のロックを変更しないため
}
args
.
add
(
reportStatus
);
args
.
add
(
reportLockUserId
);
args
.
add
(
reportLockUserName
);
args
.
add
(
reportLockTime
);
args
.
add
(
taskKey
);
if
(
reportStartDate
!=
null
)
{
args
.
add
(
reportStartDate
);
args
.
add
(
taskReportId
);
args
.
add
(
DateTimeUtil
.
toStringInTimeZone
(
reportStartDate
,
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
,
"UTC"
));
}
else
{
args
.
add
(
taskKey
);
}
if
(
loginId
!=
null
)
{
args
.
add
(
loginId
);
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/LockReportLogic.java
View file @
8ee89d49
...
...
@@ -30,7 +30,7 @@ public class LockReportLogic extends AbstractLogic {
public
Result
lock
(
String
taskKey
,
Long
taskReportId
,
Date
reportStartDate
)
{
Result
r
=
sendLockReport
(
taskKey
,
taskReportId
,
reportStartDate
);
if
(
r
.
result
==
0
)
{
updateLocalDB
(
taskKey
,
reportStartDate
,
r
.
getExtParam
().
reportStatus
);
updateLocalDB
(
taskKey
,
taskReportId
,
reportStartDate
,
r
.
getExtParam
().
reportStatus
);
}
return
r
;
}
...
...
@@ -66,6 +66,7 @@ public class LockReportLogic extends AbstractLogic {
private
void
updateLocalDB
(
String
taskKey
,
Long
taskReportId
,
Date
reportStartDate
,
int
reportStatus
)
{
...
...
@@ -73,6 +74,7 @@ public class LockReportLogic extends AbstractLogic {
TaskReportDao
dao
=
AbstractDao
.
getDao
(
TaskReportDao
.
class
);
dao
.
updateReportLock
(
taskKey
,
taskReportId
,
reportStartDate
,
reportStatus
,
member
.
loginId
,
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/UnlockReportLogic.java
View file @
8ee89d49
...
...
@@ -17,7 +17,6 @@ import jp.agentec.adf.util.DateTimeUtil;
import
static
java
.
net
.
HttpURLConnection
.
HTTP_OK
;
import
static
jp
.
agentec
.
abook
.
abv
.
bl
.
acms
.
client
.
json
.
OperationDataJSON
.
ReportStartDate
;
import
static
jp
.
agentec
.
abook
.
abv
.
bl
.
acms
.
client
.
json
.
OperationDataJSON
.
ReportStatus
;
import
static
jp
.
agentec
.
abook
.
abv
.
bl
.
acms
.
client
.
json
.
OperationDataJSON
.
TaskKey
;
import
static
jp
.
agentec
.
abook
.
abv
.
bl
.
acms
.
client
.
json
.
OperationDataJSON
.
TaskReportId
;
public
class
UnlockReportLogic
extends
AbstractLogic
{
...
...
@@ -30,7 +29,7 @@ public class UnlockReportLogic extends AbstractLogic {
String
loginId
=
cache
.
getMemberInfo
().
loginId
;
Result
r
=
sendUnlockReport
(
taskKey
,
taskReportId
,
reportStartDate
);
if
(
r
.
result
==
0
)
{
updateLocalDB
(
taskKey
,
reportStartDate
,
r
.
extParam
.
getReportStatus
(),
loginId
);
updateLocalDB
(
taskKey
,
taskReportId
,
reportStartDate
,
r
.
extParam
.
getReportStatus
(),
loginId
);
}
return
r
;
}
...
...
@@ -64,6 +63,7 @@ public class UnlockReportLogic extends AbstractLogic {
private
void
updateLocalDB
(
String
taskKey
,
Long
taskReportId
,
Date
reportStartDate
,
int
reportStatus
,
String
loginId
...
...
@@ -72,6 +72,7 @@ public class UnlockReportLogic extends AbstractLogic {
TaskReportDao
dao
=
AbstractDao
.
getDao
(
TaskReportDao
.
class
);
dao
.
updateReportLock
(
taskKey
,
taskReportId
,
reportStartDate
,
reportStatus
,
null
,
...
...
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