From 81aa0cb2a8f563075eef1d4101024c3fd9cb2205 Mon Sep 17 00:00:00 2001 From: TWW <15834156+tangweiwei111@user.noreply.gitee.com> Date: 星期五, 08 八月 2025 15:30:04 +0800 Subject: [PATCH] 考勤管理后端代码 --- src/main/java/com/ruoyi/personnelManagement/mapper/AttendanceMapper.java | 66 +++++++++++++++++++++++++++++++++ 1 files changed, 66 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/ruoyi/personnelManagement/mapper/AttendanceMapper.java b/src/main/java/com/ruoyi/personnelManagement/mapper/AttendanceMapper.java new file mode 100644 index 0000000..7b33d68 --- /dev/null +++ b/src/main/java/com/ruoyi/personnelManagement/mapper/AttendanceMapper.java @@ -0,0 +1,66 @@ +package com.ruoyi.personnelManagement.mapper; + + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.personnelManagement.pojo.Attendance; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** + * 鑰冨嫟璁板綍Mapper鎺ュ彛 + * + * @author ruoyi + * @date 2025-08-08 + */ +@Mapper +public interface AttendanceMapper extends BaseMapper<Attendance> +{ + /** + * 鏌ヨ鑰冨嫟璁板綍 + * + * @param id 鑰冨嫟璁板綍涓婚敭 + * @return 鑰冨嫟璁板綍 + */ + public Attendance selectAttendanceById(Long id); + + /** + * 鏌ヨ鑰冨嫟璁板綍鍒楄〃 + * + * @param attendance 鑰冨嫟璁板綍 + * @return 鑰冨嫟璁板綍闆嗗悎 + */ + public List<Attendance> selectAttendanceList(Attendance attendance); + + /** + * 鏂板鑰冨嫟璁板綍 + * + * @param attendance 鑰冨嫟璁板綍 + * @return 缁撴灉 + */ + public int insertAttendance(Attendance attendance); + + /** + * 淇敼鑰冨嫟璁板綍 + * + * @param attendance 鑰冨嫟璁板綍 + * @return 缁撴灉 + */ + public int updateAttendance(Attendance attendance); + + /** + * 鍒犻櫎鑰冨嫟璁板綍 + * + * @param id 鑰冨嫟璁板綍涓婚敭 + * @return 缁撴灉 + */ + public int deleteAttendanceById(Long id); + + /** + * 鎵归噺鍒犻櫎鑰冨嫟璁板綍 + * + * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎 + * @return 缁撴灉 + */ + public int deleteAttendanceByIds(Long[] ids); +} -- Gitblit v1.9.3