1. 修改 SysNotification 实体,新增 senderId, senderName, targetType 字段 2. 新增 SendNotificationRequest 请求DTO 3. 扩展通知类型至6种(新增用户通知、课程通知) 4. 实现角色层级权限控制,支持多级管理员通知下级 5. 支持老师群发课程通知给学生 6. 新增批量发送接口和权限配置
36 lines
797 B
Java
36 lines
797 B
Java
package art.kexue.sxwz.mapper;
|
|
|
|
import art.kexue.sxwz.entity.EduCourseStudent;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
@Mapper
|
|
public interface
|
|
EduCourseStudentMapper {
|
|
|
|
int insert(EduCourseStudent record);
|
|
|
|
EduCourseStudent queryById(Long id);
|
|
|
|
int updateByIdSelective(EduCourseStudent record);
|
|
|
|
|
|
int deleteById(Long id);
|
|
|
|
List<EduCourseStudent> queryByCourseId(Long courseId);
|
|
|
|
List<EduCourseStudent> queryByStudentId(Long studentId);
|
|
|
|
EduCourseStudent queryByCourseIdAndStudentId(@Param("courseId") Long courseId, @Param("studentId") Long studentId);
|
|
|
|
int batchInsert(List<EduCourseStudent> list);
|
|
|
|
int deleteByCourseId(Long courseId);
|
|
|
|
int deleteByStudentId(Long studentId);
|
|
}
|
|
|
|
|