|
@@ -253,6 +253,12 @@ public class SysUserServiceImpl extends BaseServiceImpl<Long, SysUser> implement
|
|
|
|
|
|
@Override
|
|
|
public void logoffById(Long id) {
|
|
|
+
|
|
|
+ Integer num = sysUserDao.getUnCompCourseNum(id);
|
|
|
+ if(num>0){
|
|
|
+ throw new BizException("用户有未完成的课程");
|
|
|
+ }
|
|
|
+
|
|
|
List<SysUser> sysUsers = sysUserDao.queryHistoryUserById(id);
|
|
|
Integer maxVersion = 0;
|
|
|
if (!CollectionUtils.isEmpty(sysUsers)) {
|