package com.sztzjy.linkCommerce.mapper; import com.sztzjy.linkCommerce.entity.StudentTrainingAnswer; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.Date; @Mapper public interface StudentTrainingAnswerMapper { int insertSelective(StudentTrainingAnswer record); int updateByPrimaryKeySelective(StudentTrainingAnswer record); StudentTrainingAnswer selectByPrimaryKey(String id); StudentTrainingAnswer selectByStudentClassAndTask(@Param("studentUserId") String studentUserId, @Param("teachingClassId") String teachingClassId, @Param("taskId") String taskId); int deleteByStudentClassAndTask(@Param("studentUserId") String studentUserId, @Param("teachingClassId") String teachingClassId, @Param("taskId") String taskId); int updateAiAssessmentScore(@Param("id") String id, @Param("score") Integer score, @Param("updateTime") Date updateTime); }