mybatisplus-plus icon indicating copy to clipboard operation
mybatisplus-plus copied to clipboard

没有自定义SqlSessionFactory,也加了@EnableMPP,使用updateByMultiId时仍然报Invalid bound statement (not found)

Open Wenshiqi222 opened this issue 1 year ago • 1 comments

Service:

public interface ChooseCourseService extends IMppService<ChooseCourse> {

}
@Service
public class ChooseCourseServiceImpl extends MppServiceImpl<ChooseCourseMapper, ChooseCourse> implements ChooseCourseService {


}

Mapper

public interface ChooseCourseMapper extends MppBaseMapper<ChooseCourse> {
    int insertChosenCourse(Integer userId, Integer courseId);
    int deleteChosenCourse(Integer userId, Integer courseId);

    ChooseCourse selectChooseCourseByUserIdAndCourseId(Integer userId,Integer courseId);
}

jdk 19 mpp-1.7.4

Wenshiqi222 avatar May 07 '23 11:05 Wenshiqi222