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
1947ab3b
Commit
1947ab3b
authored
Jan 30, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/contract/sato/1.0.300_fix_lock' into 'contract/sato/1.0.300_dev'
ロック周りの不具合修正 See merge request
!265
parents
658b9ed9
12edc56c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/LockReportJSON.java
+3
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/UnlockReportJSON.java
+3
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
+3
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/LockReportJSON.java
View file @
1947ab3b
...
@@ -5,6 +5,7 @@ import org.json.adf.JSONObject;
...
@@ -5,6 +5,7 @@ import org.json.adf.JSONObject;
import
java.util.Date
;
import
java.util.Date
;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.exception.JSONValidationException
;
/**
/**
* checkapi/lockReport/のレスポンスを変換するクラス
* checkapi/lockReport/のレスポンスを変換するクラス
...
@@ -23,7 +24,8 @@ public class LockReportJSON extends AcmsCommonJSON {
...
@@ -23,7 +24,8 @@ public class LockReportJSON extends AcmsCommonJSON {
}
}
@Override
@Override
protected
void
parse
(
JSONObject
json
)
{
protected
void
parse
(
JSONObject
json
)
throws
JSONValidationException
{
super
.
parse
(
json
);
presentTimeUTC
=
getDateOrNull
(
json
,
"presentTimeUTC"
);
presentTimeUTC
=
getDateOrNull
(
json
,
"presentTimeUTC"
);
reportStatus
=
getIntOrDef
(
json
,
"reportStatus"
,
BAD_STATE
);
reportStatus
=
getIntOrDef
(
json
,
"reportStatus"
,
BAD_STATE
);
reportLockUserId
=
getStringOrNull
(
json
,
"reportLockUserId"
);
reportLockUserId
=
getStringOrNull
(
json
,
"reportLockUserId"
);
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/UnlockReportJSON.java
View file @
1947ab3b
...
@@ -5,6 +5,7 @@ import org.json.adf.JSONObject;
...
@@ -5,6 +5,7 @@ import org.json.adf.JSONObject;
import
java.util.Date
;
import
java.util.Date
;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.exception.JSONValidationException
;
public
class
UnlockReportJSON
extends
AcmsCommonJSON
{
public
class
UnlockReportJSON
extends
AcmsCommonJSON
{
...
@@ -17,7 +18,8 @@ public class UnlockReportJSON extends AcmsCommonJSON {
...
@@ -17,7 +18,8 @@ public class UnlockReportJSON extends AcmsCommonJSON {
}
}
@Override
@Override
protected
void
parse
(
JSONObject
json
)
{
protected
void
parse
(
JSONObject
json
)
throws
JSONValidationException
{
super
.
parse
(
json
);
presentTimeUTC
=
getDateOrNull
(
json
,
"presentTimeUTC"
);
presentTimeUTC
=
getDateOrNull
(
json
,
"presentTimeUTC"
);
reportStatus
=
getIntOrDef
(
json
,
""
,
BAD_STATE
);
reportStatus
=
getIntOrDef
(
json
,
""
,
BAD_STATE
);
}
}
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/TaskReportDao.java
View file @
1947ab3b
...
@@ -247,7 +247,9 @@ public class TaskReportDao extends AbstractDao {
...
@@ -247,7 +247,9 @@ public class TaskReportDao extends AbstractDao {
if
(
reportStartDate
!=
null
)
{
if
(
reportStartDate
!=
null
)
{
sql
.
append
(
"AND datetime(report_start_date)=datetime(?);"
);
sql
.
append
(
"AND datetime(report_start_date)=datetime(?);"
);
}
}
if
(
loginId
!=
null
)
{
sql
.
append
(
" AND report_lock_user_id <> ? "
);
//自分以外のロックを変更しないため
}
args
.
add
(
reportStatus
);
args
.
add
(
reportStatus
);
args
.
add
(
reportLockUserId
);
args
.
add
(
reportLockUserId
);
args
.
add
(
reportLockUserName
);
args
.
add
(
reportLockUserName
);
...
...
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