|
@@ -1,17 +1,21 @@
|
|
|
package com.xjrsoft.module.student.controller;
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
+import cn.dev33.satoken.stp.StpUtil;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.github.yulichang.wrapper.MPJLambdaWrapper;
|
|
|
import com.xjrsoft.common.model.result.R;
|
|
|
import com.xjrsoft.common.page.ConventPage;
|
|
|
import com.xjrsoft.common.page.PageOutput;
|
|
|
import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
|
+import com.xjrsoft.module.organization.entity.User;
|
|
|
import com.xjrsoft.module.student.dto.AddBaseStudentUserDto;
|
|
|
import com.xjrsoft.module.student.dto.BaseStudentUserPageDto;
|
|
|
import com.xjrsoft.module.student.dto.UpdateBaseStudentUserDto;
|
|
|
+import com.xjrsoft.module.student.entity.BaseClass;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudent;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudentSchoolRoll;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudentUser;
|
|
@@ -104,6 +108,17 @@ public class StudentManagerController {
|
|
|
@SaCheckPermission("studentmanager:delete")
|
|
|
public R delete(@Valid @RequestBody List<Long> ids){
|
|
|
return R.ok(studentManagerService.delete(ids));
|
|
|
-
|
|
|
}
|
|
|
+
|
|
|
+// @GetMapping(value = "/class-teacher")
|
|
|
+// @ApiOperation(value="获取当前学生的班主任")
|
|
|
+// public R classTeacher(){
|
|
|
+// Long userId = StpUtil.getLoginIdAsLong();
|
|
|
+// MPJLambdaWrapper<BaseClass> queryWrapper = new MPJLambdaWrapper<>();
|
|
|
+// queryWrapper
|
|
|
+// .select(BaseClass::getTeacherId)
|
|
|
+// .innerJoin(BaseStudentSchoolRoll.class,BaseStudentSchoolRoll::getClassId,BaseStudent::getId)
|
|
|
+// .eq(BaseStudentSchoolRoll::getUserId,userId);
|
|
|
+// BaseClass user = studentManagerService.getOne(queryWrapper, false);
|
|
|
+// }
|
|
|
}
|