게시판 수정
This commit is contained in:
parent
50d3787a69
commit
7dea689165
@ -32,8 +32,9 @@ public class localbordService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public PageInfo<MapDto> getGeneralPosts(MapDto map) {
|
public PageInfo<MapDto> getGeneralPosts(MapDto map) {
|
||||||
|
System.out.println(map);
|
||||||
int page = map.getString("page") != null ? Integer.parseInt(map.getString("page")) : 1;
|
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");
|
String orderBy = map.getString("orderBy");
|
||||||
if (orderBy == null || (!orderBy.equals("date") && !orderBy.equals("views"))) {
|
if (orderBy == null || (!orderBy.equals("date") && !orderBy.equals("views"))) {
|
||||||
|
|||||||
@ -8,10 +8,10 @@
|
|||||||
VALUES (#{employeeId}, #{date}, #{type}, NOW())
|
VALUES (#{employeeId}, #{date}, #{type}, NOW())
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<!-- 직원 ID로 휴가 정보 조회 -->
|
<!-- 휴가 정보 조회 -->
|
||||||
<select id="findVacations" parameterType="io.company.localhost.common.dto.MapDto">
|
<select id="findVacations" parameterType="io.company.localhost.common.dto.MapDto">
|
||||||
SELECT
|
SELECT
|
||||||
MEMBERSEQ
|
MEMBERSEQ,
|
||||||
LOCVACUDT,
|
LOCVACUDT,
|
||||||
LOCVACTYP
|
LOCVACTYP
|
||||||
FROM
|
FROM
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user