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
57754a43
Commit
57754a43
authored
May 18, 2021
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Task #42713【iOS/And/Win】日付が変わっても未完了の報告は一覧に表示する
parent
ec727766
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
+17
-4
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
View file @
57754a43
...
...
@@ -84,7 +84,7 @@ public class OperationLogic extends AbstractLogic {
private
PushMessageDao
mPushMessageDao
=
AbstractDao
.
getDao
(
PushMessageDao
.
class
);
private
TaskWorkerGroupDao
mTaskWorkerGroupDao
=
AbstractDao
.
getDao
(
TaskWorkerGroupDao
.
class
);
private
static
final
int
FINISHED_STATUS
=
999
;
public
void
initializeOperations
()
throws
AcmsException
,
NetworkDisconnectedException
{
// 作業グループリスト取得
setWorkingGroupList
();
...
...
@@ -905,6 +905,17 @@ public class OperationLogic extends AbstractLogic {
OperationDto
operationDto
=
mOperationDao
.
getOperation
(
operationId
);
List
<
TaskReportDto
>
taskReportDtoList
=
mTaskReportDao
.
getTaskReportByOperationId
(
operationId
);
//報告ステータスが完了のタスクキーを保存し、営業日変更時間チェック時に除外する。
List
<
TaskDto
>
taskDtoList
=
mTaskDao
.
selectAllTaskByOperationId
(
operationId
);
List
<
String
>
finishStatusTaskKeyList
=
new
ArrayList
<
String
>();
for
(
TaskDto
taskDto
:
taskDtoList
)
{
if
(
taskDto
.
taskStatus
==
FINISHED_STATUS
)
{
if
(!
finishStatusTaskKeyList
.
contains
(
taskDto
.
taskKey
))
{
finishStatusTaskKeyList
.
add
(
taskDto
.
taskKey
);
}
}
}
int
level
=
0
;
int
listCount
=
0
;
for
(
TaskReportDto
dto
:
taskReportDtoList
)
{
...
...
@@ -917,9 +928,11 @@ public class OperationLogic extends AbstractLogic {
if
(
dto
.
jsonData
!=
null
&&
dto
.
jsonData
.
length
()
>
0
)
{
JSONObject
editJson
=
new
JSONObject
(
dto
.
jsonData
);
//営業日変更時間チェックを行う
if
(
checkWorkdayChangeTime
(
editJson
))
{
continue
;
//報告ステータスが完了の場合、営業日変更時間チェックを行う
if
(
finishStatusTaskKeyList
.
contains
(
dto
.
taskKey
))
{
if
(
checkWorkdayChangeTime
(
editJson
))
{
continue
;
}
}
if
(
operationDto
.
reportType
==
Constant
.
ReportType
.
ReportReply
)
{
editJson
.
put
(
ABookKeys
.
HAS_AUTHORITY
,
dto
.
enableReport
);
...
...
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