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
d3af397f
Commit
d3af397f
authored
Feb 14, 2023
by
Yujin Seo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/contract/sato/1.0.300_51898_lock_send_back' into 'contract/sato/1.0.300'
表示関係の不具合を修正 See merge request
!280
parents
60cd4c8a
0c1f732c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
9 deletions
+17
-9
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
ABVJE_Launcher_Android/assets/dashboard
+1
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
View file @
d3af397f
...
...
@@ -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 @
d3af397f
...
...
@@ -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 @
d3af397f
...
...
@@ -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
,
...
...
dashboard
@
b1f1c80f
Subproject commit
65ba4f84e09897cbf524b7f266bcefb158448b33
Subproject commit
b1f1c80f998120d31c1f58128434c894ae57e2e1
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