Commit 2c9e2cc3 by Lee Jaebin

カテゴリ画面での同期ボタン活性化できない・ソート順問題対応

parent ecff1391
...@@ -372,10 +372,15 @@ public class OperationDao extends AbstractDao { ...@@ -372,10 +372,15 @@ public class OperationDao extends AbstractDao {
StringBuffer sql = new StringBuffer(); StringBuffer sql = new StringBuffer();
sql.append(" SELECT * "); sql.append(" SELECT * ");
sql.append(" FROM t_operation AS top"); sql.append(" FROM t_operation AS top");
sql.append(" INNER JOIN r_operation_group_master_relation AS rog"); // INNER JOIN r_operation_group_master_relation
sql.append(" ON rog.operation_id = top.operation_id"); sql.append(" INNER JOIN r_operation_group_master_relation AS rog");
sql.append(" WHERE rog.operation_group_master_id = ?"); sql.append(" ON rog.operation_id = top.operation_id");
sql.append(" ORDER BY top.operation_start_date DESC, top.operation_id DESC"); // LEFT OUTER JOIN r_operation_content
sql.append(" LEFT OUTER JOIN r_operation_content AS rpc ");
sql.append(" ON top.operation_id = rpc.operation_id ");
sql.append(" AND rpc.operation_content_flg = 1 ");
sql.append(" WHERE rog.operation_group_master_id = ?");
sql.append(" ORDER BY top.operation_start_date DESC, top.operation_id DESC");
return rawQueryGetDtoList(sql.toString(), new String[] { "" + operationGroupMasterId }, OperationDto.class); return rawQueryGetDtoList(sql.toString(), new String[] { "" + operationGroupMasterId }, OperationDto.class);
} }
} }
\ No newline at end of file
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