学院修改班级
This commit is contained in:
@@ -10,10 +10,13 @@ import com.srs.comprehensive.domain.Vo.SrsClassInfo;
|
||||
import com.srs.comprehensive.domain.Vo.CphSearch;
|
||||
import com.srs.comprehensive.service.ICascaderDataStudentService;
|
||||
import com.srs.comprehensive.service.ISrsClassService;
|
||||
import com.srs.system.domain.SysDeptMap;
|
||||
import com.srs.system.service.ISysDeptMapService;
|
||||
import com.srs.system.service.ISysPostService;
|
||||
import com.srs.web.controller.common.RoleBool;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
@@ -46,6 +49,25 @@ public class SrsClassController extends BaseController {
|
||||
@Autowired
|
||||
ISysPostService _postService;
|
||||
|
||||
@Autowired
|
||||
ISysDeptMapService _deptMap;
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('system:class:xw')")
|
||||
@ApiOperation("列出学院班级")
|
||||
@GetMapping("/listDeptClass")
|
||||
public TableDataInfo listDeptClass(SrsClass param){
|
||||
Long oldId = getDeptId();
|
||||
SysDeptMap dept = _deptMap.getOldDeptByNewId(oldId);
|
||||
Long deptId = null;
|
||||
if (dept != null) {
|
||||
deptId = dept.getOldDeptId();
|
||||
}
|
||||
param.setDeptId(deptId);
|
||||
startPage();
|
||||
List<SrsClass> list = srsClassService.selectSrsClassList(param);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("列出在校班级")
|
||||
@GetMapping("/listInSchoolClass")
|
||||
|
||||
Reference in New Issue
Block a user