Commit e527fe6c by Kim Jinsung

作業一覧のカテゴリ選択時の並び替え問題対応

parent d423c69f
...@@ -490,33 +490,34 @@ public class OperationDao extends AbstractDao { ...@@ -490,33 +490,34 @@ public class OperationDao extends AbstractDao {
sql.append(" AND top.report_type in (" + reportTypeStr + ")"); sql.append(" AND top.report_type in (" + reportTypeStr + ")");
} }
// 並び順 sql.append(" ORDER BY top.operation_start_date DESC, top.operation_name ASC");
if (operationSortingType != null) { //並び替え情報がないので以下はコメントアウト(次回開発のため残す)
switch (operationSortingType) { // if (operationSortingType != null) {
case OperationName: // switch (operationSortingType) {
sql.append(" ORDER BY top.operation_name ASC "); // case OperationName:
break; // sql.append(" ORDER BY top.operation_name ASC ");
case OperationStartDateASC: // break;
sql.append(" ORDER BY top.operation_start_date ASC "); // case OperationStartDateASC:
break; // sql.append(" ORDER BY top.operation_start_date ASC ");
case OperationStartDateDESC: // break;
sql.append(" ORDER BY top.operation_start_date DESC "); // case OperationStartDateDESC:
break; // sql.append(" ORDER BY top.operation_start_date DESC ");
case OperationType: // break;
sql.append(" ORDER BY top.report_type ASC "); // case OperationType:
break; // sql.append(" ORDER BY top.report_type ASC ");
case ReadingDate: // break;
sql.append(" ORDER BY top.operation_open_date DESC "); // case ReadingDate:
break; // sql.append(" ORDER BY top.operation_open_date DESC ");
default: // break;
sql.append(" ORDER BY top.operation_name ASC "); // default:
break; // sql.append(" ORDER BY top.operation_name ASC ");
} // break;
} else { // }
sql.append(" ORDER BY top.operation_name ASC "); // } else {
} // sql.append(" ORDER BY top.operation_name ASC ");
// 必ずORDER BYが存在する 2次ソート // }
sql.append(", top.operation_id DESC"); // // 必ずORDER BYが存在する 2次ソート
// sql.append(", top.operation_id DESC");
Logger.v(TAG, "sql=%s", sql); Logger.v(TAG, "sql=%s", sql);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment