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
368658bf
Commit
368658bf
authored
Jan 23, 2023
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ダッシュボードの一時保存を実装
parent
d07cec67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
15 deletions
+36
-15
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ReportStatusDao.java
+32
-11
gradle.properties
+4
-4
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ReportStatusDao.java
View file @
368658bf
package
jp
.
agentec
.
abook
.
abv
.
bl
.
data
.
dao
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -38,7 +37,7 @@ public class ReportStatusDao extends AbstractDao {
execSql
(
"DELETE FROM "
+
TTaskReportStatus
.
tableName
);
}
private
StringBuilder
common
Sql
()
{
private
StringBuilder
reportStatus
Sql
()
{
StringBuilder
sql
=
new
StringBuilder
();
sql
.
append
(
"SELECT"
);
...
...
@@ -72,50 +71,72 @@ public class ReportStatusDao extends AbstractDao {
}
public
List
<
ReportStatusDto
>
getUntouchedReport
()
{
StringBuilder
sql
=
common
Sql
();
StringBuilder
sql
=
reportStatus
Sql
();
sql
.
append
(
"WHERE t_task_report_status.untouched_flg <> 0"
);
return
rawQueryGetDtoList
(
sql
.
toString
(),
new
String
[]
{},
ReportStatusDto
.
class
);
}
public
List
<
ReportStatusDto
>
getWorkingReport
()
{
StringBuilder
sql
=
common
Sql
();
StringBuilder
sql
=
reportStatus
Sql
();
sql
.
append
(
"WHERE t_task_report_status.working_flg <> 0"
);
return
rawQueryGetDtoList
(
sql
.
toString
(),
new
String
[]
{},
ReportStatusDto
.
class
);
}
public
List
<
ReportStatusDto
>
getcompleteOkReport
()
{
StringBuilder
sql
=
common
Sql
();
StringBuilder
sql
=
reportStatus
Sql
();
sql
.
append
(
"WHERE t_task_report_status.complete_ok_flg <> 0"
);
return
rawQueryGetDtoList
(
sql
.
toString
(),
new
String
[]
{},
ReportStatusDto
.
class
);
}
public
List
<
ReportStatusDto
>
getCompleteNgReport
()
{
StringBuilder
sql
=
common
Sql
();
StringBuilder
sql
=
reportStatus
Sql
();
sql
.
append
(
"WHERE t_task_report_status.complete_ng_flg <> 0"
);
return
rawQueryGetDtoList
(
sql
.
toString
(),
new
String
[]
{},
ReportStatusDto
.
class
);
}
public
List
<
ReportStatusDto
>
getIncompleteReport
()
{
StringBuilder
sql
=
common
Sql
();
StringBuilder
sql
=
reportStatus
Sql
();
sql
.
append
(
"WHERE t_task_report_status.incomplete_flg <> 0"
);
return
rawQueryGetDtoList
(
sql
.
toString
(),
new
String
[]
{},
ReportStatusDto
.
class
);
}
public
List
<
ReportStatusDto
>
getAlertReport
()
{
StringBuilder
sql
=
common
Sql
();
StringBuilder
sql
=
reportStatus
Sql
();
sql
.
append
(
"WHERE t_task_report_status.alert_flg <> 0"
);
return
rawQueryGetDtoList
(
sql
.
toString
(),
new
String
[]
{},
ReportStatusDto
.
class
);
}
public
List
<
ReportStatusDto
>
getSendBackedReport
()
{
StringBuilder
sql
=
common
Sql
();
StringBuilder
sql
=
reportStatus
Sql
();
sql
.
append
(
"WHERE t_task_report_status.send_backed_flg <> 0"
);
return
rawQueryGetDtoList
(
sql
.
toString
(),
new
String
[]
{},
ReportStatusDto
.
class
);
}
public
List
<
ReportStatusDto
>
getPendingReport
()
{
// 空のリストを返しておく todo
return
new
ArrayList
<
ReportStatusDto
>();
StringBuilder
sql
=
new
StringBuilder
();
sql
.
append
(
"SELECT"
);
sql
.
append
(
" 0 AS report_status,"
);
sql
.
append
(
" t_operation.operation_id AS operation_id,"
);
sql
.
append
(
" t_operation.operation_name AS operation_name,"
);
sql
.
append
(
" t_task_report.task_key AS task_key,"
);
sql
.
append
(
" t_task.task_code AS task_code,"
);
sql
.
append
(
" t_task_report.json_data AS json_data,"
);
sql
.
append
(
" t_task_report.task_report_id AS task_report_id,"
);
sql
.
append
(
" t_task_report.report_start_date AS report_start_date,"
);
sql
.
append
(
" t_task_report.report_lock_user_id AS report_lock_user_id,"
);
sql
.
append
(
" t_task_report.report_lock_user_name AS report_lock_user_name,"
);
sql
.
append
(
" t_task_report.report_lock_time AS report_lock_time,"
);
sql
.
append
(
" t_task_report.send_back_user_id AS send_back_user_id,"
);
sql
.
append
(
" t_task_report.send_back_user_name AS send_back_user_name,"
);
sql
.
append
(
" t_task_report.send_back_comment AS send_back_comment "
);
sql
.
append
(
" FROM t_task_report "
);
sql
.
append
(
" INNER JOIN t_task "
);
sql
.
append
(
" ON t_task_report.task_key = t_task.task_key "
);
sql
.
append
(
" INNER JOIN t_operation "
);
sql
.
append
(
" ON t_task.operation_id = t_operation.operation_id "
);
sql
.
append
(
" WHERE t_task_report.local_saved_flg <> 0"
);
return
rawQueryGetDtoList
(
sql
.
toString
(),
new
String
[]
{},
ReportStatusDto
.
class
);
}
@Override
...
...
gradle.properties
View file @
368658bf
...
...
@@ -39,10 +39,10 @@ app_versioncode=1
#cms server
#acms_address=https://check.abookcloud.com/acms
#download_server_address=https://check.abookcloud.com/acms
#
acms_address=https://abook188-1.abook.bz/acms
#
download_server_address=https://abook188-1.abook.bz/acms
acms_address
=
http://10.0.2.2:8080/acms
download_server_address
=
http://10.0.2.2:8080/acms
acms_address
=
https://abook188-1.abook.bz/acms
download_server_address
=
https://abook188-1.abook.bz/acms
#
acms_address=http://10.0.2.2:8080/acms
#
download_server_address=http://10.0.2.2:8080/acms
#syncview server
websocket_server_http_url
=
https://abook188-1.abook.bz/v1
...
...
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