그냥 자잘한 수정.
parent
96ee07e0bc
commit
9dc42308b3
|
|
@ -13,6 +13,7 @@ import org.springframework.stereotype.Service;
|
|||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
|
|
@ -41,7 +42,9 @@ public class BoardCategoryService {
|
|||
}
|
||||
|
||||
public List<BoardCategory> selectBoardCategoryListToFindAll(){
|
||||
return boardCategoryRepository.findAll();
|
||||
List<BoardCategory> categoryList = boardCategoryRepository.findAll();
|
||||
categoryList.sort(Comparator.comparing(BoardCategory::getSortCnt).reversed());
|
||||
return categoryList;
|
||||
}
|
||||
|
||||
@Transactional
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ $(document).on('click', '#moveRightBtn', function (){
|
|||
$(document).on('click', '#moveLeftBtn', function (){
|
||||
moveCategorySelectBody(-1);
|
||||
})
|
||||
$(document).on('click', '#contentWriteBtn', function (){
|
||||
$(document).on('click', '.contentWriteBtn', function (){
|
||||
location.href="/board/contentWrite"+(categorySeq!==undefined?("?categorySeq="+categorySeq):"");
|
||||
})
|
||||
function moveCategorySelectBody(direction){
|
||||
|
|
|
|||
|
|
@ -106,7 +106,8 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
<div class="row justify-content-between">
|
||||
<div class="col-auto"></div>
|
||||
<div class="col-auto">
|
||||
<nav aria-label="Page navigation">
|
||||
<ul class="pagination">
|
||||
|
|
@ -132,6 +133,9 @@
|
|||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<a class="btn btn-success contentWriteBtn"><i class="bi bi-file-earmark-plus "></i> 자료 등록</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-5">
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<a class="btn btn-primary" href="/board/contentSearch"><i class="bi bi-search"></i> 통합 검색</a>
|
||||
</div>
|
||||
<div class="d-grid gap-2 pt-1">
|
||||
<a class="btn btn-success" id="contentWriteBtn"><i class="bi bi-file-earmark-plus "></i> 자료 등록</a>
|
||||
<a class="btn btn-success contentWriteBtn"><i class="bi bi-file-earmark-plus "></i> 자료 등록</a>
|
||||
</div>
|
||||
<div sec:authorize="isAuthenticated()">
|
||||
<div class="flex-shrink-0 pe-3 py-3 bg-transparent">
|
||||
|
|
|
|||
Loading…
Reference in New Issue