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
e527fe6c
Commit
e527fe6c
authored
May 19, 2021
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
作業一覧のカテゴリ選択時の並び替え問題対応
parent
d423c69f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
27 deletions
+28
-27
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/OperationDao.java
+28
-27
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/OperationDao.java
View file @
e527fe6c
...
...
@@ -490,33 +490,34 @@ public class OperationDao extends AbstractDao {
sql
.
append
(
" AND top.report_type in ("
+
reportTypeStr
+
")"
);
}
// 並び順
if
(
operationSortingType
!=
null
)
{
switch
(
operationSortingType
)
{
case
OperationName:
sql
.
append
(
" ORDER BY top.operation_name ASC "
);
break
;
case
OperationStartDateASC:
sql
.
append
(
" ORDER BY top.operation_start_date ASC "
);
break
;
case
OperationStartDateDESC:
sql
.
append
(
" ORDER BY top.operation_start_date DESC "
);
break
;
case
OperationType:
sql
.
append
(
" ORDER BY top.report_type ASC "
);
break
;
case
ReadingDate:
sql
.
append
(
" ORDER BY top.operation_open_date DESC "
);
break
;
default
:
sql
.
append
(
" ORDER BY top.operation_name ASC "
);
break
;
}
}
else
{
sql
.
append
(
" ORDER BY top.operation_name ASC "
);
}
// 必ずORDER BYが存在する 2次ソート
sql
.
append
(
", top.operation_id DESC"
);
sql
.
append
(
" ORDER BY top.operation_start_date DESC, top.operation_name ASC"
);
//並び替え情報がないので以下はコメントアウト(次回開発のため残す)
// if (operationSortingType != null) {
// switch (operationSortingType) {
// case OperationName:
// sql.append(" ORDER BY top.operation_name ASC ");
// break;
// case OperationStartDateASC:
// sql.append(" ORDER BY top.operation_start_date ASC ");
// break;
// case OperationStartDateDESC:
// sql.append(" ORDER BY top.operation_start_date DESC ");
// break;
// case OperationType:
// sql.append(" ORDER BY top.report_type ASC ");
// break;
// case ReadingDate:
// sql.append(" ORDER BY top.operation_open_date DESC ");
// break;
// default:
// sql.append(" ORDER BY top.operation_name ASC ");
// break;
// }
// } else {
// sql.append(" ORDER BY top.operation_name ASC ");
// }
// // 必ずORDER BYが存在する 2次ソート
// sql.append(", top.operation_id DESC");
Logger
.
v
(
TAG
,
"sql=%s"
,
sql
);
...
...
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