移除正在学习-修改
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user