From 81775d5937adb7f4419790b42551aae5ec0fb24b Mon Sep 17 00:00:00 2001 From: "DESKTOP-TKLFCPR\\ython" Date: Sat, 20 Jun 2026 20:58:37 +0900 Subject: [PATCH] =?UTF-8?q?fix(uiws):=20mall=20=EC=9E=94=EC=A1=B4=20Schedu?= =?UTF-8?q?leMapper.java=20=EC=A0=9C=EA=B1=B0=20(UiwsScheduleMapper?= =?UTF-8?q?=EB=A1=9C=20=EB=A6=AC=EB=84=A4=EC=9E=84,=20=EB=B9=88=20?= =?UTF-8?q?=EC=B6=A9=EB=8F=8C=20=ED=95=B4=EC=86=8C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- .../uiws/schedule/mapper/ScheduleMapper.java | 93 ------------------- 1 file changed, 93 deletions(-) delete mode 100644 backend/src/main/java/com/zioinfo/mall/uiws/schedule/mapper/ScheduleMapper.java diff --git a/backend/src/main/java/com/zioinfo/mall/uiws/schedule/mapper/ScheduleMapper.java b/backend/src/main/java/com/zioinfo/mall/uiws/schedule/mapper/ScheduleMapper.java deleted file mode 100644 index 859faf7..0000000 --- a/backend/src/main/java/com/zioinfo/mall/uiws/schedule/mapper/ScheduleMapper.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.zioinfo.mall.uiws.schedule.mapper; - -import com.zioinfo.mall.uiws.schedule.model.UiwsAttach; -import com.zioinfo.mall.uiws.schedule.model.UiwsDiary; -import com.zioinfo.mall.uiws.schedule.model.UiwsSchedule; -import org.apache.ibatis.annotations.Mapper; -import org.apache.ibatis.annotations.Param; - -import java.time.LocalDate; -import java.time.LocalDateTime; -import java.util.List; -import java.util.Map; - -/** - * 일정·일지·첨부 MyBatis 매퍼. 원본 JPA ScheduleRepository/DiaryRepository/AttachRepository 변환 이식. - * 데이터 가시범위: scopeAll(true=ADMIN 전체) OR owner IN (ownerIds). ownerIds 는 항상 본인 포함(빈 IN 회피). - */ -@Mapper -public interface ScheduleMapper { - - // ── schedule - int insertSchedule(UiwsSchedule s); - - int updateSchedule(UiwsSchedule s); - - UiwsSchedule findScheduleById(@Param("scheduleId") Long scheduleId); - - boolean existsScheduleById(@Param("scheduleId") Long scheduleId); - - int deleteScheduleById(@Param("scheduleId") Long scheduleId); - - /** 달력: 기간 겹침([from,to) 배타 상한) + type + 개인소유/부서필터. */ - List findInRange(@Param("from") LocalDateTime from, - @Param("to") LocalDateTime to, - @Param("scheType") String scheType, - @Param("ownerId") String ownerId, - @Param("deptId") String deptId); - - List searchAll(@Param("from") LocalDateTime from, - @Param("to") LocalDateTime to, - @Param("scheType") String scheType, - @Param("scopeAll") boolean scopeAll, - @Param("ownerIds") List ownerIds, - @Param("limit") int limit, - @Param("offset") int offset); - - long countAll(@Param("from") LocalDateTime from, - @Param("to") LocalDateTime to, - @Param("scheType") String scheType, - @Param("scopeAll") boolean scopeAll, - @Param("ownerIds") List ownerIds); - - List searchPopup(@Param("keyword") String keyword, - @Param("scopeAll") boolean scopeAll, - @Param("ownerIds") List ownerIds); - - // ── diary - int insertDiary(UiwsDiary d); - - int updateDiary(UiwsDiary d); - - UiwsDiary findDiaryById(@Param("diaryId") Long diaryId); - - boolean existsDiaryById(@Param("diaryId") Long diaryId); - - int deleteDiaryById(@Param("diaryId") Long diaryId); - - List searchDiary(@Param("from") LocalDate from, - @Param("to") LocalDate to, - @Param("limit") int limit, - @Param("offset") int offset); - - long countDiary(@Param("from") LocalDate from, @Param("to") LocalDate to); - - // ── attach - int insertAttach(UiwsAttach a); - - UiwsAttach findAttachById(@Param("attachId") Long attachId); - - int updateAttachRef(@Param("attachId") Long attachId, - @Param("refType") String refType, - @Param("refId") Long refId, - @Param("actor") String actor); - - List findAttachByRef(@Param("refType") String refType, @Param("refId") Long refId); - - int deleteAttachById(@Param("attachId") Long attachId); - - int deleteAttachByRef(@Param("refType") String refType, @Param("refId") Long refId); - - // ── 사용자명 라벨(코어 user 재사용) - List> findUserNames(@Param("ids") List ids); -}