移除正在学习-修改

This commit is contained in:
wuchunlei
2024-06-21 14:34:31 +08:00
parent e6a82a42d5
commit 086bf30abc

View File

@@ -84,7 +84,10 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, CourseEntity> impl
@Override
public boolean delUserCourseStudying(Map<String,Object> param) {
if (studyingDao.deleteById(param.get("id").toString())>0){
LambdaQueryWrapper<UserCourseStudying> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(UserCourseStudying::getUserId,ShiroUtils.getUId());
wrapper.eq(UserCourseStudying::getCourseId,param.get("courseId").toString());
if (studyingDao.delete(wrapper)>0){
return true;
}else {
return false;