487b38e8b0
- StudyReportFragmentsService 接口新增 updateFragments 和 getFragmentsBySession 方法 - ServiceImpl 实现碎片更新(校验存在性后更新)和按会话编号查询碎片列表
24 lines
985 B
Java
24 lines
985 B
Java
package com.guo.learningprogresstracker.service;
|
|
|
|
import com.guo.learningprogresstracker.dto.request.CreateFragmentsRequest;
|
|
import com.guo.learningprogresstracker.dto.request.UpdateFragmentsRequest;
|
|
import com.guo.learningprogresstracker.entity.StudyReportFragmentsEntity;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
import com.guo.learningprogresstracker.exception.NotFindEntitiesException;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @author guo
|
|
* @description 针对表【study_report_fragments(记录学习过程中的学习内容报告残片)】的数据库操作Service
|
|
* @createDate 2024-06-09 15:28:48
|
|
*/
|
|
public interface StudyReportFragmentsService extends IService<StudyReportFragmentsEntity> {
|
|
|
|
void createFragments(CreateFragmentsRequest request) throws NotFindEntitiesException;
|
|
|
|
void updateFragments(Integer id, UpdateFragmentsRequest request) throws NotFindEntitiesException;
|
|
|
|
List<StudyReportFragmentsEntity> getFragmentsBySession(String sessionNum);
|
|
}
|