게시판 수정

This commit is contained in:
dyhj625 2025-02-04 16:08:03 +09:00
parent 50d3787a69
commit 7dea689165
2 changed files with 4 additions and 3 deletions

View File

@ -32,8 +32,9 @@ public class localbordService {
}
public PageInfo<MapDto> getGeneralPosts(MapDto map) {
System.out.println(map);
int page = map.getString("page") != null ? Integer.parseInt(map.getString("page")) : 1;
int size = map.getString("size") != null ? Integer.parseInt(map.getString("size")) : 12;
int size = map.getString("size") != null ? Integer.parseInt(map.getString("size")) : 10;
String orderBy = map.getString("orderBy");
if (orderBy == null || (!orderBy.equals("date") && !orderBy.equals("views"))) {

View File

@ -8,10 +8,10 @@
VALUES (#{employeeId}, #{date}, #{type}, NOW())
</insert>
<!-- 직원 ID로 휴가 정보 조회 -->
<!-- 휴가 정보 조회 -->
<select id="findVacations" parameterType="io.company.localhost.common.dto.MapDto">
SELECT
MEMBERSEQ
MEMBERSEQ,
LOCVACUDT,
LOCVACTYP
FROM